mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Merge from vscode 5d18ad4c5902e3bddbc9f78da82dfc2ac349e908 (#9683)
This commit is contained in:
49
src/vs/vscode.proposed.d.ts
vendored
49
src/vs/vscode.proposed.d.ts
vendored
@@ -1635,6 +1635,10 @@ declare module 'vscode' {
|
||||
|
||||
export type CellOutput = CellStreamOutput | CellErrorOutput | CellDisplayOutput;
|
||||
|
||||
export interface NotebookCellMetadata {
|
||||
editable: boolean;
|
||||
}
|
||||
|
||||
export interface NotebookCell {
|
||||
readonly uri: Uri;
|
||||
handle: number;
|
||||
@@ -1642,6 +1646,11 @@ declare module 'vscode' {
|
||||
cellKind: CellKind;
|
||||
outputs: CellOutput[];
|
||||
getContent(): string;
|
||||
metadata?: NotebookCellMetadata;
|
||||
}
|
||||
|
||||
export interface NotebookDocumentMetadata {
|
||||
editable: boolean;
|
||||
}
|
||||
|
||||
export interface NotebookDocument {
|
||||
@@ -1651,15 +1660,29 @@ declare module 'vscode' {
|
||||
languages: string[];
|
||||
cells: NotebookCell[];
|
||||
displayOrder?: GlobPattern[];
|
||||
metadata?: NotebookDocumentMetadata;
|
||||
}
|
||||
|
||||
export interface NotebookEditor {
|
||||
readonly document: NotebookDocument;
|
||||
viewColumn?: ViewColumn;
|
||||
/**
|
||||
* Fired when the output hosting webview posts a message.
|
||||
*/
|
||||
readonly onDidReceiveMessage: Event<any>;
|
||||
/**
|
||||
* Post a message to the output hosting webview.
|
||||
*
|
||||
* Messages are only delivered if the editor is live.
|
||||
*
|
||||
* @param message Body of the message. This must be a string or other json serilizable object.
|
||||
*/
|
||||
postMessage(message: any): Thenable<boolean>;
|
||||
|
||||
/**
|
||||
* Create a notebook cell. The cell is not inserted into current document when created. Extensions should insert the cell into the document by [TextDocument.cells](#TextDocument.cells)
|
||||
*/
|
||||
createCell(content: string, language: string, type: CellKind, outputs: CellOutput[]): NotebookCell;
|
||||
createCell(content: string, language: string, type: CellKind, outputs: CellOutput[], metadata: NotebookCellMetadata): NotebookCell;
|
||||
}
|
||||
|
||||
export interface NotebookProvider {
|
||||
@@ -2023,21 +2046,6 @@ declare module 'vscode' {
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region https://github.com/microsoft/vscode/issues/90517
|
||||
|
||||
export interface FileSystemError {
|
||||
/**
|
||||
* A code that identifies this error.
|
||||
*
|
||||
* Possible values are names of errors, like [`FileNotFound`](#FileSystemError.FileNotFound),
|
||||
* or `Unknown` for an unspecified error.
|
||||
*/
|
||||
readonly code: string;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
|
||||
//#region https://github.com/microsoft/vscode/issues/90208
|
||||
|
||||
export namespace Uri {
|
||||
@@ -2053,4 +2061,13 @@ declare module 'vscode' {
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region https://github.com/microsoft/vscode/issues/91541
|
||||
|
||||
export enum CompletionItemKind {
|
||||
User = 25,
|
||||
Issue = 26,
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user