@codingame/monaco-vscode-api 8.0.1 → 8.0.3
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/api.js +1 -1
- package/extensions.d.ts +24 -0
- package/missing-services.js +2 -2
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +49 -49
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +6 -6
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/editor.api.d.ts +91 -69
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +7 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +10 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +9 -9
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +166 -166
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +32 -32
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +82 -82
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -21,25 +21,25 @@ import { isString } from '../../../../base/common/types.js';
|
|
|
21
21
|
const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
22
22
|
extensionPoint: 'languages',
|
|
23
23
|
jsonSchema: {
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(2438, 'Contributes language declarations.')),
|
|
25
25
|
type: 'array',
|
|
26
26
|
items: {
|
|
27
27
|
type: 'object',
|
|
28
28
|
defaultSnippets: [{ body: { id: '${1:languageId}', aliases: ['${2:label}'], extensions: ['${3:extension}'], configuration: './language-configuration.json' } }],
|
|
29
29
|
properties: {
|
|
30
30
|
id: {
|
|
31
|
-
description: ( localize(
|
|
31
|
+
description: ( localize(2439, 'ID of the language.')),
|
|
32
32
|
type: 'string'
|
|
33
33
|
},
|
|
34
34
|
aliases: {
|
|
35
|
-
description: ( localize(
|
|
35
|
+
description: ( localize(2440, 'Name aliases for the language.')),
|
|
36
36
|
type: 'array',
|
|
37
37
|
items: {
|
|
38
38
|
type: 'string'
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
extensions: {
|
|
42
|
-
description: ( localize(
|
|
42
|
+
description: ( localize(2441, 'File extensions associated to the language.')),
|
|
43
43
|
default: ['.foo'],
|
|
44
44
|
type: 'array',
|
|
45
45
|
items: {
|
|
@@ -47,21 +47,21 @@ const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
filenames: {
|
|
50
|
-
description: ( localize(
|
|
50
|
+
description: ( localize(2442, 'File names associated to the language.')),
|
|
51
51
|
type: 'array',
|
|
52
52
|
items: {
|
|
53
53
|
type: 'string'
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
filenamePatterns: {
|
|
57
|
-
description: ( localize(
|
|
57
|
+
description: ( localize(2443, 'File name glob patterns associated to the language.')),
|
|
58
58
|
type: 'array',
|
|
59
59
|
items: {
|
|
60
60
|
type: 'string'
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
mimetypes: {
|
|
64
|
-
description: ( localize(
|
|
64
|
+
description: ( localize(2444, 'Mime types associated to the language.')),
|
|
65
65
|
type: 'array',
|
|
66
66
|
items: {
|
|
67
67
|
type: 'string'
|
|
@@ -69,14 +69,14 @@ const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
69
69
|
},
|
|
70
70
|
firstLine: {
|
|
71
71
|
description: ( localize(
|
|
72
|
-
|
|
72
|
+
2445,
|
|
73
73
|
'A regular expression matching the first line of a file of the language.'
|
|
74
74
|
)),
|
|
75
75
|
type: 'string'
|
|
76
76
|
},
|
|
77
77
|
configuration: {
|
|
78
78
|
description: ( localize(
|
|
79
|
-
|
|
79
|
+
2446,
|
|
80
80
|
'A relative path to a file containing configuration options for the language.'
|
|
81
81
|
)),
|
|
82
82
|
type: 'string',
|
|
@@ -85,16 +85,16 @@ const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
85
85
|
icon: {
|
|
86
86
|
type: 'object',
|
|
87
87
|
description: ( localize(
|
|
88
|
-
|
|
88
|
+
2447,
|
|
89
89
|
'A icon to use as file icon, if no icon theme provides one for the language.'
|
|
90
90
|
)),
|
|
91
91
|
properties: {
|
|
92
92
|
light: {
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(2448, 'Icon path when a light theme is used')),
|
|
94
94
|
type: 'string'
|
|
95
95
|
},
|
|
96
96
|
dark: {
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(2449, 'Icon path when a dark theme is used')),
|
|
98
98
|
type: 'string'
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -168,11 +168,11 @@ class LanguageTableRenderer extends Disposable {
|
|
|
168
168
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
169
169
|
}
|
|
170
170
|
const headers = [
|
|
171
|
-
( localize(
|
|
172
|
-
( localize(
|
|
173
|
-
( localize(
|
|
174
|
-
( localize(
|
|
175
|
-
( localize(
|
|
171
|
+
( localize(2450, "ID")),
|
|
172
|
+
( localize(2451, "Name")),
|
|
173
|
+
( localize(2452, "File Extensions")),
|
|
174
|
+
( localize(2453, "Grammar")),
|
|
175
|
+
( localize(2454, "Snippets"))
|
|
176
176
|
];
|
|
177
177
|
const rows = ( (languages.sort((a, b) => a.id.localeCompare(b.id))
|
|
178
178
|
.map(l => {
|
|
@@ -194,7 +194,7 @@ class LanguageTableRenderer extends Disposable {
|
|
|
194
194
|
}
|
|
195
195
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
196
196
|
id: 'languages',
|
|
197
|
-
label: ( localize(
|
|
197
|
+
label: ( localize(2455, "Programming Languages")),
|
|
198
198
|
access: {
|
|
199
199
|
canToggle: false
|
|
200
200
|
},
|
|
@@ -212,7 +212,7 @@ let WorkbenchLanguageService = class WorkbenchLanguageService extends LanguageSe
|
|
|
212
212
|
const extension = extensions[i];
|
|
213
213
|
if (!Array.isArray(extension.value)) {
|
|
214
214
|
extension.collector.error(( localize(
|
|
215
|
-
|
|
215
|
+
2456,
|
|
216
216
|
"Invalid `contributes.{0}`. Expected an array.",
|
|
217
217
|
languagesExtPoint.name
|
|
218
218
|
)));
|
|
@@ -292,16 +292,16 @@ function isUndefinedOrStringArray(value) {
|
|
|
292
292
|
}
|
|
293
293
|
function isValidLanguageExtensionPoint(value, collector) {
|
|
294
294
|
if (!value) {
|
|
295
|
-
collector?.error(( localize(
|
|
295
|
+
collector?.error(( localize(2457, "Empty value for `contributes.{0}`", languagesExtPoint.name)));
|
|
296
296
|
return false;
|
|
297
297
|
}
|
|
298
298
|
if (typeof value.id !== 'string') {
|
|
299
|
-
collector?.error(( localize(
|
|
299
|
+
collector?.error(( localize(2458, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
300
300
|
return false;
|
|
301
301
|
}
|
|
302
302
|
if (!isUndefinedOrStringArray(value.extensions)) {
|
|
303
303
|
collector?.error(( localize(
|
|
304
|
-
|
|
304
|
+
2459,
|
|
305
305
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
306
306
|
'extensions'
|
|
307
307
|
)));
|
|
@@ -309,7 +309,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
309
309
|
}
|
|
310
310
|
if (!isUndefinedOrStringArray(value.filenames)) {
|
|
311
311
|
collector?.error(( localize(
|
|
312
|
-
|
|
312
|
+
2460,
|
|
313
313
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
314
314
|
'filenames'
|
|
315
315
|
)));
|
|
@@ -317,7 +317,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
317
317
|
}
|
|
318
318
|
if (typeof value.firstLine !== 'undefined' && typeof value.firstLine !== 'string') {
|
|
319
319
|
collector?.error(( localize(
|
|
320
|
-
|
|
320
|
+
2461,
|
|
321
321
|
"property `{0}` can be omitted and must be of type `string`",
|
|
322
322
|
'firstLine'
|
|
323
323
|
)));
|
|
@@ -325,7 +325,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
325
325
|
}
|
|
326
326
|
if (typeof value.configuration !== 'undefined' && typeof value.configuration !== 'string') {
|
|
327
327
|
collector?.error(( localize(
|
|
328
|
-
|
|
328
|
+
2462,
|
|
329
329
|
"property `{0}` can be omitted and must be of type `string`",
|
|
330
330
|
'configuration'
|
|
331
331
|
)));
|
|
@@ -333,7 +333,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
333
333
|
}
|
|
334
334
|
if (!isUndefinedOrStringArray(value.aliases)) {
|
|
335
335
|
collector?.error(( localize(
|
|
336
|
-
|
|
336
|
+
2463,
|
|
337
337
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
338
338
|
'aliases'
|
|
339
339
|
)));
|
|
@@ -341,7 +341,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
341
341
|
}
|
|
342
342
|
if (!isUndefinedOrStringArray(value.mimetypes)) {
|
|
343
343
|
collector?.error(( localize(
|
|
344
|
-
|
|
344
|
+
2464,
|
|
345
345
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
346
346
|
'mimetypes'
|
|
347
347
|
)));
|
|
@@ -350,7 +350,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
350
350
|
if (typeof value.icon !== 'undefined') {
|
|
351
351
|
if (typeof value.icon !== 'object' || typeof value.icon.light !== 'string' || typeof value.icon.dark !== 'string') {
|
|
352
352
|
collector?.error(( localize(
|
|
353
|
-
|
|
353
|
+
2465,
|
|
354
354
|
"property `{0}` can be omitted and must be of type `object` with properties `{1}` and `{2}` of type `string`",
|
|
355
355
|
'icon',
|
|
356
356
|
'light',
|
|
@@ -6,14 +6,14 @@ import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js'
|
|
|
6
6
|
import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';
|
|
7
7
|
function getSyncAreaLabel(source) {
|
|
8
8
|
switch (source) {
|
|
9
|
-
case SyncResource.Settings: return ( localize(
|
|
10
|
-
case SyncResource.Keybindings: return ( localize(
|
|
11
|
-
case SyncResource.Snippets: return ( localize(
|
|
12
|
-
case SyncResource.Tasks: return ( localize(
|
|
13
|
-
case SyncResource.Extensions: return ( localize(
|
|
14
|
-
case SyncResource.GlobalState: return ( localize(
|
|
15
|
-
case SyncResource.Profiles: return ( localize(
|
|
16
|
-
case SyncResource.WorkspaceState: return ( localize(
|
|
9
|
+
case SyncResource.Settings: return ( localize(8513, "Settings"));
|
|
10
|
+
case SyncResource.Keybindings: return ( localize(8514, "Keyboard Shortcuts"));
|
|
11
|
+
case SyncResource.Snippets: return ( localize(8515, "Snippets"));
|
|
12
|
+
case SyncResource.Tasks: return ( localize(8516, "Tasks"));
|
|
13
|
+
case SyncResource.Extensions: return ( localize(8517, "Extensions"));
|
|
14
|
+
case SyncResource.GlobalState: return ( localize(8518, "UI State"));
|
|
15
|
+
case SyncResource.Profiles: return ( localize(8519, "Profiles"));
|
|
16
|
+
case SyncResource.WorkspaceState: return ( localize(8520, "Workspace State"));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
var AccountStatus;
|
|
@@ -21,8 +21,8 @@ var AccountStatus;
|
|
|
21
21
|
AccountStatus["Unavailable"] = "unavailable";
|
|
22
22
|
AccountStatus["Available"] = "available";
|
|
23
23
|
})(AccountStatus || (AccountStatus = {}))));
|
|
24
|
-
const SYNC_TITLE = ( localize2(
|
|
25
|
-
const SYNC_VIEW_ICON = registerIcon('settings-sync-view-icon', Codicon.sync, ( localize(
|
|
24
|
+
const SYNC_TITLE = ( localize2(8521, "Settings Sync"));
|
|
25
|
+
const SYNC_VIEW_ICON = registerIcon('settings-sync-view-icon', Codicon.sync, ( localize(8522, 'View icon of the Settings Sync view.')));
|
|
26
26
|
const CONTEXT_SYNC_STATE = ( (new RawContextKey('syncStatus', SyncStatus.Uninitialized)));
|
|
27
27
|
const CONTEXT_SYNC_ENABLEMENT = ( (new RawContextKey('syncEnabled', false)));
|
|
28
28
|
const CONTEXT_ACCOUNT_STATE = ( (new RawContextKey('userDataSyncAccountStatus', AccountStatus.Unavailable)));
|
|
@@ -35,7 +35,7 @@ const SYNC_VIEW_CONTAINER_ID = 'workbench.view.sync';
|
|
|
35
35
|
const SYNC_CONFLICTS_VIEW_ID = 'workbench.views.sync.conflicts';
|
|
36
36
|
const DOWNLOAD_ACTIVITY_ACTION_DESCRIPTOR = {
|
|
37
37
|
id: 'workbench.userDataSync.actions.downloadSyncActivity',
|
|
38
|
-
title: ( localize2(
|
|
38
|
+
title: ( localize2(8523, "Download Settings Sync Activity")),
|
|
39
39
|
category: Categories.Developer,
|
|
40
40
|
f1: true,
|
|
41
41
|
precondition: ( (ContextKeyExpr.and(
|
|
@@ -216,7 +216,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
216
216
|
}
|
|
217
217
|
getFocusedViewName() {
|
|
218
218
|
const viewId = this.contextKeyService.getContextKeyValue(FocusedViewContext.key) ?? '';
|
|
219
|
-
const textEditorFocused = this.editorService.activeTextEditorControl?.hasTextFocus() ? ( localize(
|
|
219
|
+
const textEditorFocused = this.editorService.activeTextEditorControl?.hasTextFocus() ? ( localize(4146, "Text Editor")) : undefined;
|
|
220
220
|
return this.viewDescriptorService.getViewDescriptorById(( (viewId.toString())))?.name?.value ?? textEditorFocused ?? '';
|
|
221
221
|
}
|
|
222
222
|
async openView(id, focus) {
|
|
@@ -317,10 +317,10 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
317
317
|
const localizedTitle = typeof title === 'string' ? title : title.value;
|
|
318
318
|
const originalTitle = typeof title === 'string' ? title : title.original;
|
|
319
319
|
if (viewContainerLocation === ViewContainerLocation.Sidebar) {
|
|
320
|
-
return { value: ( localize(
|
|
320
|
+
return { value: ( localize(4147, "Show {0}", localizedTitle)), original: `Show ${originalTitle}` };
|
|
321
321
|
}
|
|
322
322
|
else {
|
|
323
|
-
return { value: ( localize(
|
|
323
|
+
return { value: ( localize(4148, "Toggle {0}", localizedTitle)), original: `Toggle ${originalTitle}` };
|
|
324
324
|
}
|
|
325
325
|
},
|
|
326
326
|
category: Categories.View,
|
|
@@ -388,10 +388,10 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
388
388
|
const localizedTitle = typeof title === 'string' ? title : title.value;
|
|
389
389
|
const originalTitle = typeof title === 'string' ? title : title.original;
|
|
390
390
|
if (viewContainerLocation === ViewContainerLocation.Sidebar) {
|
|
391
|
-
return { value: ( localize(
|
|
391
|
+
return { value: ( localize(4147, "Show {0}", localizedTitle)), original: `Show ${originalTitle}` };
|
|
392
392
|
}
|
|
393
393
|
else {
|
|
394
|
-
return { value: ( localize(
|
|
394
|
+
return { value: ( localize(4148, "Toggle {0}", localizedTitle)), original: `Toggle ${originalTitle}` };
|
|
395
395
|
}
|
|
396
396
|
},
|
|
397
397
|
category: Categories.View,
|
|
@@ -442,7 +442,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
442
442
|
registerFocusViewAction(viewDescriptor, category) {
|
|
443
443
|
return registerAction2(class FocusViewAction extends Action2 {
|
|
444
444
|
constructor() {
|
|
445
|
-
const title = ( localize2(
|
|
445
|
+
const title = ( localize2(4149, "Focus on {0} View", viewDescriptor.name.value));
|
|
446
446
|
super({
|
|
447
447
|
id: viewDescriptor.focusCommand ? viewDescriptor.focusCommand.id : `${viewDescriptor.id}.focus`,
|
|
448
448
|
title,
|
|
@@ -490,7 +490,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
490
490
|
constructor() {
|
|
491
491
|
super({
|
|
492
492
|
id: `${viewDescriptor.id}.resetViewLocation`,
|
|
493
|
-
title: ( localize2(
|
|
493
|
+
title: ( localize2(4150, "Reset Location")),
|
|
494
494
|
menu: [{
|
|
495
495
|
id: MenuId.ViewTitleContext,
|
|
496
496
|
when: ( (ContextKeyExpr.or( (ContextKeyExpr.and(
|
|
@@ -403,7 +403,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
403
403
|
}
|
|
404
404
|
const saveCancellation = ( (new CancellationTokenSource()));
|
|
405
405
|
return this.progressService.withProgress({
|
|
406
|
-
title: ( localize(
|
|
406
|
+
title: ( localize(10651, "Saving '{0}'", this.name)),
|
|
407
407
|
location: ProgressLocation.Window,
|
|
408
408
|
cancellable: true,
|
|
409
409
|
delay: this.isDirty() ? 3000 : 5000
|
|
@@ -450,7 +450,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
450
450
|
}
|
|
451
451
|
versionId = this.versionId;
|
|
452
452
|
this.inErrorMode = false;
|
|
453
|
-
progress.report({ message: ( localize(
|
|
453
|
+
progress.report({ message: ( localize(10652, "Writing into file...")) });
|
|
454
454
|
this.trace(`doSave(${versionId}) - before write()`);
|
|
455
455
|
const lastResolvedFileStat = assertIsDefined(this.lastResolvedFileStat);
|
|
456
456
|
const resolvedFileWorkingCopy = this;
|
|
@@ -527,12 +527,12 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
527
527
|
let message;
|
|
528
528
|
if (fileOperationError.fileOperationResult === FileOperationResult.FILE_MODIFIED_SINCE) {
|
|
529
529
|
message = ( localize(
|
|
530
|
-
|
|
530
|
+
10653,
|
|
531
531
|
"Failed to save '{0}': The content of the file is newer. Do you want to overwrite the file with your changes?",
|
|
532
532
|
this.name
|
|
533
533
|
));
|
|
534
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.overwrite', label: ( localize(
|
|
535
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.revert', label: ( localize(
|
|
534
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.overwrite', label: ( localize(10654, "Overwrite")), run: () => this.save({ ...options, ignoreModifiedSince: true, reason: SaveReason.EXPLICIT }) }));
|
|
535
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.revert', label: ( localize(10655, "Discard")), run: () => this.revert() }));
|
|
536
536
|
}
|
|
537
537
|
else {
|
|
538
538
|
const isWriteLocked = fileOperationError.fileOperationResult === FileOperationResult.FILE_WRITE_LOCKED;
|
|
@@ -546,22 +546,22 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
546
546
|
primaryActions.push(toAction({
|
|
547
547
|
id: 'fileWorkingCopy.saveElevated',
|
|
548
548
|
label: triedToUnlock ?
|
|
549
|
-
isWindows ? ( localize(
|
|
550
|
-
isWindows ? ( localize(
|
|
549
|
+
isWindows ? ( localize(10656, "Overwrite as Admin...")) : ( localize(10657, "Overwrite as Sudo...")) :
|
|
550
|
+
isWindows ? ( localize(10658, "Retry as Admin...")) : ( localize(10659, "Retry as Sudo...")),
|
|
551
551
|
run: () => {
|
|
552
552
|
this.save({ ...options, writeElevated: true, writeUnlock: triedToUnlock, reason: SaveReason.EXPLICIT });
|
|
553
553
|
}
|
|
554
554
|
}));
|
|
555
555
|
}
|
|
556
556
|
else if (isWriteLocked) {
|
|
557
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.unlock', label: ( localize(
|
|
557
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.unlock', label: ( localize(10654, "Overwrite")), run: () => this.save({ ...options, writeUnlock: true, reason: SaveReason.EXPLICIT }) }));
|
|
558
558
|
}
|
|
559
559
|
else {
|
|
560
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.retry', label: ( localize(
|
|
560
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.retry', label: ( localize(10660, "Retry")), run: () => this.save({ ...options, reason: SaveReason.EXPLICIT }) }));
|
|
561
561
|
}
|
|
562
562
|
primaryActions.push(toAction({
|
|
563
563
|
id: 'fileWorkingCopy.saveAs',
|
|
564
|
-
label: ( localize(
|
|
564
|
+
label: ( localize(10661, "Save As...")),
|
|
565
565
|
run: async () => {
|
|
566
566
|
const editor = this.workingCopyEditorService.findEditor(this);
|
|
567
567
|
if (editor) {
|
|
@@ -572,24 +572,24 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
}));
|
|
575
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.revert', label: ( localize(
|
|
575
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.revert', label: ( localize(10655, "Discard")), run: () => this.revert() }));
|
|
576
576
|
if (isWriteLocked) {
|
|
577
577
|
if (triedToUnlock && canSaveElevated) {
|
|
578
578
|
message = isWindows ?
|
|
579
579
|
( localize(
|
|
580
|
-
|
|
580
|
+
10662,
|
|
581
581
|
"Failed to save '{0}': File is read-only. Select 'Overwrite as Admin' to retry as administrator.",
|
|
582
582
|
this.name
|
|
583
583
|
)) :
|
|
584
584
|
( localize(
|
|
585
|
-
|
|
585
|
+
10663,
|
|
586
586
|
"Failed to save '{0}': File is read-only. Select 'Overwrite as Sudo' to retry as superuser.",
|
|
587
587
|
this.name
|
|
588
588
|
));
|
|
589
589
|
}
|
|
590
590
|
else {
|
|
591
591
|
message = ( localize(
|
|
592
|
-
|
|
592
|
+
10664,
|
|
593
593
|
"Failed to save '{0}': File is read-only. Select 'Overwrite' to attempt to make it writeable.",
|
|
594
594
|
this.name
|
|
595
595
|
));
|
|
@@ -598,19 +598,19 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
598
598
|
else if (canSaveElevated && isPermissionDenied) {
|
|
599
599
|
message = isWindows ?
|
|
600
600
|
( localize(
|
|
601
|
-
|
|
601
|
+
10665,
|
|
602
602
|
"Failed to save '{0}': Insufficient permissions. Select 'Retry as Admin' to retry as administrator.",
|
|
603
603
|
this.name
|
|
604
604
|
)) :
|
|
605
605
|
( localize(
|
|
606
|
-
|
|
606
|
+
10666,
|
|
607
607
|
"Failed to save '{0}': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.",
|
|
608
608
|
this.name
|
|
609
609
|
));
|
|
610
610
|
}
|
|
611
611
|
else {
|
|
612
612
|
message = ( localize(
|
|
613
|
-
|
|
613
|
+
10667,
|
|
614
614
|
"Failed to save '{0}': {1}",
|
|
615
615
|
this.name,
|
|
616
616
|
toErrorMessage(error, false)
|