mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Merge from vscode 8a997f7321ae6612fc0e6eb3eac4f358a6233bfb
This commit is contained in:
49
src/vs/vscode.proposed.d.ts
vendored
49
src/vs/vscode.proposed.d.ts
vendored
@@ -1358,26 +1358,6 @@ declare module 'vscode' {
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Surfacing reasons why a code action cannot be applied to users: https://github.com/microsoft/vscode/issues/85160
|
||||
|
||||
export interface CodeAction {
|
||||
/**
|
||||
* Marks that the code action cannot currently be applied.
|
||||
*
|
||||
* Disabled code actions will be surfaced in the refactor UI but cannot be applied.
|
||||
*/
|
||||
disabled?: {
|
||||
/**
|
||||
* Human readable description of why the code action is currently disabled.
|
||||
*
|
||||
* This is displayed in the UI.
|
||||
*/
|
||||
reason: string;
|
||||
};
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Allow theme icons in hovers: https://github.com/microsoft/vscode/issues/84695
|
||||
|
||||
export interface MarkdownString {
|
||||
@@ -1464,10 +1444,31 @@ declare module 'vscode' {
|
||||
|
||||
//#region https://github.com/microsoft/vscode/issues/77728
|
||||
|
||||
/**
|
||||
* Additional data for entries of a workspace edit. Supports to label entries and marks entries
|
||||
* as needing confirmation by the user. The editor groups edits with equal labels into tree nodes,
|
||||
* for instance all edits labelled with "Changes in Strings" would be a tree node.
|
||||
*/
|
||||
export interface WorkspaceEditMetadata {
|
||||
|
||||
/**
|
||||
* A flag which indicates that user confirmation is needed.
|
||||
*/
|
||||
needsConfirmation: boolean;
|
||||
|
||||
/**
|
||||
* A human-readable string which is rendered prominent.
|
||||
*/
|
||||
label: string;
|
||||
|
||||
/**
|
||||
* A human-readable string which is rendered less prominent in the same line.
|
||||
*/
|
||||
description?: string;
|
||||
|
||||
/**
|
||||
* The icon path or [ThemeIcon](#ThemeIcon) for the edit.
|
||||
*/
|
||||
iconPath?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
||||
}
|
||||
|
||||
@@ -1498,9 +1499,9 @@ declare module 'vscode' {
|
||||
value: string | number;
|
||||
|
||||
/**
|
||||
* A link to a URI with more information about the diagnostic error.
|
||||
* A target URI to open with more information about the diagnostic error.
|
||||
*/
|
||||
link: Uri;
|
||||
target: Uri;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1620,11 +1621,11 @@ declare module 'vscode' {
|
||||
* parallel and the results are merged. A failing provider (rejected promise or exception) will
|
||||
* not cause a failure of the whole operation.
|
||||
*
|
||||
* @param selector A selector that defines the documents this provider is applicable to.
|
||||
* @param scheme A scheme or schemes that defines which documents this provider is applicable to. Can be `*` to target all documents.
|
||||
* @param provider A timeline provider.
|
||||
* @return A [disposable](#Disposable) that unregisters this provider when being disposed.
|
||||
*/
|
||||
export function registerTimelineProvider(selector: DocumentSelector, provider: TimelineProvider): Disposable;
|
||||
export function registerTimelineProvider(scheme: string | string[], provider: TimelineProvider): Disposable;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
Reference in New Issue
Block a user