@codingame/monaco-vscode-notebook-service-override 8.0.4 → 9.0.2
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/package.json +3 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +26 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +624 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +4 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +54 -55
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +23 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +297 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +124 -73
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +27 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +62 -39
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +7 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +7 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +18 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +15 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +28 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +55 -45
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +6 -6
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -47
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1303
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -267
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -569
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -115
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -39
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -903
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -397
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -186
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -107
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
-
import { isResourceDiffEditorInput } from 'vscode/vscode/vs/workbench/common/editor';
|
|
3
|
-
import { EditorModel } from 'vscode/vscode/vs/workbench/common/editor/editorModel';
|
|
4
|
-
import { DiffEditorInput } from 'vscode/vscode/vs/workbench/common/editor/diffEditorInput';
|
|
5
|
-
import { NotebookEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
6
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
7
|
-
|
|
8
|
-
var NotebookDiffEditorInput_1;
|
|
9
|
-
class NotebookDiffEditorModel extends EditorModel {
|
|
10
|
-
constructor(original, modified) {
|
|
11
|
-
super();
|
|
12
|
-
this.original = original;
|
|
13
|
-
this.modified = modified;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
let NotebookDiffEditorInput = class NotebookDiffEditorInput extends DiffEditorInput {
|
|
17
|
-
static { NotebookDiffEditorInput_1 = this; }
|
|
18
|
-
static create(instantiationService, resource, name, description, originalResource, viewType) {
|
|
19
|
-
const original = NotebookEditorInput.getOrCreate(instantiationService, originalResource, undefined, viewType);
|
|
20
|
-
const modified = NotebookEditorInput.getOrCreate(instantiationService, resource, undefined, viewType);
|
|
21
|
-
return instantiationService.createInstance(NotebookDiffEditorInput_1, name, description, original, modified, viewType);
|
|
22
|
-
}
|
|
23
|
-
static { this.ID = 'workbench.input.diffNotebookInput'; }
|
|
24
|
-
get resource() {
|
|
25
|
-
return this.modified.resource;
|
|
26
|
-
}
|
|
27
|
-
get editorId() {
|
|
28
|
-
return this.viewType;
|
|
29
|
-
}
|
|
30
|
-
constructor(name, description, original, modified, viewType, editorService) {
|
|
31
|
-
super(name, description, original, modified, undefined, editorService);
|
|
32
|
-
this.original = original;
|
|
33
|
-
this.modified = modified;
|
|
34
|
-
this.viewType = viewType;
|
|
35
|
-
this._modifiedTextModel = null;
|
|
36
|
-
this._originalTextModel = null;
|
|
37
|
-
this._cachedModel = undefined;
|
|
38
|
-
}
|
|
39
|
-
get typeId() {
|
|
40
|
-
return NotebookDiffEditorInput_1.ID;
|
|
41
|
-
}
|
|
42
|
-
async resolve() {
|
|
43
|
-
const [originalEditorModel, modifiedEditorModel] = await Promise.all([
|
|
44
|
-
this.original.resolve(),
|
|
45
|
-
this.modified.resolve(),
|
|
46
|
-
]);
|
|
47
|
-
this._cachedModel?.dispose();
|
|
48
|
-
if (!modifiedEditorModel) {
|
|
49
|
-
throw ( new Error(
|
|
50
|
-
`Fail to resolve modified editor model for resource ${this.modified.resource} with notebookType ${this.viewType}`
|
|
51
|
-
));
|
|
52
|
-
}
|
|
53
|
-
if (!originalEditorModel) {
|
|
54
|
-
throw ( new Error(
|
|
55
|
-
`Fail to resolve original editor model for resource ${this.original.resource} with notebookType ${this.viewType}`
|
|
56
|
-
));
|
|
57
|
-
}
|
|
58
|
-
this._originalTextModel = originalEditorModel;
|
|
59
|
-
this._modifiedTextModel = modifiedEditorModel;
|
|
60
|
-
this._cachedModel = ( new NotebookDiffEditorModel(this._originalTextModel, this._modifiedTextModel));
|
|
61
|
-
return this._cachedModel;
|
|
62
|
-
}
|
|
63
|
-
toUntyped() {
|
|
64
|
-
const original = { resource: this.original.resource };
|
|
65
|
-
const modified = { resource: this.resource };
|
|
66
|
-
return {
|
|
67
|
-
original,
|
|
68
|
-
modified,
|
|
69
|
-
primary: modified,
|
|
70
|
-
secondary: original,
|
|
71
|
-
options: {
|
|
72
|
-
override: this.viewType
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
matches(otherInput) {
|
|
77
|
-
if (this === otherInput) {
|
|
78
|
-
return true;
|
|
79
|
-
}
|
|
80
|
-
if (otherInput instanceof NotebookDiffEditorInput_1) {
|
|
81
|
-
return this.modified.matches(otherInput.modified)
|
|
82
|
-
&& this.original.matches(otherInput.original)
|
|
83
|
-
&& this.viewType === otherInput.viewType;
|
|
84
|
-
}
|
|
85
|
-
if (isResourceDiffEditorInput(otherInput)) {
|
|
86
|
-
return this.modified.matches(otherInput.modified)
|
|
87
|
-
&& this.original.matches(otherInput.original)
|
|
88
|
-
&& this.editorId !== undefined
|
|
89
|
-
&& (this.editorId === otherInput.options?.override || otherInput.options?.override === undefined);
|
|
90
|
-
}
|
|
91
|
-
return false;
|
|
92
|
-
}
|
|
93
|
-
dispose() {
|
|
94
|
-
super.dispose();
|
|
95
|
-
this._cachedModel?.dispose();
|
|
96
|
-
this._cachedModel = undefined;
|
|
97
|
-
this.original.dispose();
|
|
98
|
-
this.modified.dispose();
|
|
99
|
-
this._originalTextModel = null;
|
|
100
|
-
this._modifiedTextModel = null;
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
NotebookDiffEditorInput = NotebookDiffEditorInput_1 = ( __decorate([
|
|
104
|
-
( __param(5, IEditorService))
|
|
105
|
-
], NotebookDiffEditorInput));
|
|
106
|
-
|
|
107
|
-
export { NotebookDiffEditorInput };
|