mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Merge from vscode 718331d6f3ebd1b571530ab499edb266ddd493d5
This commit is contained in:
212
src/vs/monaco.d.ts
vendored
212
src/vs/monaco.d.ts
vendored
@@ -3,12 +3,18 @@
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare let MonacoEnvironment: monaco.Environment | undefined;
|
||||
|
||||
declare namespace monaco {
|
||||
|
||||
// THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY.
|
||||
|
||||
export type Thenable<T> = PromiseLike<T>;
|
||||
|
||||
export interface Environment {
|
||||
baseUrl?: string;
|
||||
getWorker?(workerId: string, label: string): Worker;
|
||||
getWorkerUrl?(workerId: string, label: string): string;
|
||||
}
|
||||
|
||||
export interface IDisposable {
|
||||
dispose(): void;
|
||||
}
|
||||
@@ -1046,7 +1052,7 @@ declare namespace monaco.editor {
|
||||
* Method that will be executed when the action is triggered.
|
||||
* @param editor The editor instance is passed in as a convenience
|
||||
*/
|
||||
run(editor: ICodeEditor): void | Promise<void>;
|
||||
run(editor: ICodeEditor, ...args: any[]): void | Promise<void>;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1461,20 +1467,6 @@ declare namespace monaco.editor {
|
||||
CRLF = 1
|
||||
}
|
||||
|
||||
/**
|
||||
* An identifier for a single edit operation.
|
||||
*/
|
||||
export interface ISingleEditOperationIdentifier {
|
||||
/**
|
||||
* Identifier major
|
||||
*/
|
||||
major: number;
|
||||
/**
|
||||
* Identifier minor
|
||||
*/
|
||||
minor: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* A single edit operation, that acts as a simple replace.
|
||||
* i.e. Replace text at `range` with `text` in model.
|
||||
@@ -2179,6 +2171,11 @@ declare namespace monaco.editor {
|
||||
* Scroll vertically as necessary and reveal a line centered vertically only if it lies outside the viewport.
|
||||
*/
|
||||
revealLineInCenterIfOutsideViewport(lineNumber: number, scrollType?: ScrollType): void;
|
||||
/**
|
||||
* Scroll vertically as necessary and reveal a line close to the top of the viewport,
|
||||
* optimized for viewing a code definition.
|
||||
*/
|
||||
revealLineNearTop(lineNumber: number, scrollType?: ScrollType): void;
|
||||
/**
|
||||
* Scroll vertically or horizontally as necessary and reveal a position.
|
||||
*/
|
||||
@@ -2191,6 +2188,11 @@ declare namespace monaco.editor {
|
||||
* Scroll vertically or horizontally as necessary and reveal a position centered vertically only if it lies outside the viewport.
|
||||
*/
|
||||
revealPositionInCenterIfOutsideViewport(position: IPosition, scrollType?: ScrollType): void;
|
||||
/**
|
||||
* Scroll vertically or horizontally as necessary and reveal a position close to the top of the viewport,
|
||||
* optimized for viewing a code definition.
|
||||
*/
|
||||
revealPositionNearTop(position: IPosition, scrollType?: ScrollType): void;
|
||||
/**
|
||||
* Returns the primary selection of the editor.
|
||||
*/
|
||||
@@ -2236,6 +2238,11 @@ declare namespace monaco.editor {
|
||||
* Scroll vertically as necessary and reveal lines centered vertically only if it lies outside the viewport.
|
||||
*/
|
||||
revealLinesInCenterIfOutsideViewport(lineNumber: number, endLineNumber: number, scrollType?: ScrollType): void;
|
||||
/**
|
||||
* Scroll vertically as necessary and reveal lines close to the top of the viewport,
|
||||
* optimized for viewing a code definition.
|
||||
*/
|
||||
revealLinesNearTop(lineNumber: number, endLineNumber: number, scrollType?: ScrollType): void;
|
||||
/**
|
||||
* Scroll vertically or horizontally as necessary and reveal a range.
|
||||
*/
|
||||
@@ -2252,6 +2259,11 @@ declare namespace monaco.editor {
|
||||
* Scroll vertically or horizontally as necessary and reveal a range centered vertically only if it lies outside the viewport.
|
||||
*/
|
||||
revealRangeInCenterIfOutsideViewport(range: IRange, scrollType?: ScrollType): void;
|
||||
/**
|
||||
* Scroll vertically or horizontally as necessary and reveal a range close to the top of the viewport,
|
||||
* optimized for viewing a code definition.
|
||||
*/
|
||||
revealRangeNearTop(range: IRange, scrollType?: ScrollType): void;
|
||||
/**
|
||||
* Directly trigger a handler or an editor action.
|
||||
* @param source The source of the call.
|
||||
@@ -2373,23 +2385,6 @@ declare namespace monaco.editor {
|
||||
export interface IModelDecorationsChangedEvent {
|
||||
}
|
||||
|
||||
/**
|
||||
* An event describing that some ranges of lines have been tokenized (their tokens have changed).
|
||||
*/
|
||||
export interface IModelTokensChangedEvent {
|
||||
readonly tokenizationSupportChanged: boolean;
|
||||
readonly ranges: {
|
||||
/**
|
||||
* The start of the range (inclusive)
|
||||
*/
|
||||
readonly fromLineNumber: number;
|
||||
/**
|
||||
* The end of the range (inclusive)
|
||||
*/
|
||||
readonly toLineNumber: number;
|
||||
}[];
|
||||
}
|
||||
|
||||
export interface IModelOptionsChangedEvent {
|
||||
readonly tabSize: boolean;
|
||||
readonly indentSize: boolean;
|
||||
@@ -2538,7 +2533,7 @@ declare namespace monaco.editor {
|
||||
* Render vertical lines at the specified columns.
|
||||
* Defaults to empty array.
|
||||
*/
|
||||
rulers?: number[];
|
||||
rulers?: (number | IRulerOption)[];
|
||||
/**
|
||||
* A string containing the word separators used when doing word navigation.
|
||||
* Defaults to `~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?
|
||||
@@ -2554,7 +2549,7 @@ declare namespace monaco.editor {
|
||||
* If it is a function, it will be invoked when rendering a line number and the return value will be rendered.
|
||||
* Otherwise, if it is a truey, line numbers will be rendered normally (equivalent of using an identity function).
|
||||
* Otherwise, line numbers will not be rendered.
|
||||
* Defaults to true.
|
||||
* Defaults to `on`.
|
||||
*/
|
||||
lineNumbers?: LineNumbersType;
|
||||
/**
|
||||
@@ -2747,10 +2742,10 @@ declare namespace monaco.editor {
|
||||
*/
|
||||
wrappingIndent?: 'none' | 'same' | 'indent' | 'deepIndent';
|
||||
/**
|
||||
* Controls the wrapping algorithm to use.
|
||||
* Defaults to 'monospace'.
|
||||
* Controls the wrapping strategy to use.
|
||||
* Defaults to 'simple'.
|
||||
*/
|
||||
wrappingAlgorithm?: 'monospace' | 'dom';
|
||||
wrappingStrategy?: 'simple' | 'advanced';
|
||||
/**
|
||||
* Configure word wrapping characters. A break will be introduced before these characters.
|
||||
* Defaults to '([{‘“〈《「『【〔([{「£¥$£¥++'.
|
||||
@@ -2799,6 +2794,11 @@ declare namespace monaco.editor {
|
||||
* Defaults to 5.
|
||||
*/
|
||||
fastScrollSensitivity?: number;
|
||||
/**
|
||||
* Enable that the editor scrolls only the predominant axis. Prevents horizontal drift when scrolling vertically on a trackpad.
|
||||
* Defaults to true.
|
||||
*/
|
||||
scrollPredominantAxis?: boolean;
|
||||
/**
|
||||
* The modifier to be used to add multiple cursors with the mouse.
|
||||
* Defaults to 'alt'
|
||||
@@ -2865,8 +2865,8 @@ declare namespace monaco.editor {
|
||||
*/
|
||||
autoSurround?: EditorAutoSurroundStrategy;
|
||||
/**
|
||||
* Enable auto indentation adjustment.
|
||||
* Defaults to false.
|
||||
* Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.
|
||||
* Defaults to advanced.
|
||||
*/
|
||||
autoIndent?: 'none' | 'keep' | 'brackets' | 'advanced' | 'full';
|
||||
/**
|
||||
@@ -3035,6 +3035,11 @@ declare namespace monaco.editor {
|
||||
* Defaults to false.
|
||||
*/
|
||||
peekWidgetDefaultFocus?: 'tree' | 'editor';
|
||||
/**
|
||||
* Controls whether the definition link opens element in the peek widget.
|
||||
* Defaults to false.
|
||||
*/
|
||||
definitionLinkOpensInPeek?: boolean;
|
||||
}
|
||||
|
||||
export interface IEditorConstructionOptions extends IEditorOptions {
|
||||
@@ -3088,6 +3093,7 @@ declare namespace monaco.editor {
|
||||
* An event describing that the configuration of the editor has changed.
|
||||
*/
|
||||
export class ConfigurationChangedEvent {
|
||||
hasChanged(id: EditorOption): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3237,17 +3243,6 @@ declare namespace monaco.editor {
|
||||
|
||||
export type EditorHoverOptions = Readonly<Required<IEditorHoverOptions>>;
|
||||
|
||||
/**
|
||||
* Configuration options for semantic highlighting
|
||||
*/
|
||||
export interface IEditorSemanticHighlightingOptions {
|
||||
/**
|
||||
* Enable semantic highlighting.
|
||||
* Defaults to true.
|
||||
*/
|
||||
enabled?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* A description for the overview ruler position.
|
||||
*/
|
||||
@@ -3444,6 +3439,11 @@ declare namespace monaco.editor {
|
||||
readonly renderFn: ((lineNumber: number) => string) | null;
|
||||
}
|
||||
|
||||
export interface IRulerOption {
|
||||
readonly column: number;
|
||||
readonly color: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configuration options for editor scrollbars
|
||||
*/
|
||||
@@ -3661,6 +3661,10 @@ declare namespace monaco.editor {
|
||||
* Show snippet-suggestions.
|
||||
*/
|
||||
showSnippets?: boolean;
|
||||
/**
|
||||
* Controls the visibility of the status bar at the bottom of the suggest widget.
|
||||
*/
|
||||
hideStatusBar?: boolean;
|
||||
}
|
||||
|
||||
export type InternalSuggestOptions = Readonly<Required<ISuggestOptions>>;
|
||||
@@ -3761,50 +3765,51 @@ declare namespace monaco.editor {
|
||||
overviewRulerLanes = 63,
|
||||
parameterHints = 64,
|
||||
peekWidgetDefaultFocus = 65,
|
||||
quickSuggestions = 66,
|
||||
quickSuggestionsDelay = 67,
|
||||
readOnly = 68,
|
||||
renderControlCharacters = 69,
|
||||
renderIndentGuides = 70,
|
||||
renderFinalNewline = 71,
|
||||
renderLineHighlight = 72,
|
||||
renderValidationDecorations = 73,
|
||||
renderWhitespace = 74,
|
||||
revealHorizontalRightPadding = 75,
|
||||
roundedSelection = 76,
|
||||
rulers = 77,
|
||||
scrollbar = 78,
|
||||
scrollBeyondLastColumn = 79,
|
||||
scrollBeyondLastLine = 80,
|
||||
selectionClipboard = 81,
|
||||
selectionHighlight = 82,
|
||||
selectOnLineNumbers = 83,
|
||||
semanticHighlighting = 84,
|
||||
showFoldingControls = 85,
|
||||
showUnused = 86,
|
||||
snippetSuggestions = 87,
|
||||
smoothScrolling = 88,
|
||||
stopRenderingLineAfter = 89,
|
||||
suggest = 90,
|
||||
suggestFontSize = 91,
|
||||
suggestLineHeight = 92,
|
||||
suggestOnTriggerCharacters = 93,
|
||||
suggestSelection = 94,
|
||||
tabCompletion = 95,
|
||||
useTabStops = 96,
|
||||
wordSeparators = 97,
|
||||
wordWrap = 98,
|
||||
wordWrapBreakAfterCharacters = 99,
|
||||
wordWrapBreakBeforeCharacters = 100,
|
||||
wordWrapColumn = 101,
|
||||
wordWrapMinified = 102,
|
||||
wrappingIndent = 103,
|
||||
wrappingAlgorithm = 104,
|
||||
editorClassName = 105,
|
||||
pixelRatio = 106,
|
||||
tabFocusMode = 107,
|
||||
layoutInfo = 108,
|
||||
wrappingInfo = 109
|
||||
definitionLinkOpensInPeek = 66,
|
||||
quickSuggestions = 67,
|
||||
quickSuggestionsDelay = 68,
|
||||
readOnly = 69,
|
||||
renderControlCharacters = 70,
|
||||
renderIndentGuides = 71,
|
||||
renderFinalNewline = 72,
|
||||
renderLineHighlight = 73,
|
||||
renderValidationDecorations = 74,
|
||||
renderWhitespace = 75,
|
||||
revealHorizontalRightPadding = 76,
|
||||
roundedSelection = 77,
|
||||
rulers = 78,
|
||||
scrollbar = 79,
|
||||
scrollBeyondLastColumn = 80,
|
||||
scrollBeyondLastLine = 81,
|
||||
scrollPredominantAxis = 82,
|
||||
selectionClipboard = 83,
|
||||
selectionHighlight = 84,
|
||||
selectOnLineNumbers = 85,
|
||||
showFoldingControls = 86,
|
||||
showUnused = 87,
|
||||
snippetSuggestions = 88,
|
||||
smoothScrolling = 89,
|
||||
stopRenderingLineAfter = 90,
|
||||
suggest = 91,
|
||||
suggestFontSize = 92,
|
||||
suggestLineHeight = 93,
|
||||
suggestOnTriggerCharacters = 94,
|
||||
suggestSelection = 95,
|
||||
tabCompletion = 96,
|
||||
useTabStops = 97,
|
||||
wordSeparators = 98,
|
||||
wordWrap = 99,
|
||||
wordWrapBreakAfterCharacters = 100,
|
||||
wordWrapBreakBeforeCharacters = 101,
|
||||
wordWrapColumn = 102,
|
||||
wordWrapMinified = 103,
|
||||
wrappingIndent = 104,
|
||||
wrappingStrategy = 105,
|
||||
editorClassName = 106,
|
||||
pixelRatio = 107,
|
||||
tabFocusMode = 108,
|
||||
layoutInfo = 109,
|
||||
wrappingInfo = 110
|
||||
}
|
||||
export const EditorOptions: {
|
||||
acceptSuggestionOnCommitCharacter: IEditorOption<EditorOption.acceptSuggestionOnCommitCharacter, boolean>;
|
||||
@@ -3873,6 +3878,7 @@ declare namespace monaco.editor {
|
||||
overviewRulerLanes: IEditorOption<EditorOption.overviewRulerLanes, number>;
|
||||
parameterHints: IEditorOption<EditorOption.parameterHints, InternalParameterHintOptions>;
|
||||
peekWidgetDefaultFocus: IEditorOption<EditorOption.peekWidgetDefaultFocus, 'tree' | 'editor'>;
|
||||
definitionLinkOpensInPeek: IEditorOption<EditorOption.definitionLinkOpensInPeek, boolean>;
|
||||
quickSuggestions: IEditorOption<EditorOption.quickSuggestions, ValidQuickSuggestionsOptions>;
|
||||
quickSuggestionsDelay: IEditorOption<EditorOption.quickSuggestionsDelay, number>;
|
||||
readOnly: IEditorOption<EditorOption.readOnly, boolean>;
|
||||
@@ -3888,10 +3894,10 @@ declare namespace monaco.editor {
|
||||
scrollbar: IEditorOption<EditorOption.scrollbar, InternalEditorScrollbarOptions>;
|
||||
scrollBeyondLastColumn: IEditorOption<EditorOption.scrollBeyondLastColumn, number>;
|
||||
scrollBeyondLastLine: IEditorOption<EditorOption.scrollBeyondLastLine, boolean>;
|
||||
scrollPredominantAxis: IEditorOption<EditorOption.scrollPredominantAxis, boolean>;
|
||||
selectionClipboard: IEditorOption<EditorOption.selectionClipboard, boolean>;
|
||||
selectionHighlight: IEditorOption<EditorOption.selectionHighlight, boolean>;
|
||||
selectOnLineNumbers: IEditorOption<EditorOption.selectOnLineNumbers, boolean>;
|
||||
semanticHighlighting: IEditorOption<EditorOption.semanticHighlighting, any>;
|
||||
showFoldingControls: IEditorOption<EditorOption.showFoldingControls, 'always' | 'mouseover'>;
|
||||
showUnused: IEditorOption<EditorOption.showUnused, boolean>;
|
||||
snippetSuggestions: IEditorOption<EditorOption.snippetSuggestions, 'none' | 'top' | 'bottom' | 'inline'>;
|
||||
@@ -3911,7 +3917,7 @@ declare namespace monaco.editor {
|
||||
wordWrapColumn: IEditorOption<EditorOption.wordWrapColumn, number>;
|
||||
wordWrapMinified: IEditorOption<EditorOption.wordWrapMinified, boolean>;
|
||||
wrappingIndent: IEditorOption<EditorOption.wrappingIndent, WrappingIndent>;
|
||||
wrappingAlgorithm: IEditorOption<EditorOption.wrappingAlgorithm, 'monospace' | 'dom'>;
|
||||
wrappingStrategy: IEditorOption<EditorOption.wrappingStrategy, 'simple' | 'advanced'>;
|
||||
editorClassName: IEditorOption<EditorOption.editorClassName, string>;
|
||||
pixelRatio: IEditorOption<EditorOption.pixelRatio, number>;
|
||||
tabFocusMode: IEditorOption<EditorOption.tabFocusMode, boolean>;
|
||||
@@ -4901,6 +4907,16 @@ declare namespace monaco.languages {
|
||||
*/
|
||||
export function registerSelectionRangeProvider(languageId: string, provider: SelectionRangeProvider): IDisposable;
|
||||
|
||||
/**
|
||||
* Register a document semantic tokens provider
|
||||
*/
|
||||
export function registerDocumentSemanticTokensProvider(languageId: string, provider: DocumentSemanticTokensProvider): IDisposable;
|
||||
|
||||
/**
|
||||
* Register a document range semantic tokens provider
|
||||
*/
|
||||
export function registerDocumentRangeSemanticTokensProvider(languageId: string, provider: DocumentRangeSemanticTokensProvider): IDisposable;
|
||||
|
||||
/**
|
||||
* Contains additional diagnostic information about the context in which
|
||||
* a [code action](#CodeActionProvider.provideCodeActions) is run.
|
||||
|
||||
Reference in New Issue
Block a user