mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 (#7880)
* Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 * fix pipelines * fix strict-null-checks * add missing files
This commit is contained in:
48
src/vs/monaco.d.ts
vendored
48
src/vs/monaco.d.ts
vendored
@@ -42,9 +42,9 @@ declare namespace monaco {
|
||||
|
||||
export class CancellationTokenSource {
|
||||
constructor(parent?: CancellationToken);
|
||||
readonly token: CancellationToken;
|
||||
get token(): CancellationToken;
|
||||
cancel(): void;
|
||||
dispose(): void;
|
||||
dispose(cancel?: boolean): void;
|
||||
}
|
||||
|
||||
export interface CancellationToken {
|
||||
@@ -55,7 +55,6 @@ declare namespace monaco {
|
||||
*/
|
||||
readonly onCancellationRequested: IEvent<any>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Uniform Resource Identifier (Uri) http://tools.ietf.org/html/rfc3986.
|
||||
* This class is a simple parser which creates the basic component parts
|
||||
@@ -118,7 +117,7 @@ declare namespace monaco {
|
||||
* namely the server name, would be missing. Therefore `Uri#fsPath` exists - it's sugar to ease working
|
||||
* with URIs that represent files on disk (`file` scheme).
|
||||
*/
|
||||
readonly fsPath: string;
|
||||
get fsPath(): string;
|
||||
with(change: {
|
||||
scheme?: string;
|
||||
authority?: string | null;
|
||||
@@ -132,7 +131,7 @@ declare namespace monaco {
|
||||
*
|
||||
* @param value A string which represents an Uri (see `Uri#toString`).
|
||||
*/
|
||||
static parse(value: string, _strict?: boolean): Uri;
|
||||
static parse(value: string): Uri;
|
||||
/**
|
||||
* Creates a new Uri from a file system path, e.g. `c:\my\files`,
|
||||
* `/usr/home`, or `\\server\share\some\path`.
|
||||
@@ -379,8 +378,8 @@ declare namespace monaco {
|
||||
}
|
||||
|
||||
export interface IMarkdownString {
|
||||
value: string;
|
||||
isTrusted?: boolean;
|
||||
readonly value: string;
|
||||
readonly isTrusted?: boolean;
|
||||
uris?: {
|
||||
[href: string]: UriComponents;
|
||||
};
|
||||
@@ -727,10 +726,6 @@ declare namespace monaco {
|
||||
*/
|
||||
readonly positionColumn: number;
|
||||
constructor(selectionStartLineNumber: number, selectionStartColumn: number, positionLineNumber: number, positionColumn: number);
|
||||
/**
|
||||
* Clone this selection.
|
||||
*/
|
||||
clone(): Selection;
|
||||
/**
|
||||
* Transform to a human-readable representation.
|
||||
*/
|
||||
@@ -1556,6 +1551,11 @@ declare namespace monaco.editor {
|
||||
* @return The text length.
|
||||
*/
|
||||
getValueLengthInRange(range: IRange): number;
|
||||
/**
|
||||
* Get the character count of text in a certain range.
|
||||
* @param range The range describing what text length to get.
|
||||
*/
|
||||
getCharacterCountInRange(range: IRange): number;
|
||||
/**
|
||||
* Get the number of lines in the model.
|
||||
*/
|
||||
@@ -2209,10 +2209,6 @@ declare namespace monaco.editor {
|
||||
* An editor contribution that gets created every time a new editor gets created and gets disposed when the editor gets disposed.
|
||||
*/
|
||||
export interface IEditorContribution {
|
||||
/**
|
||||
* Get a unique identifier for this contribution.
|
||||
*/
|
||||
getId(): string;
|
||||
/**
|
||||
* Dispose this contribution.
|
||||
*/
|
||||
@@ -2581,7 +2577,7 @@ declare namespace monaco.editor {
|
||||
* Enable font ligatures.
|
||||
* Defaults to false.
|
||||
*/
|
||||
fontLigatures?: boolean;
|
||||
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.
|
||||
@@ -2941,6 +2937,11 @@ declare namespace monaco.editor {
|
||||
* Defaults to true.
|
||||
*/
|
||||
renderSideBySide?: boolean;
|
||||
/**
|
||||
* Timeout in milliseconds after which diff computation is cancelled.
|
||||
* Defaults to 5000.
|
||||
*/
|
||||
maxComputationTime?: number;
|
||||
/**
|
||||
* Compute the diff by ignoring leading/trailing whitespace
|
||||
* Defaults to true.
|
||||
@@ -3104,10 +3105,8 @@ declare namespace monaco.editor {
|
||||
|
||||
export enum RenderMinimap {
|
||||
None = 0,
|
||||
Small = 1,
|
||||
Large = 2,
|
||||
SmallBlocks = 3,
|
||||
LargeBlocks = 4
|
||||
Text = 1,
|
||||
Blocks = 2
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3242,6 +3241,10 @@ declare namespace monaco.editor {
|
||||
* Defaults to 120.
|
||||
*/
|
||||
maxColumn?: number;
|
||||
/**
|
||||
* Relative size of the font in the minimap. Defaults to 1.
|
||||
*/
|
||||
scale?: number;
|
||||
}
|
||||
|
||||
export type EditorMinimapOptions = Readonly<Required<IEditorMinimapOptions>>;
|
||||
@@ -3369,6 +3372,10 @@ declare namespace monaco.editor {
|
||||
* Configuration options for editor suggest widget
|
||||
*/
|
||||
export interface ISuggestOptions {
|
||||
/**
|
||||
* Overwrite word ends on accept. Default to false.
|
||||
*/
|
||||
overwriteOnAccept?: boolean;
|
||||
/**
|
||||
* Enable graceful matching. Defaults to true.
|
||||
*/
|
||||
@@ -4128,6 +4135,7 @@ declare namespace monaco.editor {
|
||||
readonly fontFamily: string;
|
||||
readonly fontWeight: string;
|
||||
readonly fontSize: number;
|
||||
readonly fontFeatureSettings: string;
|
||||
readonly lineHeight: number;
|
||||
readonly letterSpacing: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user