From fa302f5db6d5b3016f0edc41c9cc1cd25bee0b6c Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Tue, 7 Jul 2020 09:28:33 +0200 Subject: [PATCH] Fix tests --- .../editor/contrib/comment/test/lineCommentCommand.test.ts | 4 ++-- src/vs/monaco.d.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vs/editor/contrib/comment/test/lineCommentCommand.test.ts b/src/vs/editor/contrib/comment/test/lineCommentCommand.test.ts index 6df5338fa27..0689b4209d5 100644 --- a/src/vs/editor/contrib/comment/test/lineCommentCommand.test.ts +++ b/src/vs/editor/contrib/comment/test/lineCommentCommand.test.ts @@ -91,7 +91,7 @@ suite('Editor Contrib - Line Comment Command', () => { ' ', ' c', '\t\td' - ]), createBasicLinePreflightData(['//', 'rem', '!@#', '!@#']), 1, false); + ]), createBasicLinePreflightData(['//', 'rem', '!@#', '!@#']), 1, true); if (!r.supported) { throw new Error(`unexpected`); } @@ -122,7 +122,7 @@ suite('Editor Contrib - Line Comment Command', () => { ' rem ', ' !@# c', '\t\t!@#d' - ]), createBasicLinePreflightData(['//', 'rem', '!@#', '!@#']), 1, false); + ]), createBasicLinePreflightData(['//', 'rem', '!@#', '!@#']), 1, true); if (!r.supported) { throw new Error(`unexpected`); } diff --git a/src/vs/monaco.d.ts b/src/vs/monaco.d.ts index 7359a6557d8..bfebabd7d46 100644 --- a/src/vs/monaco.d.ts +++ b/src/vs/monaco.d.ts @@ -3211,10 +3211,10 @@ declare namespace monaco.editor { */ insertSpace?: boolean; /** - * Includes commenting empty lines when inserting line comments. - * Defaults to false. + * Ignore empty lines when inserting line comments. + * Defaults to true. */ - includeEmptyLines?: boolean; + ignoreEmptyLines?: boolean; } export type EditorCommentsOptions = Readonly>; -- GitLab