mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
27 lines
868 B
TypeScript
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;
|
|
}
|
|
}
|