@codingame/monaco-vscode-api 11.0.1 → 11.1.0
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 +1 -1
- 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/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/common/date.js +61 -61
- package/vscode/src/vs/base/common/errorMessage.js +15 -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/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/vscode/src/vs/editor/common/config/editorOptions.js +364 -364
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +5 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/request/common/request.js +14 -14
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- 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/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- 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/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -217
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
- 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/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +52 -52
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- 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/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- 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/scm/browser/scmHistory.js +13 -13
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- 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/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
|
@@ -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(2398, '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(2399, 'ID of the language.')),
|
|
32
32
|
type: 'string'
|
|
33
33
|
},
|
|
34
34
|
aliases: {
|
|
35
|
-
description: ( localize(
|
|
35
|
+
description: ( localize(2400, '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(2401, '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(2402, '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(2403, '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(2404, '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
|
+
2405,
|
|
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
|
+
2406,
|
|
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
|
+
2407,
|
|
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(2408, 'Icon path when a light theme is used')),
|
|
94
94
|
type: 'string'
|
|
95
95
|
},
|
|
96
96
|
dark: {
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(2409, '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(2410, "ID")),
|
|
172
|
+
( localize(2411, "Name")),
|
|
173
|
+
( localize(2412, "File Extensions")),
|
|
174
|
+
( localize(2413, "Grammar")),
|
|
175
|
+
( localize(2414, "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(2415, "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
|
+
2416,
|
|
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(2417, "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(2418, "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
|
+
2419,
|
|
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
|
+
2420,
|
|
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
|
+
2421,
|
|
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
|
+
2422,
|
|
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
|
+
2423,
|
|
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
|
+
2424,
|
|
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
|
+
2425,
|
|
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',
|
|
@@ -17,9 +17,9 @@ import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextke
|
|
|
17
17
|
|
|
18
18
|
var KeybindingsEditorModel_1;
|
|
19
19
|
const KEYBINDING_ENTRY_TEMPLATE_ID = 'keybinding.entry.template';
|
|
20
|
-
const SOURCE_SYSTEM = ( localize(
|
|
21
|
-
const SOURCE_EXTENSION = ( localize(
|
|
22
|
-
const SOURCE_USER = ( localize(
|
|
20
|
+
const SOURCE_SYSTEM = ( localize(4708, "System"));
|
|
21
|
+
const SOURCE_EXTENSION = ( localize(4709, "Extension"));
|
|
22
|
+
const SOURCE_USER = ( localize(4710, "User"));
|
|
23
23
|
function createKeybindingCommandQuery(commandId, when) {
|
|
24
24
|
const whenPart = when ? ` +when:${when}` : '';
|
|
25
25
|
return `@command:${commandId}${whenPart}`;
|
|
@@ -265,7 +265,7 @@ let KeybindingsEditorModel = KeybindingsEditorModel_1 = class KeybindingsEditorM
|
|
|
265
265
|
if (menuCommand && menuCommand.title && menuCommand.title.original) {
|
|
266
266
|
const category = menuCommand.category ? menuCommand.category.original : undefined;
|
|
267
267
|
const title = menuCommand.title.original;
|
|
268
|
-
return category ? ( localize(
|
|
268
|
+
return category ? ( localize(4711, "{0}: {1}", category, title)) : title;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
return null;
|
|
@@ -274,7 +274,7 @@ let KeybindingsEditorModel = KeybindingsEditorModel_1 = class KeybindingsEditorM
|
|
|
274
274
|
if (menuCommand) {
|
|
275
275
|
const category = menuCommand.category ? typeof menuCommand.category === 'string' ? menuCommand.category : menuCommand.category.value : undefined;
|
|
276
276
|
const title = typeof menuCommand.title === 'string' ? menuCommand.title : menuCommand.title.value;
|
|
277
|
-
return category ? ( localize(
|
|
277
|
+
return category ? ( localize(4711, "{0}: {1}", category, title)) : title;
|
|
278
278
|
}
|
|
279
279
|
if (editorActionLabel) {
|
|
280
280
|
return editorActionLabel;
|
|
@@ -554,7 +554,7 @@ class KeybindingItemMatches {
|
|
|
554
554
|
if (equalsIgnoreCase(this.modifierLabels.user.altKey, word)) {
|
|
555
555
|
return true;
|
|
556
556
|
}
|
|
557
|
-
if (equalsIgnoreCase(( localize(
|
|
557
|
+
if (equalsIgnoreCase(( localize(4712, "option")), word)) {
|
|
558
558
|
return true;
|
|
559
559
|
}
|
|
560
560
|
return false;
|
|
@@ -581,7 +581,7 @@ class KeybindingItemMatches {
|
|
|
581
581
|
if (equalsIgnoreCase(this.modifierLabels.user.metaKey, word)) {
|
|
582
582
|
return true;
|
|
583
583
|
}
|
|
584
|
-
if (equalsIgnoreCase(( localize(
|
|
584
|
+
if (equalsIgnoreCase(( localize(4713, "meta")), word)) {
|
|
585
585
|
return true;
|
|
586
586
|
}
|
|
587
587
|
return false;
|
|
@@ -355,7 +355,7 @@ let QueryBuilder = class QueryBuilder {
|
|
|
355
355
|
else {
|
|
356
356
|
const probableWorkspaceFolderNameMatch = searchPath.match(/\.[\/\\](.+)[\/\\]?/);
|
|
357
357
|
const probableWorkspaceFolderName = probableWorkspaceFolderNameMatch ? probableWorkspaceFolderNameMatch[1] : searchPath;
|
|
358
|
-
const searchPathNotFoundError = ( localize(
|
|
358
|
+
const searchPathNotFoundError = ( localize(4147, "Workspace folder does not exist: {0}", probableWorkspaceFolderName));
|
|
359
359
|
throw ( (new Error(searchPathNotFoundError)));
|
|
360
360
|
}
|
|
361
361
|
}
|
|
@@ -6,7 +6,7 @@ const grammarsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
6
6
|
extensionPoint: 'grammars',
|
|
7
7
|
deps: [languagesExtPoint],
|
|
8
8
|
jsonSchema: {
|
|
9
|
-
description: ( localize(
|
|
9
|
+
description: ( localize(7319, 'Contributes textmate tokenizers.')),
|
|
10
10
|
type: 'array',
|
|
11
11
|
defaultSnippets: [{ body: [{ language: '${1:id}', scopeName: 'source.${2:id}', path: './syntaxes/${3:id}.tmLanguage.' }] }],
|
|
12
12
|
items: {
|
|
@@ -14,43 +14,43 @@ const grammarsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
14
14
|
defaultSnippets: [{ body: { language: '${1:id}', scopeName: 'source.${2:id}', path: './syntaxes/${3:id}.tmLanguage.' } }],
|
|
15
15
|
properties: {
|
|
16
16
|
language: {
|
|
17
|
-
description: ( localize(
|
|
17
|
+
description: ( localize(7320, 'Language identifier for which this syntax is contributed to.')),
|
|
18
18
|
type: 'string'
|
|
19
19
|
},
|
|
20
20
|
scopeName: {
|
|
21
|
-
description: ( localize(
|
|
21
|
+
description: ( localize(7321, 'Textmate scope name used by the tmLanguage file.')),
|
|
22
22
|
type: 'string'
|
|
23
23
|
},
|
|
24
24
|
path: {
|
|
25
25
|
description: ( localize(
|
|
26
|
-
|
|
26
|
+
7322,
|
|
27
27
|
'Path of the tmLanguage file. The path is relative to the extension folder and typically starts with \'./syntaxes/\'.'
|
|
28
28
|
)),
|
|
29
29
|
type: 'string'
|
|
30
30
|
},
|
|
31
31
|
embeddedLanguages: {
|
|
32
32
|
description: ( localize(
|
|
33
|
-
|
|
33
|
+
7323,
|
|
34
34
|
'A map of scope name to language id if this grammar contains embedded languages.'
|
|
35
35
|
)),
|
|
36
36
|
type: 'object'
|
|
37
37
|
},
|
|
38
38
|
tokenTypes: {
|
|
39
|
-
description: ( localize(
|
|
39
|
+
description: ( localize(7324, 'A map of scope name to token types.')),
|
|
40
40
|
type: 'object',
|
|
41
41
|
additionalProperties: {
|
|
42
42
|
enum: ['string', 'comment', 'other']
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
injectTo: {
|
|
46
|
-
description: ( localize(
|
|
46
|
+
description: ( localize(7325, 'List of language scope names to which this grammar is injected to.')),
|
|
47
47
|
type: 'array',
|
|
48
48
|
items: {
|
|
49
49
|
type: 'string'
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
balancedBracketScopes: {
|
|
53
|
-
description: ( localize(
|
|
53
|
+
description: ( localize(7326, 'Defines which scope names contain balanced brackets.')),
|
|
54
54
|
type: 'array',
|
|
55
55
|
items: {
|
|
56
56
|
type: 'string'
|
|
@@ -58,7 +58,7 @@ const grammarsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
58
58
|
default: ['*'],
|
|
59
59
|
},
|
|
60
60
|
unbalancedBracketScopes: {
|
|
61
|
-
description: ( localize(
|
|
61
|
+
description: ( localize(7327, 'Defines which scope names do not contain balanced brackets.')),
|
|
62
62
|
type: 'array',
|
|
63
63
|
items: {
|
|
64
64
|
type: 'string'
|
|
@@ -33,7 +33,7 @@ import { isCancellationError } from '../../../../base/common/errors.js';
|
|
|
33
33
|
var TextFileEditorModel_1;
|
|
34
34
|
let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel {
|
|
35
35
|
static { TextFileEditorModel_1 = this; }
|
|
36
|
-
static { this.TEXTFILE_SAVE_ENCODING_SOURCE = SaveSourceRegistry.registerSource('textFileEncoding.source', ( localize(
|
|
36
|
+
static { this.TEXTFILE_SAVE_ENCODING_SOURCE = SaveSourceRegistry.registerSource('textFileEncoding.source', ( localize(5746, "File Encoding Changed"))); }
|
|
37
37
|
static { this.UNDO_REDO_SAVE_PARTICIPANTS_AUTO_SAVE_THROTTLE_THRESHOLD = 500; }
|
|
38
38
|
constructor(resource, preferredEncoding,
|
|
39
39
|
preferredLanguageId, languageService, modelService, fileService, textFileService, workingCopyBackupService, logService, workingCopyService, filesConfigurationService, labelService, languageDetectionService, accessibilityService, pathService, extensionService, progressService) {
|
|
@@ -502,7 +502,7 @@ let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel
|
|
|
502
502
|
}
|
|
503
503
|
const saveCancellation = ( (new CancellationTokenSource()));
|
|
504
504
|
return this.progressService.withProgress({
|
|
505
|
-
title: ( localize(
|
|
505
|
+
title: ( localize(5747, "Saving '{0}'", this.name)),
|
|
506
506
|
location: 10 ,
|
|
507
507
|
cancellable: true,
|
|
508
508
|
delay: this.isDirty() ? 3000 : 5000
|
|
@@ -557,7 +557,7 @@ let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel
|
|
|
557
557
|
}
|
|
558
558
|
versionId = this.versionId;
|
|
559
559
|
this.inErrorMode = false;
|
|
560
|
-
progress.report({ message: ( localize(
|
|
560
|
+
progress.report({ message: ( localize(5748, "Writing into file...")) });
|
|
561
561
|
this.trace(`doSave(${versionId}) - before write()`);
|
|
562
562
|
const lastResolvedFileStat = assertIsDefined(this.lastResolvedFileStat);
|
|
563
563
|
const resolvedTextFileEditorModel = this;
|
|
@@ -27,30 +27,30 @@ const colorIdPattern = '^\\w+[.\\w+]*$';
|
|
|
27
27
|
const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
28
28
|
extensionPoint: 'colors',
|
|
29
29
|
jsonSchema: {
|
|
30
|
-
description: ( localize(
|
|
30
|
+
description: ( localize(632, 'Contributes extension defined themable colors')),
|
|
31
31
|
type: 'array',
|
|
32
32
|
items: {
|
|
33
33
|
type: 'object',
|
|
34
34
|
properties: {
|
|
35
35
|
id: {
|
|
36
36
|
type: 'string',
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(633, 'The identifier of the themable color')),
|
|
38
38
|
pattern: colorIdPattern,
|
|
39
39
|
patternErrorMessage: ( localize(
|
|
40
|
-
|
|
40
|
+
634,
|
|
41
41
|
'Identifiers must only contain letters, digits and dots and can not start with a dot'
|
|
42
42
|
)),
|
|
43
43
|
},
|
|
44
44
|
description: {
|
|
45
45
|
type: 'string',
|
|
46
|
-
description: ( localize(
|
|
46
|
+
description: ( localize(635, 'The description of the themable color')),
|
|
47
47
|
},
|
|
48
48
|
defaults: {
|
|
49
49
|
type: 'object',
|
|
50
50
|
properties: {
|
|
51
51
|
light: {
|
|
52
52
|
description: ( localize(
|
|
53
|
-
|
|
53
|
+
636,
|
|
54
54
|
'The default color for light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.'
|
|
55
55
|
)),
|
|
56
56
|
type: 'string',
|
|
@@ -61,7 +61,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
61
61
|
},
|
|
62
62
|
dark: {
|
|
63
63
|
description: ( localize(
|
|
64
|
-
|
|
64
|
+
637,
|
|
65
65
|
'The default color for dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.'
|
|
66
66
|
)),
|
|
67
67
|
type: 'string',
|
|
@@ -72,7 +72,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
72
72
|
},
|
|
73
73
|
highContrast: {
|
|
74
74
|
description: ( localize(
|
|
75
|
-
|
|
75
|
+
638,
|
|
76
76
|
'The default color for high contrast dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `dark` color is used as default for high contrast dark themes.'
|
|
77
77
|
)),
|
|
78
78
|
type: 'string',
|
|
@@ -83,7 +83,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
83
83
|
},
|
|
84
84
|
highContrastLight: {
|
|
85
85
|
description: ( localize(
|
|
86
|
-
|
|
86
|
+
639,
|
|
87
87
|
'The default color for high contrast light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `light` color is used as default for high contrast light themes.'
|
|
88
88
|
)),
|
|
89
89
|
type: 'string',
|
|
@@ -106,7 +106,7 @@ class ColorExtensionPoint {
|
|
|
106
106
|
const extensionValue = extension.value;
|
|
107
107
|
const collector = extension.collector;
|
|
108
108
|
if (!extensionValue || !Array.isArray(extensionValue)) {
|
|
109
|
-
collector.error(( localize(
|
|
109
|
+
collector.error(( localize(640, "'configuration.colors' must be a array")));
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
112
112
|
const parseColorValue = (s, name) => {
|
|
@@ -119,7 +119,7 @@ class ColorExtensionPoint {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
collector.error(( localize(
|
|
122
|
-
|
|
122
|
+
641,
|
|
123
123
|
"{0} must be either a color value in hex (#RRGGBB[AA] or #RGB[A]) or the identifier of a themable color which provides the default.",
|
|
124
124
|
name
|
|
125
125
|
)));
|
|
@@ -127,19 +127,19 @@ class ColorExtensionPoint {
|
|
|
127
127
|
};
|
|
128
128
|
for (const colorContribution of extensionValue) {
|
|
129
129
|
if (typeof colorContribution.id !== 'string' || colorContribution.id.length === 0) {
|
|
130
|
-
collector.error(( localize(
|
|
130
|
+
collector.error(( localize(642, "'configuration.colors.id' must be defined and can not be empty")));
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
if (!colorContribution.id.match(colorIdPattern)) {
|
|
134
134
|
collector.error(( localize(
|
|
135
|
-
|
|
135
|
+
643,
|
|
136
136
|
"'configuration.colors.id' must only contain letters, digits and dots and can not start with a dot"
|
|
137
137
|
)));
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
140
|
if (typeof colorContribution.description !== 'string' || colorContribution.id.length === 0) {
|
|
141
141
|
collector.error(( localize(
|
|
142
|
-
|
|
142
|
+
644,
|
|
143
143
|
"'configuration.colors.description' must be defined and can not be empty"
|
|
144
144
|
)));
|
|
145
145
|
return;
|
|
@@ -147,21 +147,21 @@ class ColorExtensionPoint {
|
|
|
147
147
|
const defaults = colorContribution.defaults;
|
|
148
148
|
if (!defaults || typeof defaults !== 'object' || typeof defaults.light !== 'string' || typeof defaults.dark !== 'string') {
|
|
149
149
|
collector.error(( localize(
|
|
150
|
-
|
|
150
|
+
645,
|
|
151
151
|
"'configuration.colors.defaults' must be defined and must contain 'light' and 'dark'"
|
|
152
152
|
)));
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
155
|
if (defaults.highContrast && typeof defaults.highContrast !== 'string') {
|
|
156
156
|
collector.error(( localize(
|
|
157
|
-
|
|
157
|
+
646,
|
|
158
158
|
"If defined, 'configuration.colors.defaults.highContrast' must be a string."
|
|
159
159
|
)));
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
162
|
if (defaults.highContrastLight && typeof defaults.highContrastLight !== 'string') {
|
|
163
163
|
collector.error(( localize(
|
|
164
|
-
|
|
164
|
+
647,
|
|
165
165
|
"If defined, 'configuration.colors.defaults.highContrastLight' must be a string."
|
|
166
166
|
)));
|
|
167
167
|
return;
|
|
@@ -197,11 +197,11 @@ class ColorDataRenderer extends Disposable {
|
|
|
197
197
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
198
198
|
}
|
|
199
199
|
const headers = [
|
|
200
|
-
( localize(
|
|
201
|
-
( localize(
|
|
202
|
-
( localize(
|
|
203
|
-
( localize(
|
|
204
|
-
( localize(
|
|
200
|
+
( localize(648, "ID")),
|
|
201
|
+
( localize(649, "Description")),
|
|
202
|
+
( localize(650, "Dark Default")),
|
|
203
|
+
( localize(651, "Light Default")),
|
|
204
|
+
( localize(652, "High Contrast Default")),
|
|
205
205
|
];
|
|
206
206
|
const toColor = (colorReference) => colorReference[0] === '#' ? ( (Color.fromHex(colorReference))) : undefined;
|
|
207
207
|
const rows = ( (colors.sort((a, b) => a.id.localeCompare(b.id))
|
|
@@ -225,7 +225,7 @@ class ColorDataRenderer extends Disposable {
|
|
|
225
225
|
}
|
|
226
226
|
( (Registry.as(Extensions$1.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
227
227
|
id: 'colors',
|
|
228
|
-
label: ( localize(
|
|
228
|
+
label: ( localize(653, "Colors")),
|
|
229
229
|
access: {
|
|
230
230
|
canToggle: false
|
|
231
231
|
},
|
|
@@ -607,13 +607,13 @@ async function _loadColorTheme(extensionResourceLoaderService, themeLocation, re
|
|
|
607
607
|
const contentValue = parse(content, errors);
|
|
608
608
|
if (errors.length > 0) {
|
|
609
609
|
return Promise.reject(( (new Error(( localize(
|
|
610
|
-
|
|
610
|
+
6919,
|
|
611
611
|
"Problems parsing JSON theme file: {0}",
|
|
612
612
|
( (errors.map(e => getParseErrorMessage(e.error)))).join(', ')
|
|
613
613
|
))))));
|
|
614
614
|
}
|
|
615
615
|
else if (getNodeType(contentValue) !== 'object') {
|
|
616
|
-
return Promise.reject(( (new Error(( localize(
|
|
616
|
+
return Promise.reject(( (new Error(( localize(6920, "Invalid format for JSON theme file: Object expected."))))));
|
|
617
617
|
}
|
|
618
618
|
if (contentValue.include) {
|
|
619
619
|
await _loadColorTheme(extensionResourceLoaderService, joinPath(dirname(themeLocation), contentValue.include), result);
|
|
@@ -627,7 +627,7 @@ async function _loadColorTheme(extensionResourceLoaderService, themeLocation, re
|
|
|
627
627
|
if (colors) {
|
|
628
628
|
if (typeof colors !== 'object') {
|
|
629
629
|
return Promise.reject(( (new Error(( localize(
|
|
630
|
-
|
|
630
|
+
6921,
|
|
631
631
|
"Problem parsing color theme file: {0}. Property 'colors' is not of type 'object'.",
|
|
632
632
|
(themeLocation.toString())
|
|
633
633
|
))))));
|
|
@@ -652,7 +652,7 @@ async function _loadColorTheme(extensionResourceLoaderService, themeLocation, re
|
|
|
652
652
|
}
|
|
653
653
|
else {
|
|
654
654
|
return Promise.reject(( (new Error(( localize(
|
|
655
|
-
|
|
655
|
+
6922,
|
|
656
656
|
"Problem parsing color theme file: {0}. Property 'tokenColors' should be either an array specifying colors or a path to a TextMate theme file",
|
|
657
657
|
(themeLocation.toString())
|
|
658
658
|
))))));
|
|
@@ -669,7 +669,7 @@ async function _loadColorTheme(extensionResourceLoaderService, themeLocation, re
|
|
|
669
669
|
}
|
|
670
670
|
catch (e) {
|
|
671
671
|
return Promise.reject(( (new Error(( localize(
|
|
672
|
-
|
|
672
|
+
6923,
|
|
673
673
|
"Problem parsing color theme file: {0}. Property 'semanticTokenColors' contains a invalid selector",
|
|
674
674
|
(themeLocation.toString())
|
|
675
675
|
))))));
|
|
@@ -687,17 +687,17 @@ function _loadSyntaxTokens(extensionResourceLoaderService, themeLocation, result
|
|
|
687
687
|
const contentValue = parse$1(content);
|
|
688
688
|
const settings = contentValue.settings;
|
|
689
689
|
if (!Array.isArray(settings)) {
|
|
690
|
-
return Promise.reject(( (new Error(( localize(
|
|
690
|
+
return Promise.reject(( (new Error(( localize(6924, "Problem parsing tmTheme file: {0}. 'settings' is not array."))))));
|
|
691
691
|
}
|
|
692
692
|
convertSettings(settings, result);
|
|
693
693
|
return Promise.resolve(null);
|
|
694
694
|
}
|
|
695
695
|
catch (e) {
|
|
696
|
-
return Promise.reject(( (new Error(( localize(
|
|
696
|
+
return Promise.reject(( (new Error(( localize(6925, "Problems parsing tmTheme file: {0}", e.message))))));
|
|
697
697
|
}
|
|
698
698
|
}, error => {
|
|
699
699
|
return Promise.reject(( (new Error(( localize(
|
|
700
|
-
|
|
700
|
+
6926,
|
|
701
701
|
"Problems loading tmTheme file {0}: {1}",
|
|
702
702
|
(themeLocation.toString()),
|
|
703
703
|
error.message
|