@@ -599,16 +599,16 @@ declare module 'vscode' {
599
599
* resolve the raw content for `uri` as the resouce is not necessarily a file on disk.
600
600
*/
601
601
// eslint-disable-next-line vscode-dts-provider-naming
602
- openNotebook ( uri : Uri , openContext : NotebookDocumentOpenContext ) : NotebookData | Promise < NotebookData > ;
602
+ openNotebook ( uri : Uri , openContext : NotebookDocumentOpenContext ) : NotebookData | Thenable < NotebookData > ;
603
603
// eslint-disable-next-line vscode-dts-provider-naming
604
604
// eslint-disable-next-line vscode-dts-cancellation
605
- resolveNotebook ( document : NotebookDocument , webview : NotebookCommunication ) : Promise < void > ;
605
+ resolveNotebook ( document : NotebookDocument , webview : NotebookCommunication ) : Thenable < void > ;
606
606
// eslint-disable-next-line vscode-dts-provider-naming
607
- saveNotebook ( document : NotebookDocument , cancellation : CancellationToken ) : Promise < void > ;
607
+ saveNotebook ( document : NotebookDocument , cancellation : CancellationToken ) : Thenable < void > ;
608
608
// eslint-disable-next-line vscode-dts-provider-naming
609
- saveNotebookAs ( targetResource : Uri , document : NotebookDocument , cancellation : CancellationToken ) : Promise < void > ;
609
+ saveNotebookAs ( targetResource : Uri , document : NotebookDocument , cancellation : CancellationToken ) : Thenable < void > ;
610
610
// eslint-disable-next-line vscode-dts-provider-naming
611
- backupNotebook ( document : NotebookDocument , context : NotebookDocumentBackupContext , cancellation : CancellationToken ) : Promise < NotebookDocumentBackup > ;
611
+ backupNotebook ( document : NotebookDocument , context : NotebookDocumentBackupContext , cancellation : CancellationToken ) : Thenable < NotebookDocumentBackup > ;
612
612
}
613
613
614
614
export interface NotebookKernel {
@@ -707,7 +707,7 @@ declare module 'vscode' {
707
707
) : Disposable ;
708
708
709
709
export function createNotebookEditorDecorationType ( options : NotebookDecorationRenderOptions ) : NotebookEditorDecorationType ;
710
- export function openNotebookDocument ( uri : Uri , viewType ?: string ) : Promise < NotebookDocument > ;
710
+ export function openNotebookDocument ( uri : Uri , viewType ?: string ) : Thenable < NotebookDocument > ;
711
711
export const onDidOpenNotebookDocument : Event < NotebookDocument > ;
712
712
export const onDidCloseNotebookDocument : Event < NotebookDocument > ;
713
713
export const onDidSaveNotebookDocument : Event < NotebookDocument > ;
@@ -751,7 +751,7 @@ declare module 'vscode' {
751
751
export const onDidChangeActiveNotebookEditor : Event < NotebookEditor | undefined > ;
752
752
export const onDidChangeNotebookEditorSelection : Event < NotebookEditorSelectionChangeEvent > ;
753
753
export const onDidChangeNotebookEditorVisibleRanges : Event < NotebookEditorVisibleRangesChangeEvent > ;
754
- export function showNotebookDocument ( document : NotebookDocument , options ?: NotebookDocumentShowOptions ) : Promise < NotebookEditor > ;
754
+ export function showNotebookDocument ( document : NotebookDocument , options ?: NotebookDocumentShowOptions ) : Thenable < NotebookEditor > ;
755
755
}
756
756
757
757
//#endregion
0 commit comments