mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-10 18:22:34 -05:00
Merge from vscode ad407028575a77ea387eb7cc219b323dc017b686
This commit is contained in:
committed by
Anthony Dresser
parent
404260b8a0
commit
4ad73d381c
152
src/vs/vscode.d.ts
vendored
152
src/vs/vscode.d.ts
vendored
@@ -1112,7 +1112,7 @@ declare module 'vscode' {
|
||||
* isn't one of the main editors, e.g. an embedded editor, or when the editor
|
||||
* column is larger than three.
|
||||
*/
|
||||
viewColumn?: ViewColumn;
|
||||
readonly viewColumn?: ViewColumn;
|
||||
|
||||
/**
|
||||
* Perform an edit on the document associated with this text editor.
|
||||
@@ -5420,6 +5420,66 @@ declare module 'vscode' {
|
||||
dispose(): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides information on a line in a terminal in order to provide links for it.
|
||||
*/
|
||||
export interface TerminalLinkContext {
|
||||
/**
|
||||
* This is the text from the unwrapped line in the terminal.
|
||||
*/
|
||||
line: string;
|
||||
|
||||
/**
|
||||
* The terminal the link belongs to.
|
||||
*/
|
||||
terminal: Terminal;
|
||||
}
|
||||
|
||||
/**
|
||||
* A provider that enables detection and handling of links within terminals.
|
||||
*/
|
||||
export interface TerminalLinkProvider<T extends TerminalLink = TerminalLink> {
|
||||
/**
|
||||
* Provide terminal links for the given context. Note that this can be called multiple times
|
||||
* even before previous calls resolve, make sure to not share global objects (eg. `RegExp`)
|
||||
* that could have problems when asynchronous usage may overlap.
|
||||
* @param context Information about what links are being provided for.
|
||||
* @param token A cancellation token.
|
||||
* @return A list of terminal links for the given line.
|
||||
*/
|
||||
provideTerminalLinks(context: TerminalLinkContext, token: CancellationToken): ProviderResult<T[]>
|
||||
|
||||
/**
|
||||
* Handle an activated terminal link.
|
||||
* @param link The link to handle.
|
||||
*/
|
||||
handleTerminalLink(link: T): ProviderResult<void>;
|
||||
}
|
||||
|
||||
/**
|
||||
* A link on a terminal line.
|
||||
*/
|
||||
export interface TerminalLink {
|
||||
/**
|
||||
* The start index of the link on [TerminalLinkContext.line](#TerminalLinkContext.line].
|
||||
*/
|
||||
startIndex: number;
|
||||
|
||||
/**
|
||||
* The length of the link on [TerminalLinkContext.line](#TerminalLinkContext.line]
|
||||
*/
|
||||
length: number;
|
||||
|
||||
/**
|
||||
* The tooltip text when you hover over this link.
|
||||
*
|
||||
* If a tooltip is provided, is will be displayed in a string that includes instructions on
|
||||
* how to trigger the link, such as `{0} (ctrl + click)`. The specific instructions vary
|
||||
* depending on OS, user settings, and localization.
|
||||
*/
|
||||
tooltip?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* In a remote window the extension kind describes if an extension
|
||||
* runs where the UI (window) runs or if an extension runs remotely.
|
||||
@@ -5569,6 +5629,20 @@ declare module 'vscode' {
|
||||
*/
|
||||
asAbsolutePath(relativePath: string): string;
|
||||
|
||||
/**
|
||||
* The uri of a workspace specific directory in which the extension
|
||||
* can store private state. The directory might not exist and creation is
|
||||
* up to the extension. However, the parent directory is guaranteed to be existent.
|
||||
* The value is `undefined` when no workspace nor folder has been opened.
|
||||
*
|
||||
* Use [`workspaceState`](#ExtensionContext.workspaceState) or
|
||||
* [`globalState`](#ExtensionContext.globalState) to store key value data.
|
||||
*
|
||||
* @see [`workspace.fs`](#FileSystem) for how to read and write files and folders from
|
||||
* an uri.
|
||||
*/
|
||||
readonly storageUri: Uri | undefined;
|
||||
|
||||
/**
|
||||
* An absolute file path of a workspace specific directory in which the extension
|
||||
* can store private state. The directory might not exist on disk and creation is
|
||||
@@ -5576,22 +5650,50 @@ declare module 'vscode' {
|
||||
*
|
||||
* Use [`workspaceState`](#ExtensionContext.workspaceState) or
|
||||
* [`globalState`](#ExtensionContext.globalState) to store key value data.
|
||||
*
|
||||
* @deprecated Use [storagePath](#ExtensionContent.storageUri) instead.
|
||||
*/
|
||||
readonly storagePath: string | undefined;
|
||||
|
||||
/**
|
||||
* The uri of a directory in which the extension can store global state.
|
||||
* The directory might not exist on disk and creation is
|
||||
* up to the extension. However, the parent directory is guaranteed to be existent.
|
||||
*
|
||||
* Use [`globalState`](#ExtensionContext.globalState) to store key value data.
|
||||
*
|
||||
* @see [`workspace.fs`](#FileSystem) for how to read and write files and folders from
|
||||
* an uri.
|
||||
*/
|
||||
readonly globalStorageUri: Uri;
|
||||
|
||||
/**
|
||||
* An absolute file path in which the extension can store global state.
|
||||
* The directory might not exist on disk and creation is
|
||||
* up to the extension. However, the parent directory is guaranteed to be existent.
|
||||
*
|
||||
* Use [`globalState`](#ExtensionContext.globalState) to store key value data.
|
||||
*
|
||||
* @deprecated Use [globalStoragePath](#ExtensionContent.globalStorageUri) instead.
|
||||
*/
|
||||
readonly globalStoragePath: string;
|
||||
|
||||
/**
|
||||
* The uri of a directory in which the extension can create log files.
|
||||
* The directory might not exist on disk and creation is up to the extension. However,
|
||||
* the parent directory is guaranteed to be existent.
|
||||
*
|
||||
* @see [`workspace.fs`](#FileSystem) for how to read and write files and folders from
|
||||
* an uri.
|
||||
*/
|
||||
readonly logUri: Uri;
|
||||
|
||||
/**
|
||||
* An absolute file path of a directory in which the extension can create log files.
|
||||
* The directory might not exist on disk and creation is up to the extension. However,
|
||||
* the parent directory is guaranteed to be existent.
|
||||
*
|
||||
* @deprecated Use [logUri](#ExtensionContext.logUri) instead.
|
||||
*/
|
||||
readonly logPath: string;
|
||||
|
||||
@@ -6021,9 +6123,10 @@ declare module 'vscode' {
|
||||
* [Pseudoterminal.close](#Pseudoterminal.close). When the task is complete fire
|
||||
* [Pseudoterminal.onDidClose](#Pseudoterminal.onDidClose).
|
||||
* @param process The [Pseudoterminal](#Pseudoterminal) to be used by the task to display output.
|
||||
* @param callback The callback that will be called when the task is started by a user.
|
||||
* @param callback The callback that will be called when the task is started by a user. Any ${} style variables that
|
||||
* were in the task definition will be resolved and passed into the callback.
|
||||
*/
|
||||
constructor(callback: () => Thenable<Pseudoterminal>);
|
||||
constructor(callback: (resolvedDefinition: TaskDefinition) => Thenable<Pseudoterminal>);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -8184,6 +8287,13 @@ declare module 'vscode' {
|
||||
readonly supportsMultipleEditorsPerDocument?: boolean;
|
||||
}): Disposable;
|
||||
|
||||
/**
|
||||
* Register provider that enables the detection and handling of links within the terminal.
|
||||
* @param provider The provider that provides the terminal links.
|
||||
* @return Disposable that unregisters the provider.
|
||||
*/
|
||||
export function registerTerminalLinkProvider(provider: TerminalLinkProvider): Disposable;
|
||||
|
||||
/**
|
||||
* The currently active color theme as configured in the settings. The active
|
||||
* theme can be changed via the `workbench.colorTheme` setting.
|
||||
@@ -10790,6 +10900,21 @@ declare module 'vscode' {
|
||||
constructor(port: number, host?: string);
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a debug adapter running as a Named Pipe (on Windows)/UNIX Domain Socket (on non-Windows) based server.
|
||||
*/
|
||||
export class DebugAdapterNamedPipeServer {
|
||||
/**
|
||||
* The path to the NamedPipe/UNIX Domain Socket.
|
||||
*/
|
||||
readonly path: string;
|
||||
|
||||
/**
|
||||
* Create a description for a debug adapter running as a socket based server.
|
||||
*/
|
||||
constructor(path: string);
|
||||
}
|
||||
|
||||
/**
|
||||
* A debug adapter that implements the Debug Adapter Protocol can be registered with VS Code if it implements the DebugAdapter interface.
|
||||
*/
|
||||
@@ -10828,7 +10953,7 @@ declare module 'vscode' {
|
||||
constructor(implementation: DebugAdapter);
|
||||
}
|
||||
|
||||
export type DebugAdapterDescriptor = DebugAdapterExecutable | DebugAdapterServer | DebugAdapterInlineImplementation;
|
||||
export type DebugAdapterDescriptor = DebugAdapterExecutable | DebugAdapterServer | DebugAdapterNamedPipeServer | DebugAdapterInlineImplementation;
|
||||
|
||||
export interface DebugAdapterDescriptorFactory {
|
||||
/**
|
||||
@@ -11023,6 +11148,19 @@ declare module 'vscode' {
|
||||
* Defaults to Separate.
|
||||
*/
|
||||
consoleMode?: DebugConsoleMode;
|
||||
|
||||
/**
|
||||
* Controls whether this session should run without debugging, thus ignoring breakpoints.
|
||||
* When this property is not specified, the value from the parent session (if there is one) is used.
|
||||
*/
|
||||
noDebug?: boolean;
|
||||
|
||||
/**
|
||||
* Controls if the debug session's parent session is shown in the CALL STACK view even if it has only a single child.
|
||||
* By default, the debug session will never hide its parent.
|
||||
* If compact is true, debug sessions with a single child are hidden in the CALL STACK view to make the tree more compact.
|
||||
*/
|
||||
compact?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -11148,6 +11286,12 @@ declare module 'vscode' {
|
||||
*/
|
||||
export function startDebugging(folder: WorkspaceFolder | undefined, nameOrConfiguration: string | DebugConfiguration, parentSessionOrOptions?: DebugSession | DebugSessionOptions): Thenable<boolean>;
|
||||
|
||||
/**
|
||||
* Stop the given debug session or stop all debug sessions if session is omitted.
|
||||
* @param session The [debug session](#DebugSession) to stop; if omitted all sessions are stopped.
|
||||
*/
|
||||
export function stopDebugging(session?: DebugSession): Thenable<void>;
|
||||
|
||||
/**
|
||||
* Add breakpoints.
|
||||
* @param breakpoints The breakpoints to add.
|
||||
|
||||
Reference in New Issue
Block a user