@codingame/monaco-vscode-notebook-service-override 11.1.2 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +2 -1
- package/index.js +64 -1
- package/package.json +47 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +43 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +109 -130
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +13 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +72 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +23 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +30 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js +76 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +61 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +5 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +4 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +8 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +10 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +52 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +3 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +51 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +21 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +4 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +3 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +6 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +69 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +460 -382
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +124 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +87 -145
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +16 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +8 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +9 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +40 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +115 -116
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +111 -117
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +11 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +5 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +7 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +113 -198
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +25 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +115 -145
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +76 -147
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +45 -77
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +30 -35
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +19 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +59 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +11 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +69 -113
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +194 -184
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +51 -51
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +14 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +57 -56
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +29 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +17 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +14 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +21 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +7 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +30 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +6 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +134 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +164 -121
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +37 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +6 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +131 -55
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +12 -10
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +75 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.js +2 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +31 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +2 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +78 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +45 -42
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.d.ts +96 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +57 -54
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +74 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +6 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.d.ts +53 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +2 -1
- package/worker.js +2 -1
- package/workers/notebook.worker.d.ts +1 -0
- package/notebook.js +0 -50
- package/workers/notebook.worker.js +0 -1
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
3
4
|
import { Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { ResourceMap, LRUCache } from 'vscode/vscode/vs/base/common/map';
|
|
6
|
+
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
5
7
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
6
8
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
7
9
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
8
10
|
import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
9
11
|
import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
|
|
10
12
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
13
|
+
import { MarshalledId } from 'vscode/vscode/vs/base/common/marshallingIds';
|
|
11
14
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
12
15
|
import { runWhenWindowIdle, getActiveWindow } from 'vscode/vscode/vs/base/browser/dom';
|
|
13
16
|
|
|
@@ -56,7 +59,7 @@ class SourceAction extends Disposable {
|
|
|
56
59
|
try {
|
|
57
60
|
await this.action.run({
|
|
58
61
|
uri: this.model.uri,
|
|
59
|
-
$mid:
|
|
62
|
+
$mid: MarshalledId.NotebookActionContext
|
|
60
63
|
});
|
|
61
64
|
}
|
|
62
65
|
catch (error) {
|
|
@@ -104,7 +107,7 @@ let NotebookKernelService = class NotebookKernelService extends Disposable {
|
|
|
104
107
|
this._kernelSourceActionsUpdates.delete(id);
|
|
105
108
|
}));
|
|
106
109
|
try {
|
|
107
|
-
const data = JSON.parse(this._storageService.get(NotebookKernelService_1._storageNotebookBinding,
|
|
110
|
+
const data = JSON.parse(this._storageService.get(NotebookKernelService_1._storageNotebookBinding, StorageScope.WORKSPACE, '[]'));
|
|
108
111
|
this._notebookBindings.fromJSON(data);
|
|
109
112
|
}
|
|
110
113
|
catch {
|
|
@@ -125,7 +128,7 @@ let NotebookKernelService = class NotebookKernelService extends Disposable {
|
|
|
125
128
|
_persistMementos() {
|
|
126
129
|
this._persistSoonHandle?.dispose();
|
|
127
130
|
this._persistSoonHandle = runWhenWindowIdle(getActiveWindow(), () => {
|
|
128
|
-
this._storageService.store(NotebookKernelService_1._storageNotebookBinding, JSON.stringify(this._notebookBindings),
|
|
131
|
+
this._storageService.store(NotebookKernelService_1._storageNotebookBinding, JSON.stringify(this._notebookBindings), StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
129
132
|
}, 100);
|
|
130
133
|
}
|
|
131
134
|
static _score(kernel, notebook) {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
+
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
4
|
+
import { IExtensionStatus } from "@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common/vscode/vs/workbench/contrib/extensions/common/extensionsUtils";
|
|
5
|
+
import { INotebookKeymapService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookKeymapService.service";
|
|
6
|
+
import { IWorkbenchExtensionEnablementService } from "vscode/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service";
|
|
7
|
+
import { ILifecycleService } from "vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
8
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
9
|
+
export declare class NotebookKeymapService extends Disposable implements INotebookKeymapService {
|
|
10
|
+
private readonly instantiationService;
|
|
11
|
+
private readonly extensionEnablementService;
|
|
12
|
+
private readonly notificationService;
|
|
13
|
+
_serviceBrand: undefined;
|
|
14
|
+
private notebookKeymapMemento;
|
|
15
|
+
private notebookKeymap;
|
|
16
|
+
constructor(instantiationService: IInstantiationService, extensionEnablementService: IWorkbenchExtensionEnablementService, notificationService: INotificationService, storageService: IStorageService, lifecycleService: ILifecycleService);
|
|
17
|
+
private checkForOtherKeymaps;
|
|
18
|
+
private promptForDisablingOtherKeymaps;
|
|
19
|
+
}
|
|
20
|
+
export declare function isNotebookKeymapExtension(extension: IExtensionStatus): boolean;
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
3
4
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
4
5
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
@@ -6,28 +7,31 @@ import { localize } from 'vscode/vscode/vs/nls';
|
|
|
6
7
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
8
|
import 'vscode/vscode/vs/platform/notification/common/notification';
|
|
8
9
|
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
9
|
-
import { getInstalledExtensions } from 'vscode/vscode/vs/workbench/contrib/extensions/common/extensionsUtils';
|
|
10
|
+
import { getInstalledExtensions } from '@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common/vscode/vs/workbench/contrib/extensions/common/extensionsUtils';
|
|
11
|
+
import { EnablementState } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionManagement';
|
|
10
12
|
import { IWorkbenchExtensionEnablementService } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service';
|
|
11
13
|
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
14
|
+
import { InstallOperation } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement';
|
|
12
15
|
import { IExtensionManagementService } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement.service';
|
|
13
16
|
import { areSameExtensions } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagementUtil';
|
|
17
|
+
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
14
18
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
15
|
-
import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
|
|
19
|
+
import { Memento } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/common/memento';
|
|
16
20
|
import { distinct } from 'vscode/vscode/vs/base/common/arrays';
|
|
17
|
-
import Severity
|
|
21
|
+
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
18
22
|
|
|
19
23
|
function onExtensionChanged(accessor) {
|
|
20
24
|
const extensionService = accessor.get(IExtensionManagementService);
|
|
21
25
|
const extensionEnablementService = accessor.get(IWorkbenchExtensionEnablementService);
|
|
22
|
-
const onDidInstallExtensions = Event.chain(extensionService.onDidInstallExtensions, $ => (
|
|
23
|
-
.map(e => (
|
|
24
|
-
return Event.debounce(Event.any(Event.any(onDidInstallExtensions, (
|
|
26
|
+
const onDidInstallExtensions = Event.chain(extensionService.onDidInstallExtensions, $ => ( $.filter(e => ( e.some(({ operation }) => operation === InstallOperation.Install)))
|
|
27
|
+
.map(e => ( e.map(({ identifier }) => identifier)))));
|
|
28
|
+
return Event.debounce(Event.any(Event.any(onDidInstallExtensions, ( Event.map(extensionService.onDidUninstallExtension, e => [e.identifier]))), ( Event.map(
|
|
25
29
|
extensionEnablementService.onEnablementChanged,
|
|
26
|
-
extensions => (
|
|
27
|
-
)))
|
|
30
|
+
extensions => ( extensions.map(e => e.identifier))
|
|
31
|
+
))), (result, identifiers) => {
|
|
28
32
|
result = result || (identifiers.length ? [identifiers[0]] : []);
|
|
29
33
|
for (const identifier of identifiers) {
|
|
30
|
-
if ((
|
|
34
|
+
if (( result.some(l => !areSameExtensions(l, identifier)))) {
|
|
31
35
|
result.push(identifier);
|
|
32
36
|
}
|
|
33
37
|
}
|
|
@@ -41,11 +45,11 @@ let NotebookKeymapService = class NotebookKeymapService extends Disposable {
|
|
|
41
45
|
this.instantiationService = instantiationService;
|
|
42
46
|
this.extensionEnablementService = extensionEnablementService;
|
|
43
47
|
this.notificationService = notificationService;
|
|
44
|
-
this.notebookKeymapMemento = (
|
|
45
|
-
this.notebookKeymap = this.notebookKeymapMemento.getMemento(
|
|
48
|
+
this.notebookKeymapMemento = ( new Memento('notebookKeymap', storageService));
|
|
49
|
+
this.notebookKeymap = this.notebookKeymapMemento.getMemento(StorageScope.PROFILE, StorageTarget.USER);
|
|
46
50
|
this._register(lifecycleService.onDidShutdown(() => this.dispose()));
|
|
47
51
|
this._register(this.instantiationService.invokeFunction(onExtensionChanged)((identifiers => {
|
|
48
|
-
Promise.all((
|
|
52
|
+
Promise.all(( identifiers.map(identifier => this.checkForOtherKeymaps(identifier))))
|
|
49
53
|
.then(undefined, onUnexpectedError);
|
|
50
54
|
})));
|
|
51
55
|
}
|
|
@@ -67,29 +71,29 @@ let NotebookKeymapService = class NotebookKeymapService extends Disposable {
|
|
|
67
71
|
promptForDisablingOtherKeymaps(newKeymap, oldKeymaps) {
|
|
68
72
|
const onPrompt = (confirmed) => {
|
|
69
73
|
if (confirmed) {
|
|
70
|
-
this.extensionEnablementService.setEnablement((
|
|
74
|
+
this.extensionEnablementService.setEnablement(( oldKeymaps.map(keymap => keymap.local)), EnablementState.DisabledGlobally);
|
|
71
75
|
}
|
|
72
76
|
};
|
|
73
|
-
this.notificationService.prompt(Severity
|
|
74
|
-
|
|
77
|
+
this.notificationService.prompt(Severity.Info, ( localize(
|
|
78
|
+
7744,
|
|
75
79
|
"Disable other keymaps ({0}) to avoid conflicts between keybindings?",
|
|
76
|
-
(
|
|
80
|
+
( distinct(( oldKeymaps.map(k => k.local.manifest.displayName))).map(name => `'${name}'`)).join(', ')
|
|
77
81
|
)), [{
|
|
78
|
-
label: ( localize(
|
|
82
|
+
label: ( localize(7745, "Yes")),
|
|
79
83
|
run: () => onPrompt(true)
|
|
80
84
|
}, {
|
|
81
|
-
label: ( localize(
|
|
85
|
+
label: ( localize(7746, "No")),
|
|
82
86
|
run: () => onPrompt(false)
|
|
83
87
|
}]);
|
|
84
88
|
}
|
|
85
89
|
};
|
|
86
|
-
NotebookKeymapService = (
|
|
87
|
-
(
|
|
88
|
-
(
|
|
89
|
-
(
|
|
90
|
-
(
|
|
91
|
-
(
|
|
92
|
-
], NotebookKeymapService))
|
|
90
|
+
NotebookKeymapService = ( __decorate([
|
|
91
|
+
( __param(0, IInstantiationService)),
|
|
92
|
+
( __param(1, IWorkbenchExtensionEnablementService)),
|
|
93
|
+
( __param(2, INotificationService)),
|
|
94
|
+
( __param(3, IStorageService)),
|
|
95
|
+
( __param(4, ILifecycleService))
|
|
96
|
+
], NotebookKeymapService));
|
|
93
97
|
function isNotebookKeymapExtension(extension) {
|
|
94
98
|
if (extension.local.manifest.extensionPack) {
|
|
95
99
|
return false;
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { INotebookLoggingService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service";
|
|
3
|
+
import { ILoggerService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
4
|
+
export declare class NotebookLoggingService extends Disposable implements INotebookLoggingService {
|
|
5
|
+
_serviceBrand: undefined;
|
|
6
|
+
static ID: string;
|
|
7
|
+
private readonly _logger;
|
|
8
|
+
constructor(loggerService: ILoggerService);
|
|
9
|
+
debug(category: string, output: string): void;
|
|
10
|
+
info(category: string, output: string): void;
|
|
11
|
+
warn(category: string, output: string): void;
|
|
12
|
+
error(category: string, output: string): void;
|
|
13
|
+
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
4
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { ILoggerService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
@@ -8,7 +9,7 @@ let NotebookLoggingService = class NotebookLoggingService extends Disposable {
|
|
|
8
9
|
static { this.ID = 'notebook'; }
|
|
9
10
|
constructor(loggerService) {
|
|
10
11
|
super();
|
|
11
|
-
this._logger = this._register(loggerService.createLogger(logChannelId, { name: ( localize(
|
|
12
|
+
this._logger = this._register(loggerService.createLogger(logChannelId, { name: ( localize(7747, "Notebook")) }));
|
|
12
13
|
}
|
|
13
14
|
debug(category, output) {
|
|
14
15
|
this._logger.debug(`[${category}] ${output}`);
|
|
@@ -23,8 +24,8 @@ let NotebookLoggingService = class NotebookLoggingService extends Disposable {
|
|
|
23
24
|
this._logger.error(`[${category}] ${output}`);
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
|
-
NotebookLoggingService = (
|
|
27
|
-
(
|
|
28
|
-
], NotebookLoggingService))
|
|
27
|
+
NotebookLoggingService = ( __decorate([
|
|
28
|
+
( __param(0, ILoggerService))
|
|
29
|
+
], NotebookLoggingService));
|
|
29
30
|
|
|
30
31
|
export { NotebookLoggingService };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IScopedRendererMessaging } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookRendererMessagingService";
|
|
3
|
+
import { INotebookRendererMessagingService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookRendererMessagingService.service";
|
|
4
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
5
|
+
type MessageToSend = {
|
|
6
|
+
editorId: string;
|
|
7
|
+
rendererId: string;
|
|
8
|
+
message: unknown;
|
|
9
|
+
};
|
|
10
|
+
export declare class NotebookRendererMessagingService extends Disposable implements INotebookRendererMessagingService {
|
|
11
|
+
private readonly extensionService;
|
|
12
|
+
_serviceBrand: undefined;
|
|
13
|
+
private readonly activations;
|
|
14
|
+
private readonly scopedMessaging;
|
|
15
|
+
private readonly postMessageEmitter;
|
|
16
|
+
readonly onShouldPostMessage: import("vscode/vscode/vs/base/common/event").Event<MessageToSend>;
|
|
17
|
+
constructor(extensionService: IExtensionService);
|
|
18
|
+
receiveMessage(editorId: string | undefined, rendererId: string, message: unknown): Promise<boolean>;
|
|
19
|
+
prepare(rendererId: string): void;
|
|
20
|
+
getScoped(editorId: string): IScopedRendererMessaging;
|
|
21
|
+
private postMessage;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
3
4
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
2
|
+
import { Disposable, IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
4
|
+
import { IAccessibilityService } from "vscode/vscode/vs/platform/accessibility/common/accessibility.service";
|
|
5
|
+
import { ConfigurationTarget } from "vscode/vscode/vs/platform/configuration/common/configuration";
|
|
6
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
7
|
+
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
8
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
9
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
10
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
11
|
+
import { NotebookTextModel } from "../../common/model/notebookTextModel.js";
|
|
12
|
+
import { INotebookContributionData, INotebookRendererInfo, IOrderedMimeType, IOutputDto, NotebookExtensionDescription, INotebookStaticPreloadInfo } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
13
|
+
import { INotebookEditorModelResolverService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service";
|
|
14
|
+
import { NotebookOutputRendererInfo } from "../../common/notebookOutputRenderer.js";
|
|
15
|
+
import { NotebookProviderInfo } from "../../common/notebookProvider.js";
|
|
16
|
+
import { INotebookSerializer, SimpleNotebookProviderInfo } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookService";
|
|
17
|
+
import { INotebookService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
18
|
+
import { IEditorType } from "vscode/vscode/vs/workbench/services/editor/common/editorResolverService";
|
|
19
|
+
import { IEditorResolverService } from "vscode/vscode/vs/workbench/services/editor/common/editorResolverService.service";
|
|
20
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
21
|
+
import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
22
|
+
import { INotebookDocumentService } from "vscode/vscode/vs/workbench/services/notebook/common/notebookDocumentService.service";
|
|
23
|
+
import { VSBufferReadableStream } from "vscode/vscode/vs/base/common/buffer";
|
|
24
|
+
import { SnapshotContext } from "@codingame/monaco-vscode-9d05a43d-c330-5ff1-937e-fde4a3852931-common/vscode/vs/workbench/services/workingCopy/common/fileWorkingCopy";
|
|
25
|
+
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
26
|
+
export declare class NotebookProviderInfoStore extends Disposable {
|
|
27
|
+
private readonly _editorResolverService;
|
|
28
|
+
private readonly _configurationService;
|
|
29
|
+
private readonly _accessibilityService;
|
|
30
|
+
private readonly _instantiationService;
|
|
31
|
+
private readonly _fileService;
|
|
32
|
+
private readonly _notebookEditorModelResolverService;
|
|
33
|
+
private readonly uriIdentService;
|
|
34
|
+
private static readonly CUSTOM_EDITORS_STORAGE_ID;
|
|
35
|
+
private static readonly CUSTOM_EDITORS_ENTRY_ID;
|
|
36
|
+
private readonly _memento;
|
|
37
|
+
private _handled;
|
|
38
|
+
private readonly _contributedEditors;
|
|
39
|
+
private readonly _contributedEditorDisposables;
|
|
40
|
+
constructor(storageService: IStorageService, extensionService: IExtensionService, _editorResolverService: IEditorResolverService, _configurationService: IConfigurationService, _accessibilityService: IAccessibilityService, _instantiationService: IInstantiationService, _fileService: IFileService, _notebookEditorModelResolverService: INotebookEditorModelResolverService, uriIdentService: IUriIdentityService);
|
|
41
|
+
dispose(): void;
|
|
42
|
+
private _setupHandler;
|
|
43
|
+
clearEditorCache(): void;
|
|
44
|
+
private _convertPriority;
|
|
45
|
+
private _registerContributionPoint;
|
|
46
|
+
private _clear;
|
|
47
|
+
get(viewType: string): NotebookProviderInfo | undefined;
|
|
48
|
+
add(info: NotebookProviderInfo, saveMemento?: boolean): IDisposable;
|
|
49
|
+
getContributedNotebook(resource: URI): readonly NotebookProviderInfo[];
|
|
50
|
+
[Symbol.iterator](): Iterator<NotebookProviderInfo>;
|
|
51
|
+
}
|
|
52
|
+
export declare class NotebookOutputRendererInfoStore {
|
|
53
|
+
private readonly contributedRenderers;
|
|
54
|
+
private readonly preferredMimetypeMemento;
|
|
55
|
+
private readonly preferredMimetype;
|
|
56
|
+
constructor(storageService: IStorageService);
|
|
57
|
+
clear(): void;
|
|
58
|
+
get(rendererId: string): NotebookOutputRendererInfo | undefined;
|
|
59
|
+
getAll(): NotebookOutputRendererInfo[];
|
|
60
|
+
add(info: NotebookOutputRendererInfo): void;
|
|
61
|
+
setPreferred(notebookProviderInfo: NotebookProviderInfo, mimeType: string, rendererId: string): void;
|
|
62
|
+
findBestRenderers(notebookProviderInfo: NotebookProviderInfo | undefined, mimeType: string, kernelProvides: readonly string[] | undefined): IOrderedMimeType[];
|
|
63
|
+
}
|
|
64
|
+
export declare class NotebookService extends Disposable implements INotebookService {
|
|
65
|
+
private readonly _extensionService;
|
|
66
|
+
private readonly _configurationService;
|
|
67
|
+
private readonly _accessibilityService;
|
|
68
|
+
private readonly _instantiationService;
|
|
69
|
+
private readonly _storageService;
|
|
70
|
+
private readonly _notebookDocumentService;
|
|
71
|
+
readonly _serviceBrand: undefined;
|
|
72
|
+
private static _storageNotebookViewTypeProvider;
|
|
73
|
+
private readonly _memento;
|
|
74
|
+
private readonly _viewTypeCache;
|
|
75
|
+
private readonly _notebookProviders;
|
|
76
|
+
private _notebookProviderInfoStore;
|
|
77
|
+
private get notebookProviderInfoStore();
|
|
78
|
+
private readonly _notebookRenderersInfoStore;
|
|
79
|
+
private readonly _onDidChangeOutputRenderers;
|
|
80
|
+
readonly onDidChangeOutputRenderers: Event<void>;
|
|
81
|
+
private readonly _notebookStaticPreloadInfoStore;
|
|
82
|
+
private readonly _models;
|
|
83
|
+
private readonly _onWillAddNotebookDocument;
|
|
84
|
+
private readonly _onDidAddNotebookDocument;
|
|
85
|
+
private readonly _onWillRemoveNotebookDocument;
|
|
86
|
+
private readonly _onDidRemoveNotebookDocument;
|
|
87
|
+
readonly onWillAddNotebookDocument: Event<NotebookTextModel>;
|
|
88
|
+
readonly onDidAddNotebookDocument: Event<NotebookTextModel>;
|
|
89
|
+
readonly onDidRemoveNotebookDocument: Event<NotebookTextModel>;
|
|
90
|
+
readonly onWillRemoveNotebookDocument: Event<NotebookTextModel>;
|
|
91
|
+
private readonly _onAddViewType;
|
|
92
|
+
readonly onAddViewType: Event<string>;
|
|
93
|
+
private readonly _onWillRemoveViewType;
|
|
94
|
+
readonly onWillRemoveViewType: Event<string>;
|
|
95
|
+
private readonly _onDidChangeEditorTypes;
|
|
96
|
+
onDidChangeEditorTypes: Event<void>;
|
|
97
|
+
private _cutItems;
|
|
98
|
+
private _lastClipboardIsCopy;
|
|
99
|
+
private _displayOrder;
|
|
100
|
+
constructor(_extensionService: IExtensionService, _configurationService: IConfigurationService, _accessibilityService: IAccessibilityService, _instantiationService: IInstantiationService, _storageService: IStorageService, _notebookDocumentService: INotebookDocumentService);
|
|
101
|
+
getEditorTypes(): IEditorType[];
|
|
102
|
+
clearEditorCache(): void;
|
|
103
|
+
private _postDocumentOpenActivation;
|
|
104
|
+
canResolve(viewType: string): Promise<boolean>;
|
|
105
|
+
registerContributedNotebookType(viewType: string, data: INotebookContributionData): IDisposable;
|
|
106
|
+
private _registerProviderData;
|
|
107
|
+
registerNotebookSerializer(viewType: string, extensionData: NotebookExtensionDescription, serializer: INotebookSerializer): IDisposable;
|
|
108
|
+
withNotebookDataProvider(viewType: string): Promise<SimpleNotebookProviderInfo>;
|
|
109
|
+
tryGetDataProviderSync(viewType: string): SimpleNotebookProviderInfo | undefined;
|
|
110
|
+
private _persistMementos;
|
|
111
|
+
getViewTypeProvider(viewType: string): string | undefined;
|
|
112
|
+
getRendererInfo(rendererId: string): INotebookRendererInfo | undefined;
|
|
113
|
+
updateMimePreferredRenderer(viewType: string, mimeType: string, rendererId: string, otherMimetypes: readonly string[]): void;
|
|
114
|
+
saveMimeDisplayOrder(target: ConfigurationTarget): void;
|
|
115
|
+
getRenderers(): INotebookRendererInfo[];
|
|
116
|
+
getStaticPreloads(viewType: string): Iterable<INotebookStaticPreloadInfo>;
|
|
117
|
+
createNotebookTextModel(viewType: string, uri: URI, stream?: VSBufferReadableStream): Promise<NotebookTextModel>;
|
|
118
|
+
createNotebookTextDocumentSnapshot(uri: URI, context: SnapshotContext, token: CancellationToken): Promise<VSBufferReadableStream>;
|
|
119
|
+
restoreNotebookTextModelFromSnapshot(uri: URI, viewType: string, snapshot: VSBufferReadableStream): Promise<NotebookTextModel>;
|
|
120
|
+
getNotebookTextModel(uri: URI): NotebookTextModel | undefined;
|
|
121
|
+
getNotebookTextModels(): Iterable<NotebookTextModel>;
|
|
122
|
+
listNotebookDocuments(): NotebookTextModel[];
|
|
123
|
+
private _onWillDisposeDocument;
|
|
124
|
+
getOutputMimeTypeInfo(textModel: NotebookTextModel, kernelProvides: readonly string[] | undefined, output: IOutputDto): readonly IOrderedMimeType[];
|
|
125
|
+
getContributedNotebookTypes(resource?: URI): readonly NotebookProviderInfo[];
|
|
126
|
+
hasSupportedNotebooks(resource: URI): boolean;
|
|
127
|
+
getContributedNotebookType(viewType: string): NotebookProviderInfo | undefined;
|
|
128
|
+
getNotebookProviderResourceRoots(): URI[];
|
|
129
|
+
setToCopy(items: NotebookCellTextModel[], isCopy: boolean): void;
|
|
130
|
+
getToCopy(): {
|
|
131
|
+
items: NotebookCellTextModel[];
|
|
132
|
+
isCopy: boolean;
|
|
133
|
+
} | undefined;
|
|
134
|
+
}
|