mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-12 11:08:31 -05:00
Merge from vscode 2e5312cd61ff99c570299ecc122c52584265eda2
This commit is contained in:
committed by
Anthony Dresser
parent
3603f55d97
commit
7f1d8fc32f
102
src/vs/vscode.d.ts
vendored
102
src/vs/vscode.d.ts
vendored
@@ -810,7 +810,7 @@ declare module 'vscode' {
|
||||
|
||||
/**
|
||||
* Creates a reference to a theme icon.
|
||||
* @param id id of the icon. The avaiable icons are listed in https://microsoft.github.io/vscode-codicons/dist/codicon.html.
|
||||
* @param id id of the icon. The available icons are listed in https://microsoft.github.io/vscode-codicons/dist/codicon.html.
|
||||
*/
|
||||
constructor(id: string);
|
||||
}
|
||||
@@ -1278,6 +1278,28 @@ declare module 'vscode' {
|
||||
*/
|
||||
static file(path: string): Uri;
|
||||
|
||||
/**
|
||||
* Create a new uri which path is the result of joining
|
||||
* the path of the base uri with the provided path segments.
|
||||
*
|
||||
* - Note 1: `joinPath` only affects the path component
|
||||
* and all other components (scheme, authority, query, and fragment) are
|
||||
* left as they are.
|
||||
* - Note 2: The base uri must have a path; an error is thrown otherwise.
|
||||
*
|
||||
* The path segments are normalized in the following ways:
|
||||
* - sequences of path separators (`/` or `\`) are replaced with a single separator
|
||||
* - for `file`-uris on windows, the backslash-character (`\`) is considered a path-separator
|
||||
* - the `..`-segment denotes the parent segment, the `.` denotes the current segement
|
||||
* - paths have a root which always remains, for instance on windows drive-letters are roots
|
||||
* so that is true: `joinPath(Uri.file('file:///c:/root'), '../../other').fsPath === 'c:/other'`
|
||||
*
|
||||
* @param base An uri. Must have a path.
|
||||
* @param pathSegments One more more path fragments
|
||||
* @returns A new uri which path is joined with the given fragments
|
||||
*/
|
||||
static joinPath(base: Uri, ...pathSegments: string[]): Uri;
|
||||
|
||||
/**
|
||||
* Use the `file` and `parse` factory functions to create new `Uri` objects.
|
||||
*/
|
||||
@@ -1490,7 +1512,7 @@ declare module 'vscode' {
|
||||
*
|
||||
* @param data The event object.
|
||||
*/
|
||||
fire(data?: T): void;
|
||||
fire(data: T): void;
|
||||
|
||||
/**
|
||||
* Dispose this object and free resources.
|
||||
@@ -3158,11 +3180,11 @@ declare module 'vscode' {
|
||||
/**
|
||||
* The possible token types.
|
||||
*/
|
||||
public readonly tokenTypes: string[];
|
||||
readonly tokenTypes: string[];
|
||||
/**
|
||||
* The possible token modifiers.
|
||||
*/
|
||||
public readonly tokenModifiers: string[];
|
||||
readonly tokenModifiers: string[];
|
||||
|
||||
constructor(tokenTypes: string[], tokenModifiers?: string[]);
|
||||
}
|
||||
@@ -3517,6 +3539,13 @@ declare module 'vscode' {
|
||||
*/
|
||||
parameters: ParameterInformation[];
|
||||
|
||||
/**
|
||||
* The index of the active parameter.
|
||||
*
|
||||
* If provided, this is used in place of [`SignatureHelp.activeSignature`](#SignatureHelp.activeSignature).
|
||||
*/
|
||||
activeParameter?: number;
|
||||
|
||||
/**
|
||||
* Creates a new signature information object.
|
||||
*
|
||||
@@ -3670,7 +3699,9 @@ declare module 'vscode' {
|
||||
Struct = 21,
|
||||
Event = 22,
|
||||
Operator = 23,
|
||||
TypeParameter = 24
|
||||
TypeParameter = 24,
|
||||
User = 25,
|
||||
Issue = 26,
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5340,7 +5371,13 @@ declare module 'vscode' {
|
||||
readonly id: string;
|
||||
|
||||
/**
|
||||
* The absolute file path of the directory containing this extension.
|
||||
* The uri of the directory containing the extension.
|
||||
*/
|
||||
readonly extensionUri: Uri;
|
||||
|
||||
/**
|
||||
* The absolute file path of the directory containing this extension. Shorthand
|
||||
* notation for [Extension.extensionUri.fsPath](#Extension.extensionUri) (independent of the uri scheme).
|
||||
*/
|
||||
readonly extensionPath: string;
|
||||
|
||||
@@ -5405,7 +5442,13 @@ declare module 'vscode' {
|
||||
readonly globalState: Memento;
|
||||
|
||||
/**
|
||||
* The absolute file path of the directory containing the extension.
|
||||
* The uri of the directory containing the extension.
|
||||
*/
|
||||
readonly extensionUri: Uri;
|
||||
|
||||
/**
|
||||
* The absolute file path of the directory containing the extension. Shorthand
|
||||
* notation for [ExtensionContext.extensionUri.fsPath](#TextDocument.uri) (independent of the uri scheme).
|
||||
*/
|
||||
readonly extensionPath: string;
|
||||
|
||||
@@ -5477,6 +5520,26 @@ declare module 'vscode' {
|
||||
update(key: string, value: any): Thenable<void>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a color theme kind.
|
||||
*/
|
||||
export enum ColorThemeKind {
|
||||
Light = 1,
|
||||
Dark = 2,
|
||||
HighContrast = 3
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a color theme.
|
||||
*/
|
||||
export interface ColorTheme {
|
||||
|
||||
/**
|
||||
* The kind of this color theme: light, dark or high contrast.
|
||||
*/
|
||||
readonly kind: ColorThemeKind;
|
||||
}
|
||||
|
||||
/**
|
||||
* Controls the behaviour of the terminal's visibility.
|
||||
*/
|
||||
@@ -6434,7 +6497,7 @@ declare module 'vscode' {
|
||||
* with files from the local disk as well as files from remote places, like the
|
||||
* remote extension host or ftp-servers.
|
||||
*
|
||||
* *Note* that an instance of this interface is avaiable as [`workspace.fs`](#workspace.fs).
|
||||
* *Note* that an instance of this interface is available as [`workspace.fs`](#workspace.fs).
|
||||
*/
|
||||
export interface FileSystem {
|
||||
|
||||
@@ -7691,6 +7754,17 @@ declare module 'vscode' {
|
||||
* @return Disposable that unregisters the provider.
|
||||
*/
|
||||
export function registerCustomEditorProvider(viewType: string, provider: CustomTextEditorProvider, options?: { readonly webviewOptions?: WebviewPanelOptions; }): Disposable;
|
||||
|
||||
/**
|
||||
* The currently active color theme as configured in the settings. The active
|
||||
* theme can be changed via the `workbench.colorTheme` setting.
|
||||
*/
|
||||
export let activeColorTheme: ColorTheme;
|
||||
|
||||
/**
|
||||
* An [event](#Event) which fires when the active color theme is changed or has changes.
|
||||
*/
|
||||
export const onDidChangeActiveColorTheme: Event<ColorTheme>;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -9746,6 +9820,11 @@ declare module 'vscode' {
|
||||
* A string to show as placeholder in the input box to guide the user.
|
||||
*/
|
||||
placeholder: string;
|
||||
|
||||
/**
|
||||
* Controls whether the input box is visible (default is `true`).
|
||||
*/
|
||||
visible: boolean;
|
||||
}
|
||||
|
||||
interface QuickDiffProvider {
|
||||
@@ -10047,13 +10126,13 @@ declare module 'vscode' {
|
||||
}
|
||||
|
||||
/**
|
||||
* A debug configuration provider allows to add the initial debug configurations to a newly created launch.json
|
||||
* and to resolve a launch configuration before it is used to start a new debug session.
|
||||
* A debug configuration provider allows to add debug configurations to the debug service
|
||||
* and to resolve launch configurations before they are used to start a debug session.
|
||||
* A debug configuration provider is registered via #debug.registerDebugConfigurationProvider.
|
||||
*/
|
||||
export interface DebugConfigurationProvider {
|
||||
/**
|
||||
* Provides initial [debug configuration](#DebugConfiguration). If more than one debug configuration provider is
|
||||
* Provides [debug configuration](#DebugConfiguration) to the debug service. If more than one debug configuration provider is
|
||||
* registered for the same type, debug configurations are concatenated in arbitrary order.
|
||||
*
|
||||
* @param folder The workspace folder for which the configurations are used or `undefined` for a folderless setup.
|
||||
@@ -10457,7 +10536,6 @@ declare module 'vscode' {
|
||||
*/
|
||||
export const onDidChangeBreakpoints: Event<BreakpointsChangeEvent>;
|
||||
|
||||
|
||||
/**
|
||||
* Register a [debug configuration provider](#DebugConfigurationProvider) for a specific debug type.
|
||||
* More than one provider can be registered for the same type.
|
||||
|
||||
Reference in New Issue
Block a user