mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Merge from vscode 81d7885dc2e9dc617e1522697a2966bc4025a45d (#5949)
* Merge from vscode 81d7885dc2e9dc617e1522697a2966bc4025a45d * Fix vs unit tests and hygiene issue * Fix strict null check issue
This commit is contained in:
21
src/vs/monaco.d.ts
vendored
21
src/vs/monaco.d.ts
vendored
@@ -4275,7 +4275,7 @@ declare namespace monaco.languages {
|
||||
* - f = foreground ColorId (9 bits)
|
||||
* - b = background ColorId (9 bits)
|
||||
* - The color value for each colorId is defined in IStandaloneThemeData.customTokenColors:
|
||||
* e.g colorId = 1 is stored in IStandaloneThemeData.customTokenColors[1]. Color id = 0 means no color,
|
||||
* e.g. colorId = 1 is stored in IStandaloneThemeData.customTokenColors[1]. Color id = 0 means no color,
|
||||
* id = 1 is for the default foreground color, id = 2 for the default background.
|
||||
*/
|
||||
tokens: Uint32Array;
|
||||
@@ -4437,7 +4437,7 @@ declare namespace monaco.languages {
|
||||
/**
|
||||
* Provide commands for the given document and range.
|
||||
*/
|
||||
provideCodeActions(model: editor.ITextModel, range: Range, context: CodeActionContext, token: CancellationToken): (Command | CodeAction)[] | Promise<(Command | CodeAction)[]>;
|
||||
provideCodeActions(model: editor.ITextModel, range: Range, context: CodeActionContext, token: CancellationToken): CodeActionList | Promise<CodeActionList>;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4898,6 +4898,10 @@ declare namespace monaco.languages {
|
||||
isPreferred?: boolean;
|
||||
}
|
||||
|
||||
export interface CodeActionList extends IDisposable {
|
||||
readonly actions: ReadonlyArray<CodeAction>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a parameter of a callable-signature. A parameter can
|
||||
* have a label and a doc-comment.
|
||||
@@ -5258,6 +5262,7 @@ declare namespace monaco.languages {
|
||||
export interface ILink {
|
||||
range: IRange;
|
||||
url?: Uri | string;
|
||||
tooltip?: string;
|
||||
}
|
||||
|
||||
export interface ILinksList {
|
||||
@@ -5346,7 +5351,6 @@ declare namespace monaco.languages {
|
||||
}
|
||||
|
||||
export interface SelectionRange {
|
||||
kind: string;
|
||||
range: IRange;
|
||||
}
|
||||
|
||||
@@ -5453,16 +5457,21 @@ declare namespace monaco.languages {
|
||||
arguments?: any[];
|
||||
}
|
||||
|
||||
export interface ICodeLensSymbol {
|
||||
export interface CodeLens {
|
||||
range: IRange;
|
||||
id?: string;
|
||||
command?: Command;
|
||||
}
|
||||
|
||||
export interface CodeLensList {
|
||||
lenses: CodeLens[];
|
||||
dispose(): void;
|
||||
}
|
||||
|
||||
export interface CodeLensProvider {
|
||||
onDidChange?: IEvent<this>;
|
||||
provideCodeLenses(model: editor.ITextModel, token: CancellationToken): ProviderResult<ICodeLensSymbol[]>;
|
||||
resolveCodeLens?(model: editor.ITextModel, codeLens: ICodeLensSymbol, token: CancellationToken): ProviderResult<ICodeLensSymbol>;
|
||||
provideCodeLenses(model: editor.ITextModel, token: CancellationToken): ProviderResult<CodeLensList>;
|
||||
resolveCodeLens?(model: editor.ITextModel, codeLens: CodeLens, token: CancellationToken): ProviderResult<CodeLens>;
|
||||
}
|
||||
|
||||
export interface ILanguageExtensionPoint {
|
||||
|
||||
Reference in New Issue
Block a user