diff --git a/src/vs/editor/contrib/comment/test/lineCommentCommand.test.ts b/src/vs/editor/contrib/comment/test/lineCommentCommand.test.ts index 6df5338fa27f3b2824c68028219a6c829d1bb791..0689b4209d583eb59e6e66ab5f7b7e3645cd4f36 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 7359a6557d8c87a6eb4aec87f69171f3b95af226..bfebabd7d468aea9a1e3a4be3007a6ec2a60ee3a 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>;