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