solorice/vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/vscode.proposed.textDocumentNotebook.d.ts
2022-04-28 20:54:44 +03:00

27 lines
868 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
declare module 'vscode' {
// https://github.com/microsoft/vscode/issues/102091
export interface TextDocument {
/**
* @deprecated
*
* This proposal won't be finalized like this, see https://github.com/microsoft/vscode/issues/102091#issuecomment-865050645.
* Already today you can use
*
* ```ts
* vscode.workspace.notebookDocuments.find(notebook => notebook.getCells().some(cell => cell.document === myTextDocument))
* ```
*
*
*/
notebook: NotebookDocument | undefined;
}
}