@codingame/monaco-vscode-notebook-service-override 21.3.2 → 21.3.4
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 +24 -24
- 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 +4 -4
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +1 -1
- 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 +3 -3
- 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 +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +25 -25
- 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/controller/variablesActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +68 -68
- 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/outputEditor/notebookOutputEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
- 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
|
@@ -28,7 +28,7 @@ const NotebookPreloadContribution = ( Object.freeze({
|
|
|
28
28
|
localResourceRoots: 'localResourceRoots',
|
|
29
29
|
}));
|
|
30
30
|
const notebookProviderContribution = {
|
|
31
|
-
description: ( localize(
|
|
31
|
+
description: ( localize(9107, 'Contributes notebook document provider.')),
|
|
32
32
|
type: 'array',
|
|
33
33
|
defaultSnippets: [{ body: [{ type: '', displayName: '', 'selector': [{ 'filenamePattern': '' }] }] }],
|
|
34
34
|
items: {
|
|
@@ -41,25 +41,25 @@ const notebookProviderContribution = {
|
|
|
41
41
|
properties: {
|
|
42
42
|
[NotebookEditorContribution.type]: {
|
|
43
43
|
type: 'string',
|
|
44
|
-
description: ( localize(
|
|
44
|
+
description: ( localize(9108, 'Type of the notebook.')),
|
|
45
45
|
},
|
|
46
46
|
[NotebookEditorContribution.displayName]: {
|
|
47
47
|
type: 'string',
|
|
48
|
-
description: ( localize(
|
|
48
|
+
description: ( localize(9109, 'Human readable name of the notebook.')),
|
|
49
49
|
},
|
|
50
50
|
[NotebookEditorContribution.selector]: {
|
|
51
51
|
type: 'array',
|
|
52
|
-
description: ( localize(
|
|
52
|
+
description: ( localize(9110, 'Set of globs that the notebook is for.')),
|
|
53
53
|
items: {
|
|
54
54
|
type: 'object',
|
|
55
55
|
properties: {
|
|
56
56
|
filenamePattern: {
|
|
57
57
|
type: 'string',
|
|
58
|
-
description: ( localize(
|
|
58
|
+
description: ( localize(9111, 'Glob that the notebook is enabled for.')),
|
|
59
59
|
},
|
|
60
60
|
excludeFileNamePattern: {
|
|
61
61
|
type: 'string',
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(9112, 'Glob that the notebook is disabled for.'))
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -67,7 +67,7 @@ const notebookProviderContribution = {
|
|
|
67
67
|
[NotebookEditorContribution.priority]: {
|
|
68
68
|
type: 'string',
|
|
69
69
|
markdownDeprecationMessage: ( localize(
|
|
70
|
-
|
|
70
|
+
9113,
|
|
71
71
|
'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.'
|
|
72
72
|
)),
|
|
73
73
|
enum: [
|
|
@@ -76,11 +76,11 @@ const notebookProviderContribution = {
|
|
|
76
76
|
],
|
|
77
77
|
markdownEnumDescriptions: [
|
|
78
78
|
( localize(
|
|
79
|
-
|
|
79
|
+
9114,
|
|
80
80
|
'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
|
|
81
81
|
)),
|
|
82
82
|
( localize(
|
|
83
|
-
|
|
83
|
+
9115,
|
|
84
84
|
'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.'
|
|
85
85
|
)),
|
|
86
86
|
],
|
|
@@ -91,7 +91,7 @@ const notebookProviderContribution = {
|
|
|
91
91
|
};
|
|
92
92
|
const defaultRendererSnippet = ( Object.freeze({ id: '', displayName: '', mimeTypes: [''], entrypoint: '' }));
|
|
93
93
|
const notebookRendererContribution = {
|
|
94
|
-
description: ( localize(
|
|
94
|
+
description: ( localize(9116, 'Contributes notebook output renderer provider.')),
|
|
95
95
|
type: 'array',
|
|
96
96
|
defaultSnippets: [{ body: [defaultRendererSnippet] }],
|
|
97
97
|
items: {
|
|
@@ -106,18 +106,18 @@ const notebookRendererContribution = {
|
|
|
106
106
|
properties: {
|
|
107
107
|
[NotebookRendererContribution.id]: {
|
|
108
108
|
type: 'string',
|
|
109
|
-
description: ( localize(
|
|
109
|
+
description: ( localize(9117, 'Unique identifier of the notebook output renderer.')),
|
|
110
110
|
},
|
|
111
111
|
[NotebookRendererContribution.displayName]: {
|
|
112
112
|
type: 'string',
|
|
113
|
-
description: ( localize(
|
|
113
|
+
description: ( localize(9118, 'Human readable name of the notebook output renderer.')),
|
|
114
114
|
},
|
|
115
115
|
[NotebookRendererContribution.hardDependencies]: {
|
|
116
116
|
type: 'array',
|
|
117
117
|
uniqueItems: true,
|
|
118
118
|
items: { type: 'string' },
|
|
119
119
|
markdownDescription: ( localize(
|
|
120
|
-
|
|
120
|
+
9119,
|
|
121
121
|
'List of kernel dependencies the renderer requires. If any of the dependencies are present in the `NotebookKernel.preloads`, the renderer can be used.'
|
|
122
122
|
)),
|
|
123
123
|
},
|
|
@@ -126,7 +126,7 @@ const notebookRendererContribution = {
|
|
|
126
126
|
uniqueItems: true,
|
|
127
127
|
items: { type: 'string' },
|
|
128
128
|
markdownDescription: ( localize(
|
|
129
|
-
|
|
129
|
+
9120,
|
|
130
130
|
'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.'
|
|
131
131
|
)),
|
|
132
132
|
},
|
|
@@ -139,17 +139,17 @@ const notebookRendererContribution = {
|
|
|
139
139
|
],
|
|
140
140
|
enumDescriptions: [
|
|
141
141
|
( localize(
|
|
142
|
-
|
|
142
|
+
9121,
|
|
143
143
|
'Messaging is required. The renderer will only be used when it\'s part of an extension that can be run in an extension host.'
|
|
144
144
|
)),
|
|
145
145
|
( localize(
|
|
146
|
-
|
|
146
|
+
9122,
|
|
147
147
|
'The renderer is better with messaging available, but it\'s not requried.'
|
|
148
148
|
)),
|
|
149
|
-
( localize(
|
|
149
|
+
( localize(9123, 'The renderer does not require messaging.')),
|
|
150
150
|
],
|
|
151
151
|
description: ( localize(
|
|
152
|
-
|
|
152
|
+
9124,
|
|
153
153
|
'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.'
|
|
154
154
|
)),
|
|
155
155
|
},
|
|
@@ -165,13 +165,13 @@ const notebookRendererContribution = {
|
|
|
165
165
|
properties: {
|
|
166
166
|
[NotebookRendererContribution.mimeTypes]: {
|
|
167
167
|
type: 'array',
|
|
168
|
-
description: ( localize(
|
|
168
|
+
description: ( localize(9125, 'Set of globs that the notebook is for.')),
|
|
169
169
|
items: {
|
|
170
170
|
type: 'string'
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
[NotebookRendererContribution.entrypoint]: {
|
|
174
|
-
description: ( localize(
|
|
174
|
+
description: ( localize(9126, 'File to load in the webview to render the extension.')),
|
|
175
175
|
type: 'string',
|
|
176
176
|
},
|
|
177
177
|
}
|
|
@@ -182,17 +182,17 @@ const notebookRendererContribution = {
|
|
|
182
182
|
],
|
|
183
183
|
properties: {
|
|
184
184
|
[NotebookRendererContribution.entrypoint]: {
|
|
185
|
-
description: ( localize(
|
|
185
|
+
description: ( localize(9126, 'File to load in the webview to render the extension.')),
|
|
186
186
|
type: 'object',
|
|
187
187
|
required: ['extends', 'path'],
|
|
188
188
|
properties: {
|
|
189
189
|
extends: {
|
|
190
190
|
type: 'string',
|
|
191
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(9127, 'Existing renderer that this one extends.')),
|
|
192
192
|
},
|
|
193
193
|
path: {
|
|
194
194
|
type: 'string',
|
|
195
|
-
description: ( localize(
|
|
195
|
+
description: ( localize(9126, 'File to load in the webview to render the extension.')),
|
|
196
196
|
},
|
|
197
197
|
}
|
|
198
198
|
},
|
|
@@ -204,7 +204,7 @@ const notebookRendererContribution = {
|
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
const notebookPreloadContribution = {
|
|
207
|
-
description: ( localize(
|
|
207
|
+
description: ( localize(9128, 'Contributes notebook preloads.')),
|
|
208
208
|
type: 'array',
|
|
209
209
|
defaultSnippets: [{ body: [{ type: '', entrypoint: '' }] }],
|
|
210
210
|
items: {
|
|
@@ -216,17 +216,17 @@ const notebookPreloadContribution = {
|
|
|
216
216
|
properties: {
|
|
217
217
|
[NotebookPreloadContribution.type]: {
|
|
218
218
|
type: 'string',
|
|
219
|
-
description: ( localize(
|
|
219
|
+
description: ( localize(9129, 'Type of the notebook.')),
|
|
220
220
|
},
|
|
221
221
|
[NotebookPreloadContribution.entrypoint]: {
|
|
222
222
|
type: 'string',
|
|
223
|
-
description: ( localize(
|
|
223
|
+
description: ( localize(9130, 'Path to file loaded in the webview.')),
|
|
224
224
|
},
|
|
225
225
|
[NotebookPreloadContribution.localResourceRoots]: {
|
|
226
226
|
type: 'array',
|
|
227
227
|
items: { type: 'string' },
|
|
228
228
|
description: ( localize(
|
|
229
|
-
|
|
229
|
+
9131,
|
|
230
230
|
'Paths to additional resources that should be allowed in the webview.'
|
|
231
231
|
)),
|
|
232
232
|
},
|
|
@@ -273,8 +273,8 @@ class NotebooksDataRenderer extends Disposable {
|
|
|
273
273
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
274
274
|
}
|
|
275
275
|
const headers = [
|
|
276
|
-
( localize(
|
|
277
|
-
( localize(
|
|
276
|
+
( localize(9132, "ID")),
|
|
277
|
+
( localize(9133, "Name")),
|
|
278
278
|
];
|
|
279
279
|
const rows = ( contrib
|
|
280
280
|
.sort((a, b) => a.type.localeCompare(b.type))
|
|
@@ -307,8 +307,8 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
307
307
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
308
308
|
}
|
|
309
309
|
const headers = [
|
|
310
|
-
( localize(
|
|
311
|
-
( localize(
|
|
310
|
+
( localize(9134, "Name")),
|
|
311
|
+
( localize(9135, "Mimetypes")),
|
|
312
312
|
];
|
|
313
313
|
const rows = ( contrib
|
|
314
314
|
.sort((a, b) => a.displayName.localeCompare(b.displayName))
|
|
@@ -329,7 +329,7 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
329
329
|
}
|
|
330
330
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
331
331
|
id: 'notebooks',
|
|
332
|
-
label: ( localize(
|
|
332
|
+
label: ( localize(9136, "Notebooks")),
|
|
333
333
|
access: {
|
|
334
334
|
canToggle: false
|
|
335
335
|
},
|
|
@@ -337,7 +337,7 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
337
337
|
});
|
|
338
338
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
339
339
|
id: 'notebookRenderer',
|
|
340
|
-
label: ( localize(
|
|
340
|
+
label: ( localize(9137, "Notebook Renderers")),
|
|
341
341
|
access: {
|
|
342
342
|
canToggle: false
|
|
343
343
|
},
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js
CHANGED
|
@@ -114,7 +114,7 @@ let NotebookOutputEditor = class NotebookOutputEditor extends EditorPane {
|
|
|
114
114
|
if (this.input) {
|
|
115
115
|
return this.input.getName();
|
|
116
116
|
}
|
|
117
|
-
return localize(
|
|
117
|
+
return localize(9166, "Notebook Output Editor");
|
|
118
118
|
}
|
|
119
119
|
async setInput(input, options, context, token) {
|
|
120
120
|
await super.setInput(input, options, context, token);
|
|
@@ -160,13 +160,13 @@ let NotebookOutputEditor = class NotebookOutputEditor extends EditorPane {
|
|
|
160
160
|
}
|
|
161
161
|
_renderMissingRenderer(viewModel, preferredMimeType) {
|
|
162
162
|
if (!viewModel.model.outputs.length) {
|
|
163
|
-
return this._renderMessage(viewModel, ( localize(
|
|
163
|
+
return this._renderMessage(viewModel, ( localize(9167, "Cell has no output")));
|
|
164
164
|
}
|
|
165
165
|
if (!preferredMimeType) {
|
|
166
166
|
const mimeTypes = ( viewModel.model.outputs.map(op => op.mime));
|
|
167
167
|
const mimeTypesMessage = mimeTypes.join(', ');
|
|
168
168
|
return this._renderMessage(viewModel, ( localize(
|
|
169
|
-
|
|
169
|
+
9168,
|
|
170
170
|
"No renderer could be found for output. It has the following mimetypes: {0}",
|
|
171
171
|
mimeTypesMessage
|
|
172
172
|
)));
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js
CHANGED
|
@@ -71,7 +71,7 @@ let NotebookOutputEditorInput = class NotebookOutputEditorInput extends EditorIn
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
getName() {
|
|
74
|
-
return localize(
|
|
74
|
+
return localize(9169, "Notebook Output Preview");
|
|
75
75
|
}
|
|
76
76
|
get editorId() {
|
|
77
77
|
return 'notebookOutputEditor';
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js
CHANGED
|
@@ -27,7 +27,7 @@ let NotebookExecutionService = class NotebookExecutionService {
|
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
this._logService.debug(`Execution`, `${JSON.stringify(( cellsArr.map(c => c.handle)))}`);
|
|
30
|
-
const message = ( localize(
|
|
30
|
+
const message = ( localize(9170, "Executing a notebook cell will run code from this workspace."));
|
|
31
31
|
const trust = await this._workspaceTrustRequestService.requestWorkspaceTrust({ message });
|
|
32
32
|
if (!trust) {
|
|
33
33
|
return;
|
|
@@ -114,7 +114,7 @@ registerAction2(class extends Action2 {
|
|
|
114
114
|
constructor() {
|
|
115
115
|
super({
|
|
116
116
|
id: 'notebook.clearNotebookKernelsMRUCache',
|
|
117
|
-
title: ( localize2(
|
|
117
|
+
title: ( localize2(9171, "Clear Notebook Kernels MRU Cache")),
|
|
118
118
|
category: Categories.Developer,
|
|
119
119
|
f1: true
|
|
120
120
|
});
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js
CHANGED
|
@@ -75,14 +75,14 @@ let NotebookKeymapService = class NotebookKeymapService extends Disposable {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
this.notificationService.prompt(Severity.Info, ( localize(
|
|
78
|
-
|
|
78
|
+
9172,
|
|
79
79
|
"Disable other keymaps ({0}) to avoid conflicts between keybindings?",
|
|
80
80
|
( distinct(( oldKeymaps.map(k => k.local.manifest.displayName))).map(name => `'${name}'`)).join(', ')
|
|
81
81
|
)), [{
|
|
82
|
-
label: ( localize(
|
|
82
|
+
label: ( localize(9173, "Yes")),
|
|
83
83
|
run: () => onPrompt(true)
|
|
84
84
|
}, {
|
|
85
|
-
label: ( localize(
|
|
85
|
+
label: ( localize(9174, "No")),
|
|
86
86
|
run: () => onPrompt(false)
|
|
87
87
|
}]);
|
|
88
88
|
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js
CHANGED
|
@@ -10,7 +10,7 @@ let NotebookLoggingService = class NotebookLoggingService extends Disposable {
|
|
|
10
10
|
static { this.ID = 'notebook'; }
|
|
11
11
|
constructor(loggerService) {
|
|
12
12
|
super();
|
|
13
|
-
this._logger = this._register(loggerService.createLogger(logChannelId, { name: ( localize(
|
|
13
|
+
this._logger = this._register(loggerService.createLogger(logChannelId, { name: ( localize(9175, "Notebook")), group: windowLogGroup }));
|
|
14
14
|
}
|
|
15
15
|
debug(category, output) {
|
|
16
16
|
this._logger.debug(`[${category}] ${output}`);
|
|
@@ -590,7 +590,7 @@ let NotebookService = class NotebookService extends Disposable {
|
|
|
590
590
|
const knownProvider = this.getViewTypeProvider(viewType);
|
|
591
591
|
const actions = knownProvider ? [
|
|
592
592
|
toAction({
|
|
593
|
-
id: 'workbench.notebook.action.installMissingViewType', label: ( localize(
|
|
593
|
+
id: 'workbench.notebook.action.installMissingViewType', label: ( localize(9176, "Install extension for '{0}'", viewType)), run: async () => {
|
|
594
594
|
await this._instantiationService.createInstance(InstallRecommendedExtensionAction, knownProvider).run();
|
|
595
595
|
}
|
|
596
596
|
})
|
|
@@ -48,8 +48,8 @@ import { IProgressService } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
48
48
|
var FileWorkingCopyManager_1;
|
|
49
49
|
let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
50
50
|
static { FileWorkingCopyManager_1 = this; }
|
|
51
|
-
static { this.FILE_WORKING_COPY_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyCreate.source', ( localize(
|
|
52
|
-
static { this.FILE_WORKING_COPY_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyReplace.source', ( localize(
|
|
51
|
+
static { this.FILE_WORKING_COPY_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyCreate.source', ( localize(13954, "File Created"))); }
|
|
52
|
+
static { this.FILE_WORKING_COPY_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyReplace.source', ( localize(13955, "File Replaced"))); }
|
|
53
53
|
constructor(workingCopyTypeId, storedWorkingCopyModelFactory, untitledWorkingCopyModelFactory, fileService, lifecycleService, labelService, logService, workingCopyFileService, workingCopyBackupService, uriIdentityService, fileDialogService, filesConfigurationService, workingCopyService, notificationService, workingCopyEditorService, editorService, elevatedFileService, pathService, environmentService, dialogService, decorationsService, progressService) {
|
|
54
54
|
super();
|
|
55
55
|
this.workingCopyTypeId = workingCopyTypeId;
|
|
@@ -104,7 +104,7 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
104
104
|
constructor(stored) {
|
|
105
105
|
super();
|
|
106
106
|
this.stored = stored;
|
|
107
|
-
this.label = ( localize(
|
|
107
|
+
this.label = ( localize(13956, "File Working Copy Decorations"));
|
|
108
108
|
this._onDidChange = this._register(( new Emitter()));
|
|
109
109
|
this.onDidChange = this._onDidChange.event;
|
|
110
110
|
this.registerListeners();
|
|
@@ -131,20 +131,20 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
131
131
|
color: listErrorForeground,
|
|
132
132
|
letter: Codicon.lockSmall,
|
|
133
133
|
strikethrough: true,
|
|
134
|
-
tooltip: ( localize(
|
|
134
|
+
tooltip: ( localize(13957, "Deleted, Read-only")),
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
else if (isReadonly) {
|
|
138
138
|
return {
|
|
139
139
|
letter: Codicon.lockSmall,
|
|
140
|
-
tooltip: ( localize(
|
|
140
|
+
tooltip: ( localize(13958, "Read-only")),
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
else if (isOrphaned) {
|
|
144
144
|
return {
|
|
145
145
|
color: listErrorForeground,
|
|
146
146
|
strikethrough: true,
|
|
147
|
-
tooltip: ( localize(
|
|
147
|
+
tooltip: ( localize(13959, "Deleted")),
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
return undefined;
|
|
@@ -279,17 +279,17 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
279
279
|
const { confirmed } = await this.dialogService.confirm({
|
|
280
280
|
type: 'warning',
|
|
281
281
|
message: ( localize(
|
|
282
|
-
|
|
282
|
+
13960,
|
|
283
283
|
"'{0}' already exists. Do you want to replace it?",
|
|
284
284
|
basename(resource)
|
|
285
285
|
)),
|
|
286
286
|
detail: ( localize(
|
|
287
|
-
|
|
287
|
+
13961,
|
|
288
288
|
"A file or folder with the name '{0}' already exists in the folder '{1}'. Replacing it will overwrite its current contents.",
|
|
289
289
|
basename(resource),
|
|
290
290
|
basename(dirname(resource))
|
|
291
291
|
)),
|
|
292
|
-
primaryButton: ( localize(
|
|
292
|
+
primaryButton: ( localize(13962, "&&Replace"))
|
|
293
293
|
});
|
|
294
294
|
return confirmed;
|
|
295
295
|
}
|
|
@@ -297,12 +297,12 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
|
|
|
297
297
|
const { confirmed } = await this.dialogService.confirm({
|
|
298
298
|
type: 'warning',
|
|
299
299
|
message: ( localize(
|
|
300
|
-
|
|
300
|
+
13963,
|
|
301
301
|
"'{0}' is marked as read-only. Do you want to save anyway?",
|
|
302
302
|
basename(resource)
|
|
303
303
|
)),
|
|
304
|
-
detail: ( localize(
|
|
305
|
-
primaryButton: ( localize(
|
|
304
|
+
detail: ( localize(13964, "Paths can be configured as read-only via settings.")),
|
|
305
|
+
primaryButton: ( localize(13965, "&&Save Anyway"))
|
|
306
306
|
});
|
|
307
307
|
return confirmed;
|
|
308
308
|
}
|
|
@@ -78,7 +78,7 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
|
|
|
78
78
|
this._register(this.lifecycleService.onBeforeShutdown(event => event.veto(this.onBeforeShutdownWeb(), 'veto.fileWorkingCopyManager')));
|
|
79
79
|
}
|
|
80
80
|
else {
|
|
81
|
-
this._register(this.lifecycleService.onWillShutdown(event => event.join(this.onWillShutdownDesktop(), { id: 'join.fileWorkingCopyManager', label: ( localize(
|
|
81
|
+
this._register(this.lifecycleService.onWillShutdown(event => event.join(this.onWillShutdownDesktop(), { id: 'join.fileWorkingCopyManager', label: ( localize(13983, "Saving working copies")) })));
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
onBeforeShutdownWeb() {
|