mirror of
https://github.com/coder/code-server.git
synced 2026-05-06 20:41:59 +02:00
chore(vscode): update to 1.53.2
These conflicts will be resolved in the following commits. We do it this way so that PR review is possible.
This commit is contained in:
88
lib/vscode/src/vs/monaco.d.ts
vendored
88
lib/vscode/src/vs/monaco.d.ts
vendored
@@ -10,6 +10,7 @@ declare namespace monaco {
|
||||
export type Thenable<T> = PromiseLike<T>;
|
||||
|
||||
export interface Environment {
|
||||
globalAPI?: boolean;
|
||||
baseUrl?: string;
|
||||
getWorker?(workerId: string, label: string): Worker;
|
||||
getWorkerUrl?(workerId: string, label: string): string;
|
||||
@@ -897,6 +898,12 @@ declare namespace monaco.editor {
|
||||
take?: number;
|
||||
}): IMarker[];
|
||||
|
||||
/**
|
||||
* Emitted when markers change for a model.
|
||||
* @event
|
||||
*/
|
||||
export function onDidChangeMarkers(listener: (e: readonly Uri[]) => void): IDisposable;
|
||||
|
||||
/**
|
||||
* Get the model that has `uri` if it exists.
|
||||
*/
|
||||
@@ -969,6 +976,11 @@ declare namespace monaco.editor {
|
||||
*/
|
||||
export function remeasureFonts(): void;
|
||||
|
||||
/**
|
||||
* Register a command.
|
||||
*/
|
||||
export function registerCommand(id: string, handler: (accessor: any, ...args: any[]) => void): IDisposable;
|
||||
|
||||
export type BuiltinTheme = 'vs' | 'vs-dark' | 'hc-black';
|
||||
|
||||
export interface IStandaloneThemeData {
|
||||
@@ -3176,6 +3188,10 @@ declare namespace monaco.editor {
|
||||
* Controls strikethrough deprecated variables.
|
||||
*/
|
||||
showDeprecated?: boolean;
|
||||
/**
|
||||
* Control the behavior and rendering of the inline hints.
|
||||
*/
|
||||
inlineHints?: IEditorInlineHintsOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3222,6 +3238,11 @@ declare namespace monaco.editor {
|
||||
* Defaults to false
|
||||
*/
|
||||
isInEmbeddedEditor?: boolean;
|
||||
/**
|
||||
* Is the diff editor should render overview ruler
|
||||
* Defaults to true
|
||||
*/
|
||||
renderOverviewRuler?: boolean;
|
||||
/**
|
||||
* Control the wrapping of the diff editor.
|
||||
*/
|
||||
@@ -3522,6 +3543,29 @@ declare namespace monaco.editor {
|
||||
|
||||
export type EditorLightbulbOptions = Readonly<Required<IEditorLightbulbOptions>>;
|
||||
|
||||
/**
|
||||
* Configuration options for editor inlineHints
|
||||
*/
|
||||
export interface IEditorInlineHintsOptions {
|
||||
/**
|
||||
* Enable the inline hints.
|
||||
* Defaults to true.
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
* Font size of inline hints.
|
||||
* Default to 90% of the editor font size.
|
||||
*/
|
||||
fontSize?: number;
|
||||
/**
|
||||
* Font family of inline hints.
|
||||
* Defaults to editor font family.
|
||||
*/
|
||||
fontFamily?: string;
|
||||
}
|
||||
|
||||
export type EditorInlineHintsOptions = Readonly<Required<IEditorInlineHintsOptions>>;
|
||||
|
||||
/**
|
||||
* Configuration options for editor minimap
|
||||
*/
|
||||
@@ -4023,11 +4067,12 @@ declare namespace monaco.editor {
|
||||
wrappingIndent = 117,
|
||||
wrappingStrategy = 118,
|
||||
showDeprecated = 119,
|
||||
editorClassName = 120,
|
||||
pixelRatio = 121,
|
||||
tabFocusMode = 122,
|
||||
layoutInfo = 123,
|
||||
wrappingInfo = 124
|
||||
inlineHints = 120,
|
||||
editorClassName = 121,
|
||||
pixelRatio = 122,
|
||||
tabFocusMode = 123,
|
||||
layoutInfo = 124,
|
||||
wrappingInfo = 125
|
||||
}
|
||||
export const EditorOptions: {
|
||||
acceptSuggestionOnCommitCharacter: IEditorOption<EditorOption.acceptSuggestionOnCommitCharacter, boolean>;
|
||||
@@ -4128,6 +4173,7 @@ declare namespace monaco.editor {
|
||||
showFoldingControls: IEditorOption<EditorOption.showFoldingControls, 'always' | 'mouseover'>;
|
||||
showUnused: IEditorOption<EditorOption.showUnused, boolean>;
|
||||
showDeprecated: IEditorOption<EditorOption.showDeprecated, boolean>;
|
||||
inlineHints: IEditorOption<EditorOption.inlineHints, any>;
|
||||
snippetSuggestions: IEditorOption<EditorOption.snippetSuggestions, 'none' | 'top' | 'bottom' | 'inline'>;
|
||||
smartSelect: IEditorOption<EditorOption.smartSelect, any>;
|
||||
smoothScrolling: IEditorOption<EditorOption.smoothScrolling, boolean>;
|
||||
@@ -4492,6 +4538,10 @@ declare namespace monaco.editor {
|
||||
}
|
||||
|
||||
export interface IDiffEditorConstructionOptions extends IDiffEditorOptions {
|
||||
/**
|
||||
* The initial editor dimension (to avoid measuring the container).
|
||||
*/
|
||||
dimension?: IDimension;
|
||||
/**
|
||||
* Place overflow widgets inside an external DOM node.
|
||||
* Defaults to an internal DOM node.
|
||||
@@ -4935,6 +4985,7 @@ declare namespace monaco.editor {
|
||||
|
||||
export class FontInfo extends BareFontInfo {
|
||||
readonly _editorStylingBrand: void;
|
||||
readonly version: number;
|
||||
readonly isTrusted: boolean;
|
||||
readonly isMonospace: boolean;
|
||||
readonly typicalHalfwidthCharacterWidth: number;
|
||||
@@ -4949,6 +5000,7 @@ declare namespace monaco.editor {
|
||||
export class BareFontInfo {
|
||||
readonly _bareFontInfoBrand: void;
|
||||
readonly zoomLevel: number;
|
||||
readonly pixelRatio: number;
|
||||
readonly fontFamily: string;
|
||||
readonly fontWeight: string;
|
||||
readonly fontSize: number;
|
||||
@@ -5075,6 +5127,12 @@ declare namespace monaco.languages {
|
||||
tokenize?(line: string, state: IState): ILineTokens;
|
||||
}
|
||||
|
||||
/**
|
||||
* Change the color map that is used for token colors.
|
||||
* Supported formats (hex): #RRGGBB, $RRGGBBAA, #RGB, #RGBA
|
||||
*/
|
||||
export function setColorMap(colorMap: string[] | null): void;
|
||||
|
||||
/**
|
||||
* Set the tokens provider for a language (manual implementation).
|
||||
*/
|
||||
@@ -5366,7 +5424,7 @@ declare namespace monaco.languages {
|
||||
/**
|
||||
* This rule will only execute if the text above the this line matches this regular expression.
|
||||
*/
|
||||
oneLineAboveText?: RegExp;
|
||||
previousLineText?: RegExp;
|
||||
/**
|
||||
* The action to execute.
|
||||
*/
|
||||
@@ -6352,6 +6410,19 @@ declare namespace monaco.languages {
|
||||
resolveCodeLens?(model: editor.ITextModel, codeLens: CodeLens, token: CancellationToken): ProviderResult<CodeLens>;
|
||||
}
|
||||
|
||||
export interface InlineHint {
|
||||
text: string;
|
||||
range: IRange;
|
||||
description?: string | IMarkdownString;
|
||||
whitespaceBefore?: boolean;
|
||||
whitespaceAfter?: boolean;
|
||||
}
|
||||
|
||||
export interface InlineHintsProvider {
|
||||
onDidChangeInlineHints?: IEvent<void> | undefined;
|
||||
provideInlineHints(model: editor.ITextModel, range: Range, token: CancellationToken): ProviderResult<InlineHint[]>;
|
||||
}
|
||||
|
||||
export interface SemanticTokensLegend {
|
||||
readonly tokenTypes: string[];
|
||||
readonly tokenModifiers: string[];
|
||||
@@ -6429,6 +6500,11 @@ declare namespace monaco.languages {
|
||||
* attach this to every token class (by default '.' + name)
|
||||
*/
|
||||
tokenPostfix?: string;
|
||||
/**
|
||||
* include line feeds (in the form of a \n character) at the end of lines
|
||||
* Defaults to false
|
||||
*/
|
||||
includeLF?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user