File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,7 @@ async function runHandler(options?: StatementInfo) {
264
264
vscode . commands . executeCommand ( 'vscode-db2i.dove.close' ) ;
265
265
266
266
if ( optionsIsValid || ( editor && editor . document . languageId === `sql` ) ) {
267
+ const eol = editor . document . eol === vscode . EndOfLine . CRLF ? `\r\n` : `\n` ;
267
268
let chosenView = resultSetProvider ;
268
269
269
270
const useWindow = ( title : string , column ?: ViewColumn ) => {
@@ -377,8 +378,10 @@ async function runHandler(options?: StatementInfo) {
377
378
updatableTable = refs [ 0 ] ;
378
379
}
379
380
381
+ const basicSelect = statementDetail . content . split ( eol ) . filter ( line => ! line . trimStart ( ) . startsWith ( `--` ) ) . join ( eol ) ;
382
+
380
383
chosenView . setScrolling ( { // Never errors
381
- basicSelect : statementDetail . content ,
384
+ basicSelect : basicSelect ,
382
385
withCancel : inWindow ,
383
386
ref : updatableTable ,
384
387
parameters,
You can’t perform that action at this time.
0 commit comments