@codingame/monaco-vscode-notebook-service-override 10.0.1 → 10.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 +4 -4
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +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/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 +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +1 -1
- 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 +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +60 -60
- 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(7687, '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(7688, 'Type of the notebook.')),
|
|
44
44
|
},
|
|
45
45
|
[NotebookEditorContribution.displayName]: {
|
|
46
46
|
type: 'string',
|
|
47
|
-
description: ( localize(
|
|
47
|
+
description: ( localize(7689, 'Human readable name of the notebook.')),
|
|
48
48
|
},
|
|
49
49
|
[NotebookEditorContribution.selector]: {
|
|
50
50
|
type: 'array',
|
|
51
|
-
description: ( localize(
|
|
51
|
+
description: ( localize(7690, '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(7691, 'Glob that the notebook is enabled for.')),
|
|
58
58
|
},
|
|
59
59
|
excludeFileNamePattern: {
|
|
60
60
|
type: 'string',
|
|
61
|
-
description: ( localize(
|
|
61
|
+
description: ( localize(7692, '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
|
+
7693,
|
|
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
|
+
7694,
|
|
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
|
+
7695,
|
|
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(7696, '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(7697, 'Unique identifier of the notebook output renderer.')),
|
|
109
109
|
},
|
|
110
110
|
[NotebookRendererContribution.displayName]: {
|
|
111
111
|
type: 'string',
|
|
112
|
-
description: ( localize(
|
|
112
|
+
description: ( localize(7698, '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
|
+
7699,
|
|
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
|
+
7700,
|
|
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
|
+
7701,
|
|
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
|
+
7702,
|
|
146
146
|
'The renderer is better with messaging available, but it\'s not requried.'
|
|
147
147
|
)),
|
|
148
|
-
( localize(
|
|
148
|
+
( localize(7703, 'The renderer does not require messaging.')),
|
|
149
149
|
],
|
|
150
150
|
description: ( localize(
|
|
151
|
-
|
|
151
|
+
7704,
|
|
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(7705, '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(7706, '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(7706, '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(7707, 'Existing renderer that this one extends.')),
|
|
191
191
|
},
|
|
192
192
|
path: {
|
|
193
193
|
type: 'string',
|
|
194
|
-
description: ( localize(
|
|
194
|
+
description: ( localize(7706, '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(7708, '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(7709, 'Type of the notebook.')),
|
|
219
219
|
},
|
|
220
220
|
[NotebookPreloadContribution.entrypoint]: {
|
|
221
221
|
type: 'string',
|
|
222
|
-
description: ( localize(
|
|
222
|
+
description: ( localize(7710, '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
|
+
7711,
|
|
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(7712, "ID")),
|
|
276
|
+
( localize(7713, "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(7714, "Name")),
|
|
310
|
+
( localize(7715, "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(7716, "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(7717, "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(3294, "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;
|
|
@@ -112,7 +112,7 @@ registerAction2(class extends Action2 {
|
|
|
112
112
|
constructor() {
|
|
113
113
|
super({
|
|
114
114
|
id: 'notebook.clearNotebookKernelsMRUCache',
|
|
115
|
-
title: ( localize2(
|
|
115
|
+
title: ( localize2(3298, "Clear Notebook Kernels MRU Cache")),
|
|
116
116
|
category: Categories.Developer,
|
|
117
117
|
f1: true
|
|
118
118
|
});
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js
CHANGED
|
@@ -71,14 +71,14 @@ let NotebookKeymapService = class NotebookKeymapService extends Disposable {
|
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
this.notificationService.prompt(Severity$1.Info, ( localize(
|
|
74
|
-
|
|
74
|
+
3295,
|
|
75
75
|
"Disable other keymaps ({0}) to avoid conflicts between keybindings?",
|
|
76
76
|
( (distinct(( (oldKeymaps.map(k => k.local.manifest.displayName)))).map(name => `'${name}'`))).join(', ')
|
|
77
77
|
)), [{
|
|
78
|
-
label: ( localize(
|
|
78
|
+
label: ( localize(3296, "Yes")),
|
|
79
79
|
run: () => onPrompt(true)
|
|
80
80
|
}, {
|
|
81
|
-
label: ( localize(
|
|
81
|
+
label: ( localize(3297, "No")),
|
|
82
82
|
run: () => onPrompt(false)
|
|
83
83
|
}]);
|
|
84
84
|
}
|
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(3299, "Notebook")) }));
|
|
12
12
|
}
|
|
13
13
|
debug(category, output) {
|
|
14
14
|
this._logger.debug(`[${category}] ${output}`);
|
|
@@ -546,7 +546,7 @@ let NotebookService = class NotebookService extends Disposable {
|
|
|
546
546
|
const knownProvider = this.getViewTypeProvider(viewType);
|
|
547
547
|
const actions = knownProvider ? [
|
|
548
548
|
toAction({
|
|
549
|
-
id: 'workbench.notebook.action.installMissingViewType', label: ( localize(
|
|
549
|
+
id: 'workbench.notebook.action.installMissingViewType', label: ( localize(3293, "Install extension for '{0}'", viewType)), run: async () => {
|
|
550
550
|
await this._instantiationService.createInstance(InstallRecommendedExtensionAction, knownProvider).run();
|
|
551
551
|
}
|
|
552
552
|
})
|
|
@@ -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() {
|