@codingame/monaco-vscode-notebook-service-override 37.2.0 → 37.3.1
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.js +2 -2
- package/package.json +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +6 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +26 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +6 -6
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +10 -10
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +36 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +2 -2
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +16 -16
- 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 +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +11 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +40 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +33 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +73 -73
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +35 -35
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +9 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +15 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.js +44 -18
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +14 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +5 -5
|
@@ -19,28 +19,28 @@ class ReplEditorInputAccessibilityHelp {
|
|
|
19
19
|
}
|
|
20
20
|
function getAccessibilityInputHelpText() {
|
|
21
21
|
return [( localize(
|
|
22
|
-
|
|
22
|
+
17745,
|
|
23
23
|
"You are in a REPL Editor Input box which will accept code to be executed in the REPL."
|
|
24
24
|
)), ( localize(
|
|
25
|
-
|
|
25
|
+
17746,
|
|
26
26
|
"The Execute command{0} will evaluate the expression in the input box.",
|
|
27
27
|
"<keybinding:repl.execute>"
|
|
28
28
|
)), ( localize(
|
|
29
|
-
|
|
29
|
+
17747,
|
|
30
30
|
"The setting `accessibility.replEditor.readLastExecutionOutput` controls if output will be automatically read when execution completes."
|
|
31
31
|
)), ( localize(
|
|
32
|
-
|
|
32
|
+
17748,
|
|
33
33
|
"The setting `accessibility.replEditor.autoFocusReplExecution` controls if focus will automatically move to the REPL after executing code."
|
|
34
34
|
)), ( localize(
|
|
35
|
-
|
|
35
|
+
17749,
|
|
36
36
|
"The Focus Last executed command{0} will move focus to the last executed item in the REPL history.",
|
|
37
37
|
"<keybinding:repl.focusLastItemExecuted>"
|
|
38
38
|
)), ( localize(
|
|
39
|
-
|
|
39
|
+
17750,
|
|
40
40
|
"When you run the Open Accessbility View command{0} from this input box, the output from the last execution will be shown in the accessibility view.",
|
|
41
41
|
"<keybinding:editor.action.accessibleView>"
|
|
42
42
|
)), ( localize(
|
|
43
|
-
|
|
43
|
+
17751,
|
|
44
44
|
"The Focus Input Editor command{0} will bring the focus back to this editor.",
|
|
45
45
|
"<keybinding:repl.input.focus>"
|
|
46
46
|
))].join("\n");
|
|
@@ -58,30 +58,30 @@ class ReplEditorHistoryAccessibilityHelp {
|
|
|
58
58
|
}
|
|
59
59
|
function getAccessibilityHistoryHelpText() {
|
|
60
60
|
return [( localize(
|
|
61
|
-
|
|
61
|
+
17752,
|
|
62
62
|
"You are in a REPL History which is a list of cells that have been executed in the REPL. Each cell has an input, an output, and the cell container."
|
|
63
63
|
)), ( localize(
|
|
64
|
-
|
|
64
|
+
17753,
|
|
65
65
|
"The Edit Cell command{0} will move focus to the read-only editor for the input of the cell.",
|
|
66
66
|
"<keybinding:notebook.cell.edit>"
|
|
67
67
|
)), ( localize(
|
|
68
|
-
|
|
68
|
+
17754,
|
|
69
69
|
"The Quit Edit command{0} will move focus to the cell container, where the up and down arrows will also move focus between cells in the history.",
|
|
70
70
|
"<keybinding:notebook.cell.quitEdit>"
|
|
71
71
|
)), ( localize(
|
|
72
|
-
|
|
72
|
+
17755,
|
|
73
73
|
"Run the Open Accessbility View command{0} while navigating the history for an accessible view of the item's output.",
|
|
74
74
|
"<keybinding:editor.action.accessibleView>"
|
|
75
75
|
)), ( localize(
|
|
76
|
-
|
|
76
|
+
17756,
|
|
77
77
|
"The Focus Output command{0} will set focus on the output when focused on a previously executed item.",
|
|
78
78
|
"<keybinding:notebook.cell.focusInOutput>"
|
|
79
79
|
)), ( localize(
|
|
80
|
-
|
|
80
|
+
17757,
|
|
81
81
|
"The Focus Input Editor command{0} will move focus to the REPL input box.",
|
|
82
82
|
"<keybinding:repl.input.focus>"
|
|
83
83
|
)), ( localize(
|
|
84
|
-
|
|
84
|
+
17749,
|
|
85
85
|
"The Focus Last executed command{0} will move focus to the last executed item in the REPL history.",
|
|
86
86
|
"<keybinding:repl.focusLastItemExecuted>"
|
|
87
87
|
))].join("\n");
|
package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js
CHANGED
|
@@ -54,11 +54,11 @@ let BaseFileWorkingCopyManager = class BaseFileWorkingCopyManager extends Dispos
|
|
|
54
54
|
}
|
|
55
55
|
async destroy() {
|
|
56
56
|
try {
|
|
57
|
-
await Promises.settled(
|
|
57
|
+
await Promises.settled(this.workingCopies.map(async workingCopy => {
|
|
58
58
|
if (workingCopy.isDirty()) {
|
|
59
59
|
await this.saveWithFallback(workingCopy);
|
|
60
60
|
}
|
|
61
|
-
}))
|
|
61
|
+
}));
|
|
62
62
|
} catch (error) {
|
|
63
63
|
this.logService.error(error);
|
|
64
64
|
}
|
|
@@ -51,10 +51,10 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
51
51
|
FileWorkingCopyManager_1 = this;
|
|
52
52
|
}
|
|
53
53
|
static {
|
|
54
|
-
this.FILE_WORKING_COPY_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource("fileWorkingCopyCreate.source", ( localize(
|
|
54
|
+
this.FILE_WORKING_COPY_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource("fileWorkingCopyCreate.source", ( localize(22529, "File Created")));
|
|
55
55
|
}
|
|
56
56
|
static {
|
|
57
|
-
this.FILE_WORKING_COPY_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource("fileWorkingCopyReplace.source", ( localize(
|
|
57
|
+
this.FILE_WORKING_COPY_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource("fileWorkingCopyReplace.source", ( localize(22530, "File Replaced")));
|
|
58
58
|
}
|
|
59
59
|
constructor(
|
|
60
60
|
workingCopyTypeId,
|
|
@@ -133,7 +133,7 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
133
133
|
constructor(stored) {
|
|
134
134
|
super();
|
|
135
135
|
this.stored = stored;
|
|
136
|
-
this.label = ( localize(
|
|
136
|
+
this.label = ( localize(22531, "File Working Copy Decorations"));
|
|
137
137
|
this._onDidChange = this._register(( new Emitter()));
|
|
138
138
|
this.onDidChange = this._onDidChange.event;
|
|
139
139
|
this.registerListeners();
|
|
@@ -166,20 +166,20 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
166
166
|
color: listErrorForeground,
|
|
167
167
|
letter: Codicon.lockSmall,
|
|
168
168
|
strikethrough: true,
|
|
169
|
-
tooltip: ( localize(
|
|
169
|
+
tooltip: ( localize(22532, "Deleted, Read-only"))
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
else if (isReadonly) {
|
|
173
173
|
return {
|
|
174
174
|
letter: Codicon.lockSmall,
|
|
175
|
-
tooltip: ( localize(
|
|
175
|
+
tooltip: ( localize(22533, "Read-only"))
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
else if (isOrphaned) {
|
|
179
179
|
return {
|
|
180
180
|
color: listErrorForeground,
|
|
181
181
|
strikethrough: true,
|
|
182
|
-
tooltip: ( localize(
|
|
182
|
+
tooltip: ( localize(22534, "Deleted"))
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
return undefined;
|
|
@@ -334,17 +334,17 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
334
334
|
} = await this.dialogService.confirm({
|
|
335
335
|
type: "warning",
|
|
336
336
|
message: ( localize(
|
|
337
|
-
|
|
337
|
+
22535,
|
|
338
338
|
"'{0}' already exists. Do you want to replace it?",
|
|
339
339
|
basename(resource)
|
|
340
340
|
)),
|
|
341
341
|
detail: ( localize(
|
|
342
|
-
|
|
342
|
+
22536,
|
|
343
343
|
"A file or folder with the name '{0}' already exists in the folder '{1}'. Replacing it will overwrite its current contents.",
|
|
344
344
|
basename(resource),
|
|
345
345
|
basename(dirname(resource))
|
|
346
346
|
)),
|
|
347
|
-
primaryButton: ( localize(
|
|
347
|
+
primaryButton: ( localize(22537, "&&Replace"))
|
|
348
348
|
});
|
|
349
349
|
return confirmed;
|
|
350
350
|
}
|
|
@@ -354,12 +354,12 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
354
354
|
} = await this.dialogService.confirm({
|
|
355
355
|
type: "warning",
|
|
356
356
|
message: ( localize(
|
|
357
|
-
|
|
357
|
+
22538,
|
|
358
358
|
"'{0}' is marked as read-only. Do you want to save anyway?",
|
|
359
359
|
basename(resource)
|
|
360
360
|
)),
|
|
361
|
-
detail: ( localize(
|
|
362
|
-
primaryButton: ( localize(
|
|
361
|
+
detail: ( localize(22539, "Paths can be configured as read-only via settings.")),
|
|
362
|
+
primaryButton: ( localize(22540, "&&Save Anyway"))
|
|
363
363
|
});
|
|
364
364
|
return confirmed;
|
|
365
365
|
}
|
|
@@ -109,7 +109,7 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
109
109
|
this._register(
|
|
110
110
|
this.lifecycleService.onWillShutdown(event => event.join(this.onWillShutdownDesktop(), {
|
|
111
111
|
id: "join.fileWorkingCopyManager",
|
|
112
|
-
label: ( localize(
|
|
112
|
+
label: ( localize(22558, "Saving working copies"))
|
|
113
113
|
}))
|
|
114
114
|
);
|
|
115
115
|
}
|
|
@@ -127,9 +127,9 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
127
127
|
while ((pendingSavedWorkingCopies = this.workingCopies.filter(
|
|
128
128
|
workingCopy => workingCopy.hasState(StoredFileWorkingCopyState.PENDING_SAVE)
|
|
129
129
|
)).length > 0) {
|
|
130
|
-
await Promises.settled(
|
|
130
|
+
await Promises.settled(pendingSavedWorkingCopies.map(
|
|
131
131
|
workingCopy => workingCopy.joinState(StoredFileWorkingCopyState.PENDING_SAVE)
|
|
132
|
-
))
|
|
132
|
+
));
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
onDidChangeFileSystemProviderCapabilities(e) {
|
|
@@ -244,7 +244,7 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
244
244
|
const workingCopiesToRestore = this.mapCorrelationIdToWorkingCopiesToRestore.get(e.correlationId);
|
|
245
245
|
if (workingCopiesToRestore) {
|
|
246
246
|
this.mapCorrelationIdToWorkingCopiesToRestore.delete(e.correlationId);
|
|
247
|
-
await Promises.settled(
|
|
247
|
+
await Promises.settled(workingCopiesToRestore.map(async workingCopyToRestore => {
|
|
248
248
|
const target = this.uriIdentityService.asCanonicalUri(workingCopyToRestore.target);
|
|
249
249
|
await this.resolve(target, {
|
|
250
250
|
reload: {
|
|
@@ -252,7 +252,7 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
252
252
|
},
|
|
253
253
|
contents: workingCopyToRestore.snapshot
|
|
254
254
|
});
|
|
255
|
-
}))
|
|
255
|
+
}));
|
|
256
256
|
}
|
|
257
257
|
})());
|
|
258
258
|
break;
|