mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
This reverts commit d15a3fcc98.
This commit is contained in:
55
src/vs/vscode.proposed.d.ts
vendored
55
src/vs/vscode.proposed.d.ts
vendored
@@ -137,20 +137,32 @@ declare module 'vscode' {
|
||||
|
||||
// #region Joh - code insets
|
||||
|
||||
export interface WebviewEditorInset {
|
||||
readonly editor: TextEditor;
|
||||
readonly range: Range;
|
||||
readonly webview: Webview;
|
||||
readonly onDidDispose: Event<void>;
|
||||
dispose(): void;
|
||||
/**
|
||||
*/
|
||||
export class CodeInset {
|
||||
range: Range;
|
||||
height?: number;
|
||||
constructor(range: Range, height?: number);
|
||||
}
|
||||
|
||||
export namespace window {
|
||||
export function createWebviewTextEditorInset(editor: TextEditor, range: Range, options?: WebviewOptions): WebviewEditorInset;
|
||||
export interface CodeInsetProvider {
|
||||
onDidChangeCodeInsets?: Event<void>;
|
||||
provideCodeInsets(document: TextDocument, token: CancellationToken): ProviderResult<CodeInset[]>;
|
||||
resolveCodeInset(codeInset: CodeInset, webview: Webview, token: CancellationToken): ProviderResult<CodeInset>;
|
||||
}
|
||||
|
||||
export namespace languages {
|
||||
|
||||
/**
|
||||
* Register a code inset provider.
|
||||
*
|
||||
*/
|
||||
export function registerCodeInsetProvider(selector: DocumentSelector, provider: CodeInsetProvider): Disposable;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
|
||||
//#region Joh - read/write in chunks
|
||||
|
||||
export interface FileSystemProvider {
|
||||
@@ -1051,7 +1063,7 @@ declare module 'vscode' {
|
||||
* @param range The range the comment thread is located within the document.
|
||||
* @param comments The ordered comments of the thread.
|
||||
*/
|
||||
createCommentThread(id: string, resource: Uri, range: Range, comments: Comment[]): CommentThread;
|
||||
createCommentThread(id: string, uri: Uri, range: Range, comments: Comment[]): CommentThread;
|
||||
|
||||
/**
|
||||
* Optional new comment thread factory.
|
||||
@@ -1087,17 +1099,6 @@ declare module 'vscode' {
|
||||
|
||||
//#region Terminal
|
||||
|
||||
export interface TerminalOptions {
|
||||
/**
|
||||
* When enabled the terminal will run the process as normal but not be surfaced to the user
|
||||
* until `Terminal.show` is called. The typical usage for this is when you need to run
|
||||
* something that may need interactivity but only want to tell the user about it when
|
||||
* interaction is needed. Note that the terminals will still be exposed to all extensions
|
||||
* as normal.
|
||||
*/
|
||||
runInBackground?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* An [event](#Event) which fires when a [Terminal](#Terminal)'s dimensions change.
|
||||
*/
|
||||
@@ -1425,18 +1426,4 @@ declare module 'vscode' {
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region DocumentLink tooltip mjbvz
|
||||
|
||||
interface DocumentLink {
|
||||
/**
|
||||
* 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 `cmd + click to {0}`. The specific instructions vary depending on OS,
|
||||
* user settings, and localization.
|
||||
*/
|
||||
tooltip?: string;
|
||||
}
|
||||
|
||||
// #endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user