@codingame/monaco-vscode-api 11.0.2 → 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/extensions.d.ts +1 -1
- package/package.json +8 -8
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.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/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/common/config/editorOptions.js +364 -364
- 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/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/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- 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/localizedStrings.js +3 -3
- 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/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- 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/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/window.js +16 -16
- 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/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/views.js +4 -4
- 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/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/extensionsActions.js +173 -173
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
- 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/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +8 -8
- 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/inlineChat/browser/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- 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/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +60 -60
- 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/anythingQuickAccess.js +10 -10
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +10 -10
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +8 -8
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- 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/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/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/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/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
|
@@ -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'
|
|
@@ -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
|
|
@@ -15,13 +15,13 @@ const iconIdPattern = `^${ThemeIcon.iconNameSegment}(-${ThemeIcon.iconNameSegmen
|
|
|
15
15
|
const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
16
16
|
extensionPoint: 'icons',
|
|
17
17
|
jsonSchema: {
|
|
18
|
-
description: ( localize(
|
|
18
|
+
description: ( localize(654, 'Contributes extension defined themable icons')),
|
|
19
19
|
type: 'object',
|
|
20
20
|
propertyNames: {
|
|
21
21
|
pattern: iconIdPattern,
|
|
22
|
-
description: ( localize(
|
|
22
|
+
description: ( localize(655, 'The identifier of the themable icon')),
|
|
23
23
|
patternErrorMessage: ( localize(
|
|
24
|
-
|
|
24
|
+
656,
|
|
25
25
|
'Identifiers can only contain letters, digits and minuses and need to consist of at least two segments in the form `component-iconname`.'
|
|
26
26
|
)),
|
|
27
27
|
},
|
|
@@ -30,7 +30,7 @@ const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
30
30
|
properties: {
|
|
31
31
|
description: {
|
|
32
32
|
type: 'string',
|
|
33
|
-
description: ( localize(
|
|
33
|
+
description: ( localize(657, 'The description of the themable icon')),
|
|
34
34
|
},
|
|
35
35
|
default: {
|
|
36
36
|
anyOf: [
|
|
@@ -39,11 +39,11 @@ const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
39
39
|
type: 'object',
|
|
40
40
|
properties: {
|
|
41
41
|
fontPath: {
|
|
42
|
-
description: ( localize(
|
|
42
|
+
description: ( localize(658, 'The path of the icon font that defines the icon.')),
|
|
43
43
|
type: 'string'
|
|
44
44
|
},
|
|
45
45
|
fontCharacter: {
|
|
46
|
-
description: ( localize(
|
|
46
|
+
description: ( localize(659, 'The character for the icon in the icon font.')),
|
|
47
47
|
type: 'string'
|
|
48
48
|
}
|
|
49
49
|
},
|
|
@@ -52,7 +52,7 @@ const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
description: ( localize(
|
|
55
|
-
|
|
55
|
+
660,
|
|
56
56
|
'The default of the icon. Either a reference to an extisting ThemeIcon or an icon in an icon font.'
|
|
57
57
|
)),
|
|
58
58
|
}
|
|
@@ -71,7 +71,7 @@ class IconExtensionPoint {
|
|
|
71
71
|
const collector = extension.collector;
|
|
72
72
|
if (!extensionValue || typeof extensionValue !== 'object') {
|
|
73
73
|
collector.error(( localize(
|
|
74
|
-
|
|
74
|
+
661,
|
|
75
75
|
"'configuration.icons' must be an object with the icon names as properties."
|
|
76
76
|
)));
|
|
77
77
|
return;
|
|
@@ -79,7 +79,7 @@ class IconExtensionPoint {
|
|
|
79
79
|
for (const id in extensionValue) {
|
|
80
80
|
if (!id.match(iconIdPattern)) {
|
|
81
81
|
collector.error(( localize(
|
|
82
|
-
|
|
82
|
+
662,
|
|
83
83
|
"'configuration.icons' keys represent the icon id and can only contain letter, digits and minuses. They need to consist of at least two segments in the form `component-iconname`."
|
|
84
84
|
)));
|
|
85
85
|
return;
|
|
@@ -87,7 +87,7 @@ class IconExtensionPoint {
|
|
|
87
87
|
const iconContribution = extensionValue[id];
|
|
88
88
|
if (typeof iconContribution.description !== 'string' || iconContribution.description.length === 0) {
|
|
89
89
|
collector.error(( localize(
|
|
90
|
-
|
|
90
|
+
663,
|
|
91
91
|
"'configuration.icons.description' must be defined and can not be empty"
|
|
92
92
|
)));
|
|
93
93
|
return;
|
|
@@ -101,7 +101,7 @@ class IconExtensionPoint {
|
|
|
101
101
|
const format = formatMap[fileExt];
|
|
102
102
|
if (!format) {
|
|
103
103
|
collector.warn(( localize(
|
|
104
|
-
|
|
104
|
+
664,
|
|
105
105
|
"Expected `contributes.icons.default.fontPath` to have file extension 'woff', woff2' or 'ttf', is '{0}'.",
|
|
106
106
|
fileExt
|
|
107
107
|
)));
|
|
@@ -111,7 +111,7 @@ class IconExtensionPoint {
|
|
|
111
111
|
const iconFontLocation = joinPath(extensionLocation, defaultIcon.fontPath);
|
|
112
112
|
if (!isEqualOrParent(iconFontLocation, extensionLocation)) {
|
|
113
113
|
collector.warn(( localize(
|
|
114
|
-
|
|
114
|
+
665,
|
|
115
115
|
"Expected `contributes.icons.default.fontPath` ({0}) to be included inside extension's folder ({0}).",
|
|
116
116
|
iconFontLocation.path,
|
|
117
117
|
extensionLocation.path
|
|
@@ -130,7 +130,7 @@ class IconExtensionPoint {
|
|
|
130
130
|
}
|
|
131
131
|
else {
|
|
132
132
|
collector.error(( localize(
|
|
133
|
-
|
|
133
|
+
666,
|
|
134
134
|
"'configuration.icons.default' must be either a reference to the id of an other theme icon (string) or a icon definition (object) with properties `fontPath` and `fontCharacter`."
|
|
135
135
|
)));
|
|
136
136
|
}
|
|
@@ -225,7 +225,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
225
225
|
}
|
|
226
226
|
getFocusedViewName() {
|
|
227
227
|
const viewId = this.contextKeyService.getContextKeyValue(FocusedViewContext.key) ?? '';
|
|
228
|
-
const textEditorFocused = this.editorService.activeTextEditorControl?.hasTextFocus() ? ( localize(
|
|
228
|
+
const textEditorFocused = this.editorService.activeTextEditorControl?.hasTextFocus() ? ( localize(4234, "Text Editor")) : undefined;
|
|
229
229
|
return this.viewDescriptorService.getViewDescriptorById(( (viewId.toString())))?.name?.value ?? textEditorFocused ?? '';
|
|
230
230
|
}
|
|
231
231
|
async openView(id, focus) {
|
|
@@ -326,10 +326,10 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
326
326
|
const localizedTitle = typeof title === 'string' ? title : title.value;
|
|
327
327
|
const originalTitle = typeof title === 'string' ? title : title.original;
|
|
328
328
|
if (viewContainerLocation === 0 ) {
|
|
329
|
-
return { value: ( localize(
|
|
329
|
+
return { value: ( localize(4235, "Show {0}", localizedTitle)), original: `Show ${originalTitle}` };
|
|
330
330
|
}
|
|
331
331
|
else {
|
|
332
|
-
return { value: ( localize(
|
|
332
|
+
return { value: ( localize(4236, "Toggle {0}", localizedTitle)), original: `Toggle ${originalTitle}` };
|
|
333
333
|
}
|
|
334
334
|
},
|
|
335
335
|
category: Categories.View,
|
|
@@ -397,10 +397,10 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
397
397
|
const localizedTitle = typeof title === 'string' ? title : title.value;
|
|
398
398
|
const originalTitle = typeof title === 'string' ? title : title.original;
|
|
399
399
|
if (viewContainerLocation === 0 ) {
|
|
400
|
-
return { value: ( localize(
|
|
400
|
+
return { value: ( localize(4235, "Show {0}", localizedTitle)), original: `Show ${originalTitle}` };
|
|
401
401
|
}
|
|
402
402
|
else {
|
|
403
|
-
return { value: ( localize(
|
|
403
|
+
return { value: ( localize(4236, "Toggle {0}", localizedTitle)), original: `Toggle ${originalTitle}` };
|
|
404
404
|
}
|
|
405
405
|
},
|
|
406
406
|
category: Categories.View,
|
|
@@ -451,7 +451,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
451
451
|
registerFocusViewAction(viewDescriptor, category) {
|
|
452
452
|
return registerAction2(class FocusViewAction extends Action2 {
|
|
453
453
|
constructor() {
|
|
454
|
-
const title = ( localize2(
|
|
454
|
+
const title = ( localize2(4237, "Focus on {0} View", viewDescriptor.name.value));
|
|
455
455
|
super({
|
|
456
456
|
id: viewDescriptor.focusCommand ? viewDescriptor.focusCommand.id : `${viewDescriptor.id}.focus`,
|
|
457
457
|
title,
|
|
@@ -499,7 +499,7 @@ let ViewsService = class ViewsService extends Disposable {
|
|
|
499
499
|
constructor() {
|
|
500
500
|
super({
|
|
501
501
|
id: `${viewDescriptor.id}.resetViewLocation`,
|
|
502
|
-
title: ( localize2(
|
|
502
|
+
title: ( localize2(4238, "Reset Location")),
|
|
503
503
|
menu: [{
|
|
504
504
|
id: MenuId.ViewTitleContext,
|
|
505
505
|
when: ( (ContextKeyExpr.or( (ContextKeyExpr.and(
|