From e7cfb10cb863cbfb9d5b48862e0deea0703747cf Mon Sep 17 00:00:00 2001 From: Jimmy Leung <43258070+hkleungai@users.noreply.github.com> Date: Thu, 5 Feb 2026 17:21:27 +0800 Subject: [PATCH] vscode-dts: Add LineCommentConfig interface & update lineComment (#289457) * vscode-dts: Add LineCommentConfig interface & update lineComment * rename config to rule --------- Co-authored-by: Aiday Marlen Kyzy --- src/vscode-dts/vscode.d.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/vscode-dts/vscode.d.ts b/src/vscode-dts/vscode.d.ts index 5266ffe9717..e2e13e4ab1d 100644 --- a/src/vscode-dts/vscode.d.ts +++ b/src/vscode-dts/vscode.d.ts @@ -6477,6 +6477,21 @@ declare module 'vscode' { */ export type CharacterPair = [string, string]; + /** + * Configuration for line comments. + */ + export interface LineCommentRule { + /** + * The line comment token, like `//` + */ + comment: string; + /** + * Whether the comment token should not be indented and placed at the first column. + * Defaults to false. + */ + noIndent?: boolean; + } + /** * Describes how comments for a language work. */ @@ -6485,7 +6500,7 @@ declare module 'vscode' { /** * The line comment token, like `// this is a comment` */ - lineComment?: string; + lineComment?: string | LineCommentRule; /** * The block comment character pair, like `/* block comment */`