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 <aidaymarlenkyzy@gmail.com>
This commit is contained in:
Jimmy Leung
2026-02-05 17:21:27 +08:00
committed by GitHub
parent bdacbb9349
commit e7cfb10cb8

View File

@@ -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 *&#47;`