提交 a34cc54d 编写于 作者: B Benjamin Pasero

fix compile

上级 d5865f0f
......@@ -2975,7 +2975,7 @@ declare module monaco.editor {
* Accept suggestions on ENTER.
* Defaults to 'on'.
*/
acceptSuggestionOnEnter?: 'on' | 'smart' | 'off';
acceptSuggestionOnEnter?: boolean | 'on' | 'smart' | 'off';
/**
* Accept suggestions on provider defined characters.
* Defaults to true.
......@@ -4459,7 +4459,7 @@ declare module monaco.languages {
* The human-readable doc-comment of this signature. Will be shown
* in the UI but can be omitted.
*/
documentation?: string;
documentation?: string | IMarkdownString;
}
/**
......@@ -4477,7 +4477,7 @@ declare module monaco.languages {
* The human-readable doc-comment of this signature. Will be shown
* in the UI but can be omitted.
*/
documentation?: string;
documentation?: string | IMarkdownString;
/**
* The parameters of this signature.
*/
......@@ -4807,11 +4807,12 @@ declare module monaco.languages {
}
/**
* A color formatter.
* Represents a color format
*/
export interface IColorFormatter {
readonly supportsTransparency: boolean;
format(color: IColor): string;
export enum ColorFormat {
RGB = 0,
HEX = 1,
HSL = 2,
}
/**
......@@ -4826,10 +4827,6 @@ declare module monaco.languages {
* The color represented in this range.
*/
color: IColor;
/**
* The available formats for this specific color.
*/
formatters: IColorFormatter[];
}
/**
......@@ -4840,6 +4837,10 @@ declare module monaco.languages {
* Provides the color ranges for a specific model.
*/
provideColorRanges(model: editor.IReadOnlyModel, token: CancellationToken): IColorRange[] | Thenable<IColorRange[]>;
/**
* Provide the string representation for a color.
*/
resolveColor(color: IColor, colorFormat: ColorFormat, token: CancellationToken): string | Thenable<string>;
}
export interface IResourceEdit {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册