@codingame/monaco-vscode-notebook-service-override 9.0.0 → 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 +2 -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 +10 -10
- 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 +3 -3
- 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/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 +24 -24
- 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 +17 -17
- 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 +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +59 -59
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
|
@@ -27,7 +27,7 @@ const NotebookPreloadContribution = ( (Object.freeze({
|
|
|
27
27
|
localResourceRoots: 'localResourceRoots',
|
|
28
28
|
})));
|
|
29
29
|
const notebookProviderContribution = {
|
|
30
|
-
description: ( localize(
|
|
30
|
+
description: ( localize(7632, 'Contributes notebook document provider.')),
|
|
31
31
|
type: 'array',
|
|
32
32
|
defaultSnippets: [{ body: [{ type: '', displayName: '', 'selector': [{ 'filenamePattern': '' }] }] }],
|
|
33
33
|
items: {
|
|
@@ -40,25 +40,25 @@ const notebookProviderContribution = {
|
|
|
40
40
|
properties: {
|
|
41
41
|
[NotebookEditorContribution.type]: {
|
|
42
42
|
type: 'string',
|
|
43
|
-
description: ( localize(
|
|
43
|
+
description: ( localize(7633, 'Type of the notebook.')),
|
|
44
44
|
},
|
|
45
45
|
[NotebookEditorContribution.displayName]: {
|
|
46
46
|
type: 'string',
|
|
47
|
-
description: ( localize(
|
|
47
|
+
description: ( localize(7634, 'Human readable name of the notebook.')),
|
|
48
48
|
},
|
|
49
49
|
[NotebookEditorContribution.selector]: {
|
|
50
50
|
type: 'array',
|
|
51
|
-
description: ( localize(
|
|
51
|
+
description: ( localize(7635, 'Set of globs that the notebook is for.')),
|
|
52
52
|
items: {
|
|
53
53
|
type: 'object',
|
|
54
54
|
properties: {
|
|
55
55
|
filenamePattern: {
|
|
56
56
|
type: 'string',
|
|
57
|
-
description: ( localize(
|
|
57
|
+
description: ( localize(7636, 'Glob that the notebook is enabled for.')),
|
|
58
58
|
},
|
|
59
59
|
excludeFileNamePattern: {
|
|
60
60
|
type: 'string',
|
|
61
|
-
description: ( localize(
|
|
61
|
+
description: ( localize(7637, 'Glob that the notebook is disabled for.'))
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -66,7 +66,7 @@ const notebookProviderContribution = {
|
|
|
66
66
|
[NotebookEditorContribution.priority]: {
|
|
67
67
|
type: 'string',
|
|
68
68
|
markdownDeprecationMessage: ( localize(
|
|
69
|
-
|
|
69
|
+
7638,
|
|
70
70
|
'Controls if the custom editor is enabled automatically when the user opens a file. This may be overridden by users using the `workbench.editorAssociations` setting.'
|
|
71
71
|
)),
|
|
72
72
|
enum: [
|
|
@@ -75,11 +75,11 @@ const notebookProviderContribution = {
|
|
|
75
75
|
],
|
|
76
76
|
markdownEnumDescriptions: [
|
|
77
77
|
( localize(
|
|
78
|
-
|
|
78
|
+
7639,
|
|
79
79
|
'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
|
|
80
80
|
)),
|
|
81
81
|
( localize(
|
|
82
|
-
|
|
82
|
+
7640,
|
|
83
83
|
'The editor is not automatically used when the user opens a resource, but a user can switch to the editor using the `Reopen With` command.'
|
|
84
84
|
)),
|
|
85
85
|
],
|
|
@@ -90,7 +90,7 @@ const notebookProviderContribution = {
|
|
|
90
90
|
};
|
|
91
91
|
const defaultRendererSnippet = ( (Object.freeze({ id: '', displayName: '', mimeTypes: [''], entrypoint: '' })));
|
|
92
92
|
const notebookRendererContribution = {
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(7641, 'Contributes notebook output renderer provider.')),
|
|
94
94
|
type: 'array',
|
|
95
95
|
defaultSnippets: [{ body: [defaultRendererSnippet] }],
|
|
96
96
|
items: {
|
|
@@ -105,18 +105,18 @@ const notebookRendererContribution = {
|
|
|
105
105
|
properties: {
|
|
106
106
|
[NotebookRendererContribution.id]: {
|
|
107
107
|
type: 'string',
|
|
108
|
-
description: ( localize(
|
|
108
|
+
description: ( localize(7642, 'Unique identifier of the notebook output renderer.')),
|
|
109
109
|
},
|
|
110
110
|
[NotebookRendererContribution.displayName]: {
|
|
111
111
|
type: 'string',
|
|
112
|
-
description: ( localize(
|
|
112
|
+
description: ( localize(7643, 'Human readable name of the notebook output renderer.')),
|
|
113
113
|
},
|
|
114
114
|
[NotebookRendererContribution.hardDependencies]: {
|
|
115
115
|
type: 'array',
|
|
116
116
|
uniqueItems: true,
|
|
117
117
|
items: { type: 'string' },
|
|
118
118
|
markdownDescription: ( localize(
|
|
119
|
-
|
|
119
|
+
7644,
|
|
120
120
|
'List of kernel dependencies the renderer requires. If any of the dependencies are present in the `NotebookKernel.preloads`, the renderer can be used.'
|
|
121
121
|
)),
|
|
122
122
|
},
|
|
@@ -125,7 +125,7 @@ const notebookRendererContribution = {
|
|
|
125
125
|
uniqueItems: true,
|
|
126
126
|
items: { type: 'string' },
|
|
127
127
|
markdownDescription: ( localize(
|
|
128
|
-
|
|
128
|
+
7645,
|
|
129
129
|
'List of soft kernel dependencies the renderer can make use of. If any of the dependencies are present in the `NotebookKernel.preloads`, the renderer will be preferred over renderers that don\'t interact with the kernel.'
|
|
130
130
|
)),
|
|
131
131
|
},
|
|
@@ -138,17 +138,17 @@ const notebookRendererContribution = {
|
|
|
138
138
|
],
|
|
139
139
|
enumDescriptions: [
|
|
140
140
|
( localize(
|
|
141
|
-
|
|
141
|
+
7646,
|
|
142
142
|
'Messaging is required. The renderer will only be used when it\'s part of an extension that can be run in an extension host.'
|
|
143
143
|
)),
|
|
144
144
|
( localize(
|
|
145
|
-
|
|
145
|
+
7647,
|
|
146
146
|
'The renderer is better with messaging available, but it\'s not requried.'
|
|
147
147
|
)),
|
|
148
|
-
( localize(
|
|
148
|
+
( localize(7648, 'The renderer does not require messaging.')),
|
|
149
149
|
],
|
|
150
150
|
description: ( localize(
|
|
151
|
-
|
|
151
|
+
7649,
|
|
152
152
|
'Defines how and if the renderer needs to communicate with an extension host, via `createRendererMessaging`. Renderers with stronger messaging requirements may not work in all environments.'
|
|
153
153
|
)),
|
|
154
154
|
},
|
|
@@ -164,13 +164,13 @@ const notebookRendererContribution = {
|
|
|
164
164
|
properties: {
|
|
165
165
|
[NotebookRendererContribution.mimeTypes]: {
|
|
166
166
|
type: 'array',
|
|
167
|
-
description: ( localize(
|
|
167
|
+
description: ( localize(7650, 'Set of globs that the notebook is for.')),
|
|
168
168
|
items: {
|
|
169
169
|
type: 'string'
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
[NotebookRendererContribution.entrypoint]: {
|
|
173
|
-
description: ( localize(
|
|
173
|
+
description: ( localize(7651, 'File to load in the webview to render the extension.')),
|
|
174
174
|
type: 'string',
|
|
175
175
|
},
|
|
176
176
|
}
|
|
@@ -181,17 +181,17 @@ const notebookRendererContribution = {
|
|
|
181
181
|
],
|
|
182
182
|
properties: {
|
|
183
183
|
[NotebookRendererContribution.entrypoint]: {
|
|
184
|
-
description: ( localize(
|
|
184
|
+
description: ( localize(7651, 'File to load in the webview to render the extension.')),
|
|
185
185
|
type: 'object',
|
|
186
186
|
required: ['extends', 'path'],
|
|
187
187
|
properties: {
|
|
188
188
|
extends: {
|
|
189
189
|
type: 'string',
|
|
190
|
-
description: ( localize(
|
|
190
|
+
description: ( localize(7652, 'Existing renderer that this one extends.')),
|
|
191
191
|
},
|
|
192
192
|
path: {
|
|
193
193
|
type: 'string',
|
|
194
|
-
description: ( localize(
|
|
194
|
+
description: ( localize(7651, 'File to load in the webview to render the extension.')),
|
|
195
195
|
},
|
|
196
196
|
}
|
|
197
197
|
},
|
|
@@ -203,7 +203,7 @@ const notebookRendererContribution = {
|
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
205
|
const notebookPreloadContribution = {
|
|
206
|
-
description: ( localize(
|
|
206
|
+
description: ( localize(7653, 'Contributes notebook preloads.')),
|
|
207
207
|
type: 'array',
|
|
208
208
|
defaultSnippets: [{ body: [{ type: '', entrypoint: '' }] }],
|
|
209
209
|
items: {
|
|
@@ -215,17 +215,17 @@ const notebookPreloadContribution = {
|
|
|
215
215
|
properties: {
|
|
216
216
|
[NotebookPreloadContribution.type]: {
|
|
217
217
|
type: 'string',
|
|
218
|
-
description: ( localize(
|
|
218
|
+
description: ( localize(7654, 'Type of the notebook.')),
|
|
219
219
|
},
|
|
220
220
|
[NotebookPreloadContribution.entrypoint]: {
|
|
221
221
|
type: 'string',
|
|
222
|
-
description: ( localize(
|
|
222
|
+
description: ( localize(7655, 'Path to file loaded in the webview.')),
|
|
223
223
|
},
|
|
224
224
|
[NotebookPreloadContribution.localResourceRoots]: {
|
|
225
225
|
type: 'array',
|
|
226
226
|
items: { type: 'string' },
|
|
227
227
|
description: ( localize(
|
|
228
|
-
|
|
228
|
+
7656,
|
|
229
229
|
'Paths to additional resources that should be allowed in the webview.'
|
|
230
230
|
)),
|
|
231
231
|
},
|
|
@@ -272,8 +272,8 @@ class NotebooksDataRenderer extends Disposable {
|
|
|
272
272
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
273
273
|
}
|
|
274
274
|
const headers = [
|
|
275
|
-
( localize(
|
|
276
|
-
( localize(
|
|
275
|
+
( localize(7657, "ID")),
|
|
276
|
+
( localize(7658, "Name")),
|
|
277
277
|
];
|
|
278
278
|
const rows = ( (contrib
|
|
279
279
|
.sort((a, b) => a.type.localeCompare(b.type))
|
|
@@ -306,8 +306,8 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
306
306
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
307
307
|
}
|
|
308
308
|
const headers = [
|
|
309
|
-
( localize(
|
|
310
|
-
( localize(
|
|
309
|
+
( localize(7659, "Name")),
|
|
310
|
+
( localize(7660, "Mimetypes")),
|
|
311
311
|
];
|
|
312
312
|
const rows = ( (contrib
|
|
313
313
|
.sort((a, b) => a.displayName.localeCompare(b.displayName))
|
|
@@ -328,7 +328,7 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
328
328
|
}
|
|
329
329
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
330
330
|
id: 'notebooks',
|
|
331
|
-
label: ( localize(
|
|
331
|
+
label: ( localize(7661, "Notebooks")),
|
|
332
332
|
access: {
|
|
333
333
|
canToggle: false
|
|
334
334
|
},
|
|
@@ -336,7 +336,7 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
336
336
|
});
|
|
337
337
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
338
338
|
id: 'notebookRenderer',
|
|
339
|
-
label: ( localize(
|
|
339
|
+
label: ( localize(7662, "Notebook Renderers")),
|
|
340
340
|
access: {
|
|
341
341
|
canToggle: false
|
|
342
342
|
},
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js
CHANGED
|
@@ -26,7 +26,7 @@ let NotebookExecutionService = class NotebookExecutionService {
|
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
this._logService.debug(`Execution`, `${JSON.stringify(( (cellsArr.map(c => c.handle))))}`);
|
|
29
|
-
const message = ( localize(
|
|
29
|
+
const message = ( localize(3259, "Executing a notebook cell will run code from this workspace."));
|
|
30
30
|
const trust = await this._workspaceTrustRequestService.requestWorkspaceTrust({ message });
|
|
31
31
|
if (!trust) {
|
|
32
32
|
return;
|
|
@@ -113,7 +113,7 @@ registerAction2(class extends Action2 {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super({
|
|
115
115
|
id: 'notebook.clearNotebookKernelsMRUCache',
|
|
116
|
-
title: ( localize2(
|
|
116
|
+
title: ( localize2(3263, "Clear Notebook Kernels MRU Cache")),
|
|
117
117
|
category: Categories.Developer,
|
|
118
118
|
f1: true
|
|
119
119
|
});
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js
CHANGED
|
@@ -74,14 +74,14 @@ let NotebookKeymapService = class NotebookKeymapService extends Disposable {
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
this.notificationService.prompt(Severity$1.Info, ( localize(
|
|
77
|
-
|
|
77
|
+
3260,
|
|
78
78
|
"Disable other keymaps ({0}) to avoid conflicts between keybindings?",
|
|
79
79
|
( (distinct(( (oldKeymaps.map(k => k.local.manifest.displayName)))).map(name => `'${name}'`))).join(', ')
|
|
80
80
|
)), [{
|
|
81
|
-
label: ( localize(
|
|
81
|
+
label: ( localize(3261, "Yes")),
|
|
82
82
|
run: () => onPrompt(true)
|
|
83
83
|
}, {
|
|
84
|
-
label: ( localize(
|
|
84
|
+
label: ( localize(3262, "No")),
|
|
85
85
|
run: () => onPrompt(false)
|
|
86
86
|
}]);
|
|
87
87
|
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js
CHANGED
|
@@ -8,7 +8,7 @@ let NotebookLoggingService = class NotebookLoggingService extends Disposable {
|
|
|
8
8
|
static { this.ID = 'notebook'; }
|
|
9
9
|
constructor(loggerService) {
|
|
10
10
|
super();
|
|
11
|
-
this._logger = this._register(loggerService.createLogger(logChannelId, { name: ( localize(
|
|
11
|
+
this._logger = this._register(loggerService.createLogger(logChannelId, { name: ( localize(3264, "Notebook")) }));
|
|
12
12
|
}
|
|
13
13
|
debug(category, output) {
|
|
14
14
|
this._logger.debug(`[${category}] ${output}`);
|
|
@@ -554,7 +554,7 @@ let NotebookService = class NotebookService extends Disposable {
|
|
|
554
554
|
const knownProvider = this.getViewTypeProvider(viewType);
|
|
555
555
|
const actions = knownProvider ? [
|
|
556
556
|
toAction({
|
|
557
|
-
id: 'workbench.notebook.action.installMissingViewType', label: ( localize(
|
|
557
|
+
id: 'workbench.notebook.action.installMissingViewType', label: ( localize(3258, "Install extension for '{0}'", viewType)), run: async () => {
|
|
558
558
|
await this._instantiationService.createInstance(InstallRecommendedExtensionAction, knownProvider).run();
|
|
559
559
|
}
|
|
560
560
|
})
|
|
@@ -47,8 +47,8 @@ import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/prog
|
|
|
47
47
|
var FileWorkingCopyManager_1;
|
|
48
48
|
let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
49
49
|
static { FileWorkingCopyManager_1 = this; }
|
|
50
|
-
static { this.FILE_WORKING_COPY_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyCreate.source', ( localize(
|
|
51
|
-
static { this.FILE_WORKING_COPY_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyReplace.source', ( localize(
|
|
50
|
+
static { this.FILE_WORKING_COPY_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyCreate.source', ( localize(7841, "File Created"))); }
|
|
51
|
+
static { this.FILE_WORKING_COPY_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyReplace.source', ( localize(7842, "File Replaced"))); }
|
|
52
52
|
constructor(workingCopyTypeId, storedWorkingCopyModelFactory, untitledWorkingCopyModelFactory, fileService, lifecycleService, labelService, logService, workingCopyFileService, workingCopyBackupService, uriIdentityService, fileDialogService, filesConfigurationService, workingCopyService, notificationService, workingCopyEditorService, editorService, elevatedFileService, pathService, environmentService, dialogService, decorationsService, progressService) {
|
|
53
53
|
super();
|
|
54
54
|
this.workingCopyTypeId = workingCopyTypeId;
|
|
@@ -103,7 +103,7 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
103
103
|
constructor(stored) {
|
|
104
104
|
super();
|
|
105
105
|
this.stored = stored;
|
|
106
|
-
this.label = ( localize(
|
|
106
|
+
this.label = ( localize(7843, "File Working Copy Decorations"));
|
|
107
107
|
this._onDidChange = this._register(( (new Emitter())));
|
|
108
108
|
this.onDidChange = this._onDidChange.event;
|
|
109
109
|
this.registerListeners();
|
|
@@ -130,20 +130,20 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
130
130
|
color: listErrorForeground,
|
|
131
131
|
letter: Codicon.lockSmall,
|
|
132
132
|
strikethrough: true,
|
|
133
|
-
tooltip: ( localize(
|
|
133
|
+
tooltip: ( localize(7844, "Deleted, Read-only")),
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
else if (isReadonly) {
|
|
137
137
|
return {
|
|
138
138
|
letter: Codicon.lockSmall,
|
|
139
|
-
tooltip: ( localize(
|
|
139
|
+
tooltip: ( localize(7845, "Read-only")),
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
142
|
else if (isOrphaned) {
|
|
143
143
|
return {
|
|
144
144
|
color: listErrorForeground,
|
|
145
145
|
strikethrough: true,
|
|
146
|
-
tooltip: ( localize(
|
|
146
|
+
tooltip: ( localize(7846, "Deleted")),
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
return undefined;
|
|
@@ -275,17 +275,17 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
275
275
|
const { confirmed } = await this.dialogService.confirm({
|
|
276
276
|
type: 'warning',
|
|
277
277
|
message: ( localize(
|
|
278
|
-
|
|
278
|
+
7847,
|
|
279
279
|
"'{0}' already exists. Do you want to replace it?",
|
|
280
280
|
basename(resource)
|
|
281
281
|
)),
|
|
282
282
|
detail: ( localize(
|
|
283
|
-
|
|
283
|
+
7848,
|
|
284
284
|
"A file or folder with the name '{0}' already exists in the folder '{1}'. Replacing it will overwrite its current contents.",
|
|
285
285
|
basename(resource),
|
|
286
286
|
basename(dirname(resource))
|
|
287
287
|
)),
|
|
288
|
-
primaryButton: ( localize(
|
|
288
|
+
primaryButton: ( localize(7849, "&&Replace"))
|
|
289
289
|
});
|
|
290
290
|
return confirmed;
|
|
291
291
|
}
|
|
@@ -293,12 +293,12 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
293
293
|
const { confirmed } = await this.dialogService.confirm({
|
|
294
294
|
type: 'warning',
|
|
295
295
|
message: ( localize(
|
|
296
|
-
|
|
296
|
+
7850,
|
|
297
297
|
"'{0}' is marked as read-only. Do you want to save anyway?",
|
|
298
298
|
basename(resource)
|
|
299
299
|
)),
|
|
300
|
-
detail: ( localize(
|
|
301
|
-
primaryButton: ( localize(
|
|
300
|
+
detail: ( localize(7851, "Paths can be configured as read-only via settings.")),
|
|
301
|
+
primaryButton: ( localize(7852, "&&Save Anyway"))
|
|
302
302
|
});
|
|
303
303
|
return confirmed;
|
|
304
304
|
}
|
|
@@ -77,7 +77,7 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
77
77
|
this._register(this.lifecycleService.onBeforeShutdown(event => event.veto(this.onBeforeShutdownWeb(), 'veto.fileWorkingCopyManager')));
|
|
78
78
|
}
|
|
79
79
|
else {
|
|
80
|
-
this._register(this.lifecycleService.onWillShutdown(event => event.join(this.onWillShutdownDesktop(), { id: 'join.fileWorkingCopyManager', label: ( localize(
|
|
80
|
+
this._register(this.lifecycleService.onWillShutdown(event => event.join(this.onWillShutdownDesktop(), { id: 'join.fileWorkingCopyManager', label: ( localize(10724, "Saving working copies")) })));
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
onBeforeShutdownWeb() {
|