mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Merge from vscode a5cf1da01d5db3d2557132be8d30f89c38019f6c (#8525)
* Merge from vscode a5cf1da01d5db3d2557132be8d30f89c38019f6c * remove files we don't want * fix hygiene * update distro * update distro * fix hygiene * fix strict nulls * distro * distro * fix tests * fix tests * add another edit * fix viewlet icon * fix azure dialog * fix some padding * fix more padding issues
This commit is contained in:
212
src/vs/monaco.d.ts
vendored
212
src/vs/monaco.d.ts
vendored
@@ -131,7 +131,7 @@ declare namespace monaco {
|
||||
*
|
||||
* @param value A string which represents an Uri (see `Uri#toString`).
|
||||
*/
|
||||
static parse(value: string): Uri;
|
||||
static parse(value: string, _strict?: boolean): Uri;
|
||||
/**
|
||||
* Creates a new Uri from a file system path, e.g. `c:\my\files`,
|
||||
* `/usr/home`, or `\\server\share\some\path`.
|
||||
@@ -802,6 +802,12 @@ declare namespace monaco {
|
||||
|
||||
declare namespace monaco.editor {
|
||||
|
||||
export interface IDiffNavigator {
|
||||
canNavigate(): boolean;
|
||||
next(): void;
|
||||
previous(): void;
|
||||
dispose(): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new editor under `domElement`.
|
||||
@@ -824,13 +830,6 @@ declare namespace monaco.editor {
|
||||
*/
|
||||
export function createDiffEditor(domElement: HTMLElement, options?: IDiffEditorConstructionOptions, override?: IEditorOverrideServices): IStandaloneDiffEditor;
|
||||
|
||||
export interface IDiffNavigator {
|
||||
canNavigate(): boolean;
|
||||
next(): void;
|
||||
previous(): void;
|
||||
dispose(): void;
|
||||
}
|
||||
|
||||
export interface IDiffNavigatorOptions {
|
||||
readonly followsCaret?: boolean;
|
||||
readonly ignoreCharChanges?: boolean;
|
||||
@@ -1193,7 +1192,8 @@ declare namespace monaco.editor {
|
||||
* Position in the minimap to render the decoration.
|
||||
*/
|
||||
export enum MinimapPosition {
|
||||
Inline = 1
|
||||
Inline = 1,
|
||||
Gutter = 2
|
||||
}
|
||||
|
||||
export interface IDecorationOptions {
|
||||
@@ -2396,6 +2396,18 @@ declare namespace monaco.editor {
|
||||
* The secondary selections.
|
||||
*/
|
||||
readonly secondarySelections: Selection[];
|
||||
/**
|
||||
* The model version id.
|
||||
*/
|
||||
readonly modelVersionId: number;
|
||||
/**
|
||||
* The old selections.
|
||||
*/
|
||||
readonly oldSelections: Selection[] | null;
|
||||
/**
|
||||
* The model version id the that `oldSelections` refer to.
|
||||
*/
|
||||
readonly oldModelVersionId: number;
|
||||
/**
|
||||
* Source of the call that caused the event.
|
||||
*/
|
||||
@@ -2470,6 +2482,12 @@ declare namespace monaco.editor {
|
||||
* Defaults to 0.
|
||||
*/
|
||||
cursorSurroundingLines?: number;
|
||||
/**
|
||||
* Controls when `cursorSurroundingLines` should be enforced
|
||||
* Defaults to `default`, `cursorSurroundingLines` is not enforced when cursor position is changed
|
||||
* by mouse.
|
||||
*/
|
||||
cursorSurroundingLinesStyle?: 'default' | 'all';
|
||||
/**
|
||||
* Render last line number when the file ends with a newline.
|
||||
* Defaults to true.
|
||||
@@ -2536,7 +2554,7 @@ declare namespace monaco.editor {
|
||||
fixedOverflowWidgets?: boolean;
|
||||
/**
|
||||
* The number of vertical lanes the overview ruler should render.
|
||||
* Defaults to 2.
|
||||
* Defaults to 3.
|
||||
*/
|
||||
overviewRulerLanes?: number;
|
||||
/**
|
||||
@@ -2579,8 +2597,8 @@ declare namespace monaco.editor {
|
||||
*/
|
||||
fontLigatures?: boolean | string;
|
||||
/**
|
||||
* Disable the use of `will-change` for the editor margin and lines layers.
|
||||
* The usage of `will-change` acts as a hint for browsers to create an extra layer.
|
||||
* Disable the use of `transform: translate3d(0px, 0px, 0px)` for the editor margin and lines layers.
|
||||
* The usage of `transform: translate3d(0px, 0px, 0px)` acts as a hint for browsers to create an extra layer.
|
||||
* Defaults to false.
|
||||
*/
|
||||
disableLayerHinting?: boolean;
|
||||
@@ -2712,6 +2730,10 @@ declare namespace monaco.editor {
|
||||
* Defaults to 'auto'. It is best to leave this to 'auto'.
|
||||
*/
|
||||
accessibilitySupport?: 'auto' | 'off' | 'on';
|
||||
/**
|
||||
* Controls the number of lines in the editor that can be read out by a screen reader
|
||||
*/
|
||||
accessibilityPageSize?: number;
|
||||
/**
|
||||
* Suggest options.
|
||||
*/
|
||||
@@ -2757,7 +2779,7 @@ declare namespace monaco.editor {
|
||||
* Enable auto indentation adjustment.
|
||||
* Defaults to false.
|
||||
*/
|
||||
autoIndent?: boolean;
|
||||
autoIndent?: 'none' | 'keep' | 'brackets' | 'advanced' | 'full';
|
||||
/**
|
||||
* Enable format on type.
|
||||
* Defaults to false.
|
||||
@@ -3038,22 +3060,31 @@ declare namespace monaco.editor {
|
||||
*/
|
||||
seedSearchStringFromSelection?: boolean;
|
||||
/**
|
||||
* Controls if Find in Selection flag is turned on when multiple lines of text are selected in the editor.
|
||||
* Controls if Find in Selection flag is turned on in the editor.
|
||||
*/
|
||||
autoFindInSelection?: boolean;
|
||||
autoFindInSelection?: 'never' | 'always' | 'multiline';
|
||||
addExtraSpaceOnTop?: boolean;
|
||||
}
|
||||
|
||||
export type EditorFindOptions = Readonly<Required<IEditorFindOptions>>;
|
||||
|
||||
export type GoToLocationValues = 'peek' | 'gotoAndPeek' | 'goto';
|
||||
|
||||
/**
|
||||
* Configuration options for go to location
|
||||
*/
|
||||
export interface IGotoLocationOptions {
|
||||
/**
|
||||
* Control how goto-command work when having multiple results.
|
||||
*/
|
||||
multiple?: 'peek' | 'gotoAndPeek' | 'goto';
|
||||
multiple?: GoToLocationValues;
|
||||
multipleDefinitions?: GoToLocationValues;
|
||||
multipleTypeDefinitions?: GoToLocationValues;
|
||||
multipleDeclarations?: GoToLocationValues;
|
||||
multipleImplementations?: GoToLocationValues;
|
||||
multipleReferences?: GoToLocationValues;
|
||||
alternativeDefinitionCommand?: string;
|
||||
alternativeTypeDefinitionCommand?: string;
|
||||
alternativeDeclarationCommand?: string;
|
||||
alternativeImplementationCommand?: string;
|
||||
alternativeReferenceCommand?: string;
|
||||
}
|
||||
|
||||
export type GoToLocationOptions = Readonly<Required<IGotoLocationOptions>>;
|
||||
@@ -3375,7 +3406,11 @@ declare namespace monaco.editor {
|
||||
/**
|
||||
* Overwrite word ends on accept. Default to false.
|
||||
*/
|
||||
overwriteOnAccept?: boolean;
|
||||
insertMode?: 'insert' | 'replace';
|
||||
/**
|
||||
* Show a highlight when suggestion replaces or keep text after the cursor. Defaults to false.
|
||||
*/
|
||||
insertHighlight?: boolean;
|
||||
/**
|
||||
* Enable graceful matching. Defaults to true.
|
||||
*/
|
||||
@@ -3401,9 +3436,105 @@ declare namespace monaco.editor {
|
||||
*/
|
||||
maxVisibleSuggestions?: number;
|
||||
/**
|
||||
* Names of suggestion types to filter.
|
||||
* Show method-suggestions.
|
||||
*/
|
||||
filteredTypes?: Record<string, boolean>;
|
||||
showMethods?: boolean;
|
||||
/**
|
||||
* Show function-suggestions.
|
||||
*/
|
||||
showFunctions?: boolean;
|
||||
/**
|
||||
* Show constructor-suggestions.
|
||||
*/
|
||||
showConstructors?: boolean;
|
||||
/**
|
||||
* Show field-suggestions.
|
||||
*/
|
||||
showFields?: boolean;
|
||||
/**
|
||||
* Show variable-suggestions.
|
||||
*/
|
||||
showVariables?: boolean;
|
||||
/**
|
||||
* Show class-suggestions.
|
||||
*/
|
||||
showClasses?: boolean;
|
||||
/**
|
||||
* Show struct-suggestions.
|
||||
*/
|
||||
showStructs?: boolean;
|
||||
/**
|
||||
* Show interface-suggestions.
|
||||
*/
|
||||
showInterfaces?: boolean;
|
||||
/**
|
||||
* Show module-suggestions.
|
||||
*/
|
||||
showModules?: boolean;
|
||||
/**
|
||||
* Show property-suggestions.
|
||||
*/
|
||||
showProperties?: boolean;
|
||||
/**
|
||||
* Show event-suggestions.
|
||||
*/
|
||||
showEvents?: boolean;
|
||||
/**
|
||||
* Show operator-suggestions.
|
||||
*/
|
||||
showOperators?: boolean;
|
||||
/**
|
||||
* Show unit-suggestions.
|
||||
*/
|
||||
showUnits?: boolean;
|
||||
/**
|
||||
* Show value-suggestions.
|
||||
*/
|
||||
showValues?: boolean;
|
||||
/**
|
||||
* Show constant-suggestions.
|
||||
*/
|
||||
showConstants?: boolean;
|
||||
/**
|
||||
* Show enum-suggestions.
|
||||
*/
|
||||
showEnums?: boolean;
|
||||
/**
|
||||
* Show enumMember-suggestions.
|
||||
*/
|
||||
showEnumMembers?: boolean;
|
||||
/**
|
||||
* Show keyword-suggestions.
|
||||
*/
|
||||
showKeywords?: boolean;
|
||||
/**
|
||||
* Show text-suggestions.
|
||||
*/
|
||||
showWords?: boolean;
|
||||
/**
|
||||
* Show color-suggestions.
|
||||
*/
|
||||
showColors?: boolean;
|
||||
/**
|
||||
* Show file-suggestions.
|
||||
*/
|
||||
showFiles?: boolean;
|
||||
/**
|
||||
* Show reference-suggestions.
|
||||
*/
|
||||
showReferences?: boolean;
|
||||
/**
|
||||
* Show folder-suggestions.
|
||||
*/
|
||||
showFolders?: boolean;
|
||||
/**
|
||||
* Show typeParameter-suggestions.
|
||||
*/
|
||||
showTypeParameters?: boolean;
|
||||
/**
|
||||
* Show snippet-suggestions.
|
||||
*/
|
||||
showSnippets?: boolean;
|
||||
}
|
||||
|
||||
export type InternalSuggestOptions = Readonly<Required<ISuggestOptions>>;
|
||||
@@ -4116,6 +4247,10 @@ declare namespace monaco.editor {
|
||||
* If the diff computation is not finished or the model is missing, will return null.
|
||||
*/
|
||||
getDiffLineInformationForModified(lineNumber: number): IDiffLineInformation | null;
|
||||
/**
|
||||
* Update the editor's options after the editor has been created.
|
||||
*/
|
||||
updateOptions(newOptions: IDiffEditorOptions): void;
|
||||
}
|
||||
|
||||
export class FontInfo extends BareFontInfo {
|
||||
@@ -4769,7 +4904,10 @@ declare namespace monaco.languages {
|
||||
* *Note:* The range must be a [single line](#Range.isSingleLine) and it must
|
||||
* [contain](#Range.contains) the position at which completion has been [requested](#CompletionItemProvider.provideCompletionItems).
|
||||
*/
|
||||
range: IRange;
|
||||
range: IRange | {
|
||||
insert: IRange;
|
||||
replace: IRange;
|
||||
};
|
||||
/**
|
||||
* An optional set of characters that when pressed while this completion is active will accept it first and
|
||||
* then type that character. *Note* that all commit characters should have `length=1` and that superfluous
|
||||
@@ -4853,6 +4991,7 @@ declare namespace monaco.languages {
|
||||
diagnostics?: editor.IMarkerData[];
|
||||
kind?: string;
|
||||
isPreferred?: boolean;
|
||||
disabled?: string;
|
||||
}
|
||||
|
||||
export interface CodeActionList extends IDisposable {
|
||||
@@ -5440,6 +5579,33 @@ declare namespace monaco.languages {
|
||||
resolveCodeLens?(model: editor.ITextModel, codeLens: CodeLens, token: CancellationToken): ProviderResult<CodeLens>;
|
||||
}
|
||||
|
||||
export interface SemanticTokensLegend {
|
||||
readonly tokenTypes: string[];
|
||||
readonly tokenModifiers: string[];
|
||||
}
|
||||
|
||||
export interface SemanticTokens {
|
||||
readonly resultId?: string;
|
||||
readonly data: Uint32Array;
|
||||
}
|
||||
|
||||
export interface SemanticTokensEdit {
|
||||
readonly start: number;
|
||||
readonly deleteCount: number;
|
||||
readonly data?: Uint32Array;
|
||||
}
|
||||
|
||||
export interface SemanticTokensEdits {
|
||||
readonly resultId?: string;
|
||||
readonly edits: SemanticTokensEdit[];
|
||||
}
|
||||
|
||||
export interface SemanticTokensProvider {
|
||||
getLegend(): SemanticTokensLegend;
|
||||
provideSemanticTokens(model: editor.ITextModel, lastResultId: string | null, ranges: Range[] | null, token: CancellationToken): ProviderResult<SemanticTokens | SemanticTokensEdits>;
|
||||
releaseSemanticTokens(resultId: string | undefined): void;
|
||||
}
|
||||
|
||||
export interface ILanguageExtensionPoint {
|
||||
id: string;
|
||||
extensions?: string[];
|
||||
|
||||
Reference in New Issue
Block a user