Skip to content

Commit e702978

Browse files
Move EOL
Signed-off-by: Sanjula Ganepola <[email protected]>
1 parent 2a15f69 commit e702978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/results/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ async function runHandler(options?: StatementInfo) {
264264
vscode.commands.executeCommand('vscode-db2i.dove.close');
265265

266266
if (optionsIsValid || (editor && editor.document.languageId === `sql`)) {
267+
const eol = editor.document.eol === vscode.EndOfLine.CRLF ? `\r\n` : `\n`;
267268
let chosenView = resultSetProvider;
268269

269270
const useWindow = (title: string, column?: ViewColumn) => {
@@ -377,7 +378,6 @@ async function runHandler(options?: StatementInfo) {
377378
updatableTable = refs[0];
378379
}
379380

380-
const eol = editor.document.eol === vscode.EndOfLine.CRLF ? `\r\n` : `\n`;
381381
const basicSelect = statementDetail.content.split(eol).filter(line => !line.trimStart().startsWith(`--`)).join(eol);
382382

383383
chosenView.setScrolling({ // Never errors

0 commit comments

Comments
 (0)