@codingame/monaco-vscode-notebook-service-override 10.1.0 → 10.1.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 +2 -2
- 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/common/services/notebookSimpleWorker.esm.js +4 -0
- 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/workers/notebook.worker.js +1 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-notebook-service-override",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.1.
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.2",
|
|
33
33
|
"marked": "~14.0.0"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -716,33 +716,33 @@ const NotebookOutlineContext = {
|
|
|
716
716
|
type: 'boolean',
|
|
717
717
|
default: true,
|
|
718
718
|
markdownDescription: ( localize(
|
|
719
|
-
|
|
719
|
+
8058,
|
|
720
720
|
"When enabled, notebook outline will show only markdown cells containing a header."
|
|
721
721
|
))
|
|
722
722
|
},
|
|
723
723
|
[NotebookSetting.outlineShowCodeCells]: {
|
|
724
724
|
type: 'boolean',
|
|
725
725
|
default: false,
|
|
726
|
-
markdownDescription: ( localize(
|
|
726
|
+
markdownDescription: ( localize(8059, "When enabled, notebook outline shows code cells."))
|
|
727
727
|
},
|
|
728
728
|
[NotebookSetting.outlineShowCodeCellSymbols]: {
|
|
729
729
|
type: 'boolean',
|
|
730
730
|
default: true,
|
|
731
731
|
markdownDescription: ( localize(
|
|
732
|
-
|
|
732
|
+
8060,
|
|
733
733
|
"When enabled, notebook outline shows code cell symbols. Relies on `notebook.outline.showCodeCells` being enabled."
|
|
734
734
|
))
|
|
735
735
|
},
|
|
736
736
|
[NotebookSetting.breadcrumbsShowCodeCells]: {
|
|
737
737
|
type: 'boolean',
|
|
738
738
|
default: true,
|
|
739
|
-
markdownDescription: ( localize(
|
|
739
|
+
markdownDescription: ( localize(8061, "When enabled, notebook breadcrumbs contain code cells."))
|
|
740
740
|
},
|
|
741
741
|
[NotebookSetting.gotoSymbolsAllSymbols]: {
|
|
742
742
|
type: 'boolean',
|
|
743
743
|
default: true,
|
|
744
744
|
markdownDescription: ( localize(
|
|
745
|
-
|
|
745
|
+
8062,
|
|
746
746
|
"When enabled, the Go to Symbol Quick Pick will display full code symbols from the notebook, as well as Markdown headers."
|
|
747
747
|
))
|
|
748
748
|
},
|
|
@@ -750,7 +750,7 @@ const NotebookOutlineContext = {
|
|
|
750
750
|
});
|
|
751
751
|
MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
752
752
|
submenu: MenuId.NotebookOutlineFilter,
|
|
753
|
-
title: ( localize(
|
|
753
|
+
title: ( localize(8063, "Filter Entries")),
|
|
754
754
|
icon: Codicon.filter,
|
|
755
755
|
group: 'navigation',
|
|
756
756
|
order: -1,
|
|
@@ -763,7 +763,7 @@ registerAction2(class ToggleShowMarkdownHeadersOnly extends Action2 {
|
|
|
763
763
|
constructor() {
|
|
764
764
|
super({
|
|
765
765
|
id: 'notebook.outline.toggleShowMarkdownHeadersOnly',
|
|
766
|
-
title: ( localize(
|
|
766
|
+
title: ( localize(8064, "Markdown Headers Only")),
|
|
767
767
|
f1: false,
|
|
768
768
|
toggled: {
|
|
769
769
|
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showMarkdownHeadersOnly', true)))
|
|
@@ -784,7 +784,7 @@ registerAction2(class ToggleCodeCellEntries extends Action2 {
|
|
|
784
784
|
constructor() {
|
|
785
785
|
super({
|
|
786
786
|
id: 'notebook.outline.toggleCodeCells',
|
|
787
|
-
title: ( localize(
|
|
787
|
+
title: ( localize(8065, "Code Cells")),
|
|
788
788
|
f1: false,
|
|
789
789
|
toggled: {
|
|
790
790
|
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCells', true)))
|
|
@@ -806,7 +806,7 @@ registerAction2(class ToggleCodeCellSymbolEntries extends Action2 {
|
|
|
806
806
|
constructor() {
|
|
807
807
|
super({
|
|
808
808
|
id: 'notebook.outline.toggleCodeCellSymbols',
|
|
809
|
-
title: ( localize(
|
|
809
|
+
title: ( localize(8066, "Code Cell Symbols")),
|
|
810
810
|
f1: false,
|
|
811
811
|
toggled: {
|
|
812
812
|
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCellSymbols', true)))
|
|
@@ -45,8 +45,8 @@ import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/prog
|
|
|
45
45
|
var FileWorkingCopyManager_1;
|
|
46
46
|
let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
47
47
|
static { FileWorkingCopyManager_1 = this; }
|
|
48
|
-
static { this.FILE_WORKING_COPY_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyCreate.source', ( localize(
|
|
49
|
-
static { this.FILE_WORKING_COPY_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyReplace.source', ( localize(
|
|
48
|
+
static { this.FILE_WORKING_COPY_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyCreate.source', ( localize(7900, "File Created"))); }
|
|
49
|
+
static { this.FILE_WORKING_COPY_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyReplace.source', ( localize(7901, "File Replaced"))); }
|
|
50
50
|
constructor(workingCopyTypeId, storedWorkingCopyModelFactory, untitledWorkingCopyModelFactory, fileService, lifecycleService, labelService, logService, workingCopyFileService, workingCopyBackupService, uriIdentityService, fileDialogService, filesConfigurationService, workingCopyService, notificationService, workingCopyEditorService, editorService, elevatedFileService, pathService, environmentService, dialogService, decorationsService, progressService) {
|
|
51
51
|
super();
|
|
52
52
|
this.workingCopyTypeId = workingCopyTypeId;
|
|
@@ -101,7 +101,7 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
101
101
|
constructor(stored) {
|
|
102
102
|
super();
|
|
103
103
|
this.stored = stored;
|
|
104
|
-
this.label = ( localize(
|
|
104
|
+
this.label = ( localize(7902, "File Working Copy Decorations"));
|
|
105
105
|
this._onDidChange = this._register(( (new Emitter())));
|
|
106
106
|
this.onDidChange = this._onDidChange.event;
|
|
107
107
|
this.registerListeners();
|
|
@@ -128,20 +128,20 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
128
128
|
color: listErrorForeground,
|
|
129
129
|
letter: Codicon.lockSmall,
|
|
130
130
|
strikethrough: true,
|
|
131
|
-
tooltip: ( localize(
|
|
131
|
+
tooltip: ( localize(7903, "Deleted, Read-only")),
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
else if (isReadonly) {
|
|
135
135
|
return {
|
|
136
136
|
letter: Codicon.lockSmall,
|
|
137
|
-
tooltip: ( localize(
|
|
137
|
+
tooltip: ( localize(7904, "Read-only")),
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
140
|
else if (isOrphaned) {
|
|
141
141
|
return {
|
|
142
142
|
color: listErrorForeground,
|
|
143
143
|
strikethrough: true,
|
|
144
|
-
tooltip: ( localize(
|
|
144
|
+
tooltip: ( localize(7905, "Deleted")),
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
return undefined;
|
|
@@ -273,17 +273,17 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
273
273
|
const { confirmed } = await this.dialogService.confirm({
|
|
274
274
|
type: 'warning',
|
|
275
275
|
message: ( localize(
|
|
276
|
-
|
|
276
|
+
7906,
|
|
277
277
|
"'{0}' already exists. Do you want to replace it?",
|
|
278
278
|
basename(resource)
|
|
279
279
|
)),
|
|
280
280
|
detail: ( localize(
|
|
281
|
-
|
|
281
|
+
7907,
|
|
282
282
|
"A file or folder with the name '{0}' already exists in the folder '{1}'. Replacing it will overwrite its current contents.",
|
|
283
283
|
basename(resource),
|
|
284
284
|
basename(dirname(resource))
|
|
285
285
|
)),
|
|
286
|
-
primaryButton: ( localize(
|
|
286
|
+
primaryButton: ( localize(7908, "&&Replace"))
|
|
287
287
|
});
|
|
288
288
|
return confirmed;
|
|
289
289
|
}
|
|
@@ -291,12 +291,12 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
291
291
|
const { confirmed } = await this.dialogService.confirm({
|
|
292
292
|
type: 'warning',
|
|
293
293
|
message: ( localize(
|
|
294
|
-
|
|
294
|
+
7909,
|
|
295
295
|
"'{0}' is marked as read-only. Do you want to save anyway?",
|
|
296
296
|
basename(resource)
|
|
297
297
|
)),
|
|
298
|
-
detail: ( localize(
|
|
299
|
-
primaryButton: ( localize(
|
|
298
|
+
detail: ( localize(7910, "Paths can be configured as read-only via settings.")),
|
|
299
|
+
primaryButton: ( localize(7911, "&&Save Anyway"))
|
|
300
300
|
});
|
|
301
301
|
return confirmed;
|
|
302
302
|
}
|
|
@@ -75,7 +75,7 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
75
75
|
this._register(this.lifecycleService.onBeforeShutdown(event => event.veto(this.onBeforeShutdownWeb(), 'veto.fileWorkingCopyManager')));
|
|
76
76
|
}
|
|
77
77
|
else {
|
|
78
|
-
this._register(this.lifecycleService.onWillShutdown(event => event.join(this.onWillShutdownDesktop(), { id: 'join.fileWorkingCopyManager', label: ( localize(
|
|
78
|
+
this._register(this.lifecycleService.onWillShutdown(event => event.join(this.onWillShutdownDesktop(), { id: 'join.fileWorkingCopyManager', label: ( localize(10808, "Saving working copies")) })));
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
onBeforeShutdownWeb() {
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SimpleWorkerServer } from 'vscode/vscode/vs/base/common/worker/simpleWorker';
|
|
3
|
-
|
|
4
|
-
const simpleWorker = new SimpleWorkerServer((msg) => {
|
|
5
|
-
globalThis.postMessage(msg);
|
|
6
|
-
}, create);
|
|
7
|
-
globalThis.onmessage = (e) => {
|
|
8
|
-
simpleWorker.onmessage(e.data);
|
|
9
|
-
};
|
|
1
|
+
import '../vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.esm.js';
|