@codingame/monaco-vscode-notebook-service-override 32.0.0 → 32.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 +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +7 -7
- 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 +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +4 -4
- 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/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/layoutActions.js +21 -21
- 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/diff/notebookMultiDiffEditor.js +3 -3
- 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 +31 -31
- 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/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +14 -14
- 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(11816, "Contributes notebook document provider.")),
|
|
32
32
|
type: "array",
|
|
33
33
|
defaultSnippets: [{
|
|
34
34
|
body: [{
|
|
@@ -49,25 +49,25 @@ const notebookProviderContribution = {
|
|
|
49
49
|
properties: {
|
|
50
50
|
[NotebookEditorContribution.type]: {
|
|
51
51
|
type: "string",
|
|
52
|
-
description: ( localize(
|
|
52
|
+
description: ( localize(11817, "Type of the notebook."))
|
|
53
53
|
},
|
|
54
54
|
[NotebookEditorContribution.displayName]: {
|
|
55
55
|
type: "string",
|
|
56
|
-
description: ( localize(
|
|
56
|
+
description: ( localize(11818, "Human readable name of the notebook."))
|
|
57
57
|
},
|
|
58
58
|
[NotebookEditorContribution.selector]: {
|
|
59
59
|
type: "array",
|
|
60
|
-
description: ( localize(
|
|
60
|
+
description: ( localize(11819, "Set of globs that the notebook is for.")),
|
|
61
61
|
items: {
|
|
62
62
|
type: "object",
|
|
63
63
|
properties: {
|
|
64
64
|
filenamePattern: {
|
|
65
65
|
type: "string",
|
|
66
|
-
description: ( localize(
|
|
66
|
+
description: ( localize(11820, "Glob that the notebook is enabled for."))
|
|
67
67
|
},
|
|
68
68
|
excludeFileNamePattern: {
|
|
69
69
|
type: "string",
|
|
70
|
-
description: ( localize(
|
|
70
|
+
description: ( localize(11821, "Glob that the notebook is disabled for."))
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -75,15 +75,15 @@ const notebookProviderContribution = {
|
|
|
75
75
|
[NotebookEditorContribution.priority]: {
|
|
76
76
|
type: "string",
|
|
77
77
|
markdownDeprecationMessage: ( localize(
|
|
78
|
-
|
|
78
|
+
11822,
|
|
79
79
|
"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."
|
|
80
80
|
)),
|
|
81
81
|
enum: [NotebookEditorPriority.default, NotebookEditorPriority.option],
|
|
82
82
|
markdownEnumDescriptions: [( localize(
|
|
83
|
-
|
|
83
|
+
11823,
|
|
84
84
|
"The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource."
|
|
85
85
|
)), ( localize(
|
|
86
|
-
|
|
86
|
+
11824,
|
|
87
87
|
"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."
|
|
88
88
|
))],
|
|
89
89
|
default: "default"
|
|
@@ -98,7 +98,7 @@ const defaultRendererSnippet = ( Object.freeze({
|
|
|
98
98
|
entrypoint: ""
|
|
99
99
|
}));
|
|
100
100
|
const notebookRendererContribution = {
|
|
101
|
-
description: ( localize(
|
|
101
|
+
description: ( localize(11825, "Contributes notebook output renderer provider.")),
|
|
102
102
|
type: "array",
|
|
103
103
|
defaultSnippets: [{
|
|
104
104
|
body: [defaultRendererSnippet]
|
|
@@ -113,11 +113,11 @@ const notebookRendererContribution = {
|
|
|
113
113
|
properties: {
|
|
114
114
|
[NotebookRendererContribution.id]: {
|
|
115
115
|
type: "string",
|
|
116
|
-
description: ( localize(
|
|
116
|
+
description: ( localize(11826, "Unique identifier of the notebook output renderer."))
|
|
117
117
|
},
|
|
118
118
|
[NotebookRendererContribution.displayName]: {
|
|
119
119
|
type: "string",
|
|
120
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(11827, "Human readable name of the notebook output renderer."))
|
|
121
121
|
},
|
|
122
122
|
[NotebookRendererContribution.hardDependencies]: {
|
|
123
123
|
type: "array",
|
|
@@ -126,7 +126,7 @@ const notebookRendererContribution = {
|
|
|
126
126
|
type: "string"
|
|
127
127
|
},
|
|
128
128
|
markdownDescription: ( localize(
|
|
129
|
-
|
|
129
|
+
11828,
|
|
130
130
|
"List of kernel dependencies the renderer requires. If any of the dependencies are present in the `NotebookKernel.preloads`, the renderer can be used."
|
|
131
131
|
))
|
|
132
132
|
},
|
|
@@ -137,7 +137,7 @@ const notebookRendererContribution = {
|
|
|
137
137
|
type: "string"
|
|
138
138
|
},
|
|
139
139
|
markdownDescription: ( localize(
|
|
140
|
-
|
|
140
|
+
11829,
|
|
141
141
|
"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."
|
|
142
142
|
))
|
|
143
143
|
},
|
|
@@ -145,14 +145,14 @@ const notebookRendererContribution = {
|
|
|
145
145
|
default: "never",
|
|
146
146
|
enum: ["always", "optional", "never"],
|
|
147
147
|
enumDescriptions: [( localize(
|
|
148
|
-
|
|
148
|
+
11830,
|
|
149
149
|
"Messaging is required. The renderer will only be used when it's part of an extension that can be run in an extension host."
|
|
150
150
|
)), ( localize(
|
|
151
|
-
|
|
151
|
+
11831,
|
|
152
152
|
"The renderer is better with messaging available, but it's not required."
|
|
153
|
-
)), ( localize(
|
|
153
|
+
)), ( localize(11832, "The renderer does not require messaging."))],
|
|
154
154
|
description: ( localize(
|
|
155
|
-
|
|
155
|
+
11833,
|
|
156
156
|
"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."
|
|
157
157
|
))
|
|
158
158
|
}
|
|
@@ -166,13 +166,13 @@ const notebookRendererContribution = {
|
|
|
166
166
|
properties: {
|
|
167
167
|
[NotebookRendererContribution.mimeTypes]: {
|
|
168
168
|
type: "array",
|
|
169
|
-
description: ( localize(
|
|
169
|
+
description: ( localize(11834, "Set of globs that the notebook is for.")),
|
|
170
170
|
items: {
|
|
171
171
|
type: "string"
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
[NotebookRendererContribution.entrypoint]: {
|
|
175
|
-
description: ( localize(
|
|
175
|
+
description: ( localize(11835, "File to load in the webview to render the extension.")),
|
|
176
176
|
type: "string"
|
|
177
177
|
}
|
|
178
178
|
}
|
|
@@ -180,17 +180,17 @@ const notebookRendererContribution = {
|
|
|
180
180
|
required: [NotebookRendererContribution.entrypoint],
|
|
181
181
|
properties: {
|
|
182
182
|
[NotebookRendererContribution.entrypoint]: {
|
|
183
|
-
description: ( localize(
|
|
183
|
+
description: ( localize(11835, "File to load in the webview to render the extension.")),
|
|
184
184
|
type: "object",
|
|
185
185
|
required: ["extends", "path"],
|
|
186
186
|
properties: {
|
|
187
187
|
extends: {
|
|
188
188
|
type: "string",
|
|
189
|
-
description: ( localize(
|
|
189
|
+
description: ( localize(11836, "Existing renderer that this one extends."))
|
|
190
190
|
},
|
|
191
191
|
path: {
|
|
192
192
|
type: "string",
|
|
193
|
-
description: ( localize(
|
|
193
|
+
description: ( localize(11835, "File to load in the webview to render the extension."))
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
}
|
|
@@ -200,7 +200,7 @@ const notebookRendererContribution = {
|
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
const notebookPreloadContribution = {
|
|
203
|
-
description: ( localize(
|
|
203
|
+
description: ( localize(11837, "Contributes notebook preloads.")),
|
|
204
204
|
type: "array",
|
|
205
205
|
defaultSnippets: [{
|
|
206
206
|
body: [{
|
|
@@ -214,11 +214,11 @@ const notebookPreloadContribution = {
|
|
|
214
214
|
properties: {
|
|
215
215
|
[NotebookPreloadContribution.type]: {
|
|
216
216
|
type: "string",
|
|
217
|
-
description: ( localize(
|
|
217
|
+
description: ( localize(11838, "Type of the notebook."))
|
|
218
218
|
},
|
|
219
219
|
[NotebookPreloadContribution.entrypoint]: {
|
|
220
220
|
type: "string",
|
|
221
|
-
description: ( localize(
|
|
221
|
+
description: ( localize(11839, "Path to file loaded in the webview."))
|
|
222
222
|
},
|
|
223
223
|
[NotebookPreloadContribution.localResourceRoots]: {
|
|
224
224
|
type: "array",
|
|
@@ -226,7 +226,7 @@ const notebookPreloadContribution = {
|
|
|
226
226
|
type: "string"
|
|
227
227
|
},
|
|
228
228
|
description: ( localize(
|
|
229
|
-
|
|
229
|
+
11840,
|
|
230
230
|
"Paths to additional resources that should be allowed in the webview."
|
|
231
231
|
))
|
|
232
232
|
}
|
|
@@ -278,7 +278,7 @@ class NotebooksDataRenderer extends Disposable {
|
|
|
278
278
|
dispose: () => {}
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
const headers = [( localize(
|
|
281
|
+
const headers = [( localize(11841, "ID")), ( localize(11842, "Name"))];
|
|
282
282
|
const rows = ( contrib.sort((a, b) => a.type.localeCompare(b.type)).map(notebook => {
|
|
283
283
|
return [notebook.type, notebook.displayName];
|
|
284
284
|
}));
|
|
@@ -310,7 +310,7 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
310
310
|
dispose: () => {}
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
|
-
const headers = [( localize(
|
|
313
|
+
const headers = [( localize(11843, "Name")), ( localize(11844, "Mimetypes"))];
|
|
314
314
|
const rows = ( contrib.sort((a, b) => a.displayName.localeCompare(b.displayName)).map(notebookRenderer => {
|
|
315
315
|
return [notebookRenderer.displayName, notebookRenderer.mimeTypes.join(",")];
|
|
316
316
|
}));
|
|
@@ -325,7 +325,7 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
325
325
|
}
|
|
326
326
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
327
327
|
id: "notebooks",
|
|
328
|
-
label: ( localize(
|
|
328
|
+
label: ( localize(11845, "Notebooks")),
|
|
329
329
|
access: {
|
|
330
330
|
canToggle: false
|
|
331
331
|
},
|
|
@@ -333,7 +333,7 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
333
333
|
});
|
|
334
334
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
335
335
|
id: "notebookRenderer",
|
|
336
|
-
label: ( localize(
|
|
336
|
+
label: ( localize(11846, "Notebook Renderers")),
|
|
337
337
|
access: {
|
|
338
338
|
canToggle: false
|
|
339
339
|
},
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js
CHANGED
|
@@ -142,7 +142,7 @@ let NotebookOutputEditor = class NotebookOutputEditor extends EditorPane {
|
|
|
142
142
|
if (this.input) {
|
|
143
143
|
return this.input.getName();
|
|
144
144
|
}
|
|
145
|
-
return localize(
|
|
145
|
+
return localize(11876, "Notebook Output Editor");
|
|
146
146
|
}
|
|
147
147
|
async setInput(input, options, context, token) {
|
|
148
148
|
await super.setInput(input, options, context, token);
|
|
@@ -202,13 +202,13 @@ let NotebookOutputEditor = class NotebookOutputEditor extends EditorPane {
|
|
|
202
202
|
}
|
|
203
203
|
_renderMissingRenderer(viewModel, preferredMimeType) {
|
|
204
204
|
if (!viewModel.model.outputs.length) {
|
|
205
|
-
return this._renderMessage(viewModel, ( localize(
|
|
205
|
+
return this._renderMessage(viewModel, ( localize(11877, "Cell has no output")));
|
|
206
206
|
}
|
|
207
207
|
if (!preferredMimeType) {
|
|
208
208
|
const mimeTypes = ( viewModel.model.outputs.map(op => op.mime));
|
|
209
209
|
const mimeTypesMessage = mimeTypes.join(", ");
|
|
210
210
|
return this._renderMessage(viewModel, ( localize(
|
|
211
|
-
|
|
211
|
+
11878,
|
|
212
212
|
"No renderer could be found for output. It has the following mimetypes: {0}",
|
|
213
213
|
mimeTypesMessage
|
|
214
214
|
)));
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js
CHANGED
|
@@ -81,7 +81,7 @@ let NotebookOutputEditorInput = class NotebookOutputEditorInput extends EditorIn
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
getName() {
|
|
84
|
-
return localize(
|
|
84
|
+
return localize(11879, "Notebook Output Preview");
|
|
85
85
|
}
|
|
86
86
|
get editorId() {
|
|
87
87
|
return "notebookOutputEditor";
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js
CHANGED
|
@@ -33,7 +33,7 @@ let NotebookExecutionService = class NotebookExecutionService {
|
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
this._logService.debug(`Execution`, `${JSON.stringify(( cellsArr.map(c => c.handle)))}`);
|
|
36
|
-
const message = ( localize(
|
|
36
|
+
const message = ( localize(11880, "Executing a notebook cell will run code from this workspace."));
|
|
37
37
|
const trust = await this._workspaceTrustRequestService.requestWorkspaceTrust({
|
|
38
38
|
message
|
|
39
39
|
});
|
|
@@ -126,7 +126,7 @@ registerAction2(class extends Action2 {
|
|
|
126
126
|
constructor() {
|
|
127
127
|
super({
|
|
128
128
|
id: "notebook.clearNotebookKernelsMRUCache",
|
|
129
|
-
title: ( localize2(
|
|
129
|
+
title: ( localize2(11881, "Clear Notebook Kernels MRU Cache")),
|
|
130
130
|
category: Categories.Developer,
|
|
131
131
|
f1: true
|
|
132
132
|
});
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js
CHANGED
|
@@ -91,14 +91,14 @@ let NotebookKeymapService = class NotebookKeymapService extends Disposable {
|
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
this.notificationService.prompt(Severity.Info, ( localize(
|
|
94
|
-
|
|
94
|
+
11882,
|
|
95
95
|
"Disable other keymaps ({0}) to avoid conflicts between keybindings?",
|
|
96
96
|
( distinct(( oldKeymaps.map(k => k.local.manifest.displayName))).map(name => `'${name}'`)).join(", ")
|
|
97
97
|
)), [{
|
|
98
|
-
label: ( localize(
|
|
98
|
+
label: ( localize(11883, "Yes")),
|
|
99
99
|
run: () => onPrompt(true)
|
|
100
100
|
}, {
|
|
101
|
-
label: ( localize(
|
|
101
|
+
label: ( localize(11884, "No")),
|
|
102
102
|
run: () => onPrompt(false)
|
|
103
103
|
}]);
|
|
104
104
|
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js
CHANGED
|
@@ -13,7 +13,7 @@ let NotebookLoggingService = class NotebookLoggingService extends Disposable {
|
|
|
13
13
|
constructor(loggerService) {
|
|
14
14
|
super();
|
|
15
15
|
this._logger = this._register(loggerService.createLogger(logChannelId, {
|
|
16
|
-
name: ( localize(
|
|
16
|
+
name: ( localize(11885, "Notebook")),
|
|
17
17
|
group: windowLogGroup
|
|
18
18
|
}));
|
|
19
19
|
}
|
|
@@ -675,7 +675,7 @@ let NotebookService = class NotebookService extends Disposable {
|
|
|
675
675
|
const knownProvider = this.getViewTypeProvider(viewType);
|
|
676
676
|
const actions = knownProvider ? [toAction({
|
|
677
677
|
id: "workbench.notebook.action.installMissingViewType",
|
|
678
|
-
label: ( localize(
|
|
678
|
+
label: ( localize(11886, "Install extension for '{0}'", viewType)),
|
|
679
679
|
run: async () => {
|
|
680
680
|
await this._instantiationService.createInstance(InstallRecommendedExtensionAction, knownProvider).run();
|
|
681
681
|
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js
CHANGED
|
@@ -93,7 +93,7 @@ let NotebookOutlineEntryFactory = class NotebookOutlineEntryFactory {
|
|
|
93
93
|
}
|
|
94
94
|
if (entries.length === 0) {
|
|
95
95
|
if (preview.length === 0) {
|
|
96
|
-
preview = ( localize(
|
|
96
|
+
preview = ( localize(11919, "empty cell"));
|
|
97
97
|
}
|
|
98
98
|
entries.push(( new OutlineEntry(
|
|
99
99
|
index++,
|
|
@@ -232,7 +232,7 @@ registerAction2(class extends Action2 {
|
|
|
232
232
|
constructor() {
|
|
233
233
|
super({
|
|
234
234
|
id: "repl.focusLastItemExecuted",
|
|
235
|
-
title: ( localize2(
|
|
235
|
+
title: ( localize2(12653, "Focus Most Recent REPL Execution")),
|
|
236
236
|
category: "REPL",
|
|
237
237
|
menu: {
|
|
238
238
|
id: MenuId.CommandPalette,
|
|
@@ -282,7 +282,7 @@ registerAction2(class extends Action2 {
|
|
|
282
282
|
constructor() {
|
|
283
283
|
super({
|
|
284
284
|
id: "repl.input.focus",
|
|
285
|
-
title: ( localize2(
|
|
285
|
+
title: ( localize2(12654, "Focus Input Editor")),
|
|
286
286
|
category: "REPL",
|
|
287
287
|
menu: {
|
|
288
288
|
id: MenuId.CommandPalette,
|
|
@@ -327,7 +327,7 @@ registerAction2(class extends Action2 {
|
|
|
327
327
|
constructor() {
|
|
328
328
|
super({
|
|
329
329
|
id: "repl.execute",
|
|
330
|
-
title: ( localize2(
|
|
330
|
+
title: ( localize2(12655, "Execute REPL input")),
|
|
331
331
|
category: "REPL",
|
|
332
332
|
keybinding: [{
|
|
333
333
|
when: ( ContextKeyExpr.and(IS_COMPOSITE_NOTEBOOK, ( ContextKeyExpr.equals("activeEditor", "workbench.editor.repl")), ( NOTEBOOK_CELL_LIST_FOCUSED.negate()))),
|
|
@@ -19,28 +19,28 @@ class ReplEditorInputAccessibilityHelp {
|
|
|
19
19
|
}
|
|
20
20
|
function getAccessibilityInputHelpText() {
|
|
21
21
|
return [( localize(
|
|
22
|
-
|
|
22
|
+
12657,
|
|
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
|
+
12658,
|
|
26
26
|
"The Execute command{0} will evaluate the expression in the input box.",
|
|
27
27
|
"<keybinding:repl.execute>"
|
|
28
28
|
)), ( localize(
|
|
29
|
-
|
|
29
|
+
12659,
|
|
30
30
|
"The setting `accessibility.replEditor.readLastExecutionOutput` controls if output will be automatically read when execution completes."
|
|
31
31
|
)), ( localize(
|
|
32
|
-
|
|
32
|
+
12660,
|
|
33
33
|
"The setting `accessibility.replEditor.autoFocusReplExecution` controls if focus will automatically move to the REPL after executing code."
|
|
34
34
|
)), ( localize(
|
|
35
|
-
|
|
35
|
+
12661,
|
|
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
|
+
12662,
|
|
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
|
+
12663,
|
|
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
|
+
12664,
|
|
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
|
+
12665,
|
|
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
|
+
12666,
|
|
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
|
+
12667,
|
|
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
|
+
12668,
|
|
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
|
+
12669,
|
|
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
|
+
12661,
|
|
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");
|
|
@@ -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(17272, "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(17273, "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(17274, "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(17275, "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(17276, "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(17277, "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
|
+
17278,
|
|
338
338
|
"'{0}' already exists. Do you want to replace it?",
|
|
339
339
|
basename(resource)
|
|
340
340
|
)),
|
|
341
341
|
detail: ( localize(
|
|
342
|
-
|
|
342
|
+
17279,
|
|
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(17280, "&&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
|
+
17281,
|
|
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(17282, "Paths can be configured as read-only via settings.")),
|
|
362
|
+
primaryButton: ( localize(17283, "&&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(17301, "Saving working copies"))
|
|
113
113
|
}))
|
|
114
114
|
);
|
|
115
115
|
}
|