mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
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:
17
src/vscode-dts/vscode.d.ts
vendored
17
src/vscode-dts/vscode.d.ts
vendored
@@ -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 */`
|
||||
|
||||
Reference in New Issue
Block a user