@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
|
@@ -2,8 +2,8 @@ import { localize } from '../../../../nls.js';
|
|
|
2
2
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
3
3
|
|
|
4
4
|
const WorkspaceTrustContext = {
|
|
5
|
-
IsEnabled: ( (new RawContextKey('isWorkspaceTrustEnabled', false, ( localize(
|
|
6
|
-
IsTrusted: ( (new RawContextKey('isWorkspaceTrusted', false, ( localize(
|
|
5
|
+
IsEnabled: ( (new RawContextKey('isWorkspaceTrustEnabled', false, ( localize(6371, "Whether the workspace trust feature is enabled."))))),
|
|
6
|
+
IsTrusted: ( (new RawContextKey('isWorkspaceTrusted', false, ( localize(6372, "Whether the current workspace has been trusted by the user.")))))
|
|
7
7
|
};
|
|
8
8
|
const MANAGE_TRUST_COMMAND_ID = 'workbench.trust.manage';
|
|
9
9
|
|
|
@@ -70,14 +70,14 @@ let AuthenticationService = class AuthenticationService extends Disposable {
|
|
|
70
70
|
}
|
|
71
71
|
registerDeclaredAuthenticationProvider(provider) {
|
|
72
72
|
if (isFalsyOrWhitespace(provider.id)) {
|
|
73
|
-
throw ( new Error(localize(
|
|
73
|
+
throw ( new Error(localize(2154, 'An authentication contribution must specify an id.')));
|
|
74
74
|
}
|
|
75
75
|
if (isFalsyOrWhitespace(provider.label)) {
|
|
76
|
-
throw ( new Error(localize(
|
|
76
|
+
throw ( new Error(localize(2155, 'An authentication contribution must specify a label.')));
|
|
77
77
|
}
|
|
78
78
|
if (( this.declaredProviders.some(p => p.id === provider.id))) {
|
|
79
79
|
throw ( new Error(localize(
|
|
80
|
-
|
|
80
|
+
2156,
|
|
81
81
|
"This authentication id '{0}' has already been registered",
|
|
82
82
|
provider.id
|
|
83
83
|
)));
|
|
@@ -91,7 +91,7 @@ let AuxiliaryWindow = class AuxiliaryWindow extends BaseWindow {
|
|
|
91
91
|
preventUnload(e) {
|
|
92
92
|
e.preventDefault();
|
|
93
93
|
e.returnValue = ( localize(
|
|
94
|
-
|
|
94
|
+
4229,
|
|
95
95
|
"Changes that you made may not be saved. Please check press 'Cancel' and try again."
|
|
96
96
|
));
|
|
97
97
|
}
|
|
@@ -150,7 +150,7 @@ let BrowserAuxiliaryWindowService = class BrowserAuxiliaryWindowService extends
|
|
|
150
150
|
mark('code/auxiliaryWindow/willOpen');
|
|
151
151
|
const targetWindow = await this.openWindow(options);
|
|
152
152
|
if (!targetWindow) {
|
|
153
|
-
throw ( (new Error(localize(
|
|
153
|
+
throw ( (new Error(localize(4230, "Unable to open a new window."))));
|
|
154
154
|
}
|
|
155
155
|
const resolvedWindowId = await this.resolveWindowId(targetWindow);
|
|
156
156
|
ensureCodeWindow(targetWindow, resolvedWindowId);
|
|
@@ -224,16 +224,16 @@ let BrowserAuxiliaryWindowService = class BrowserAuxiliaryWindowService extends
|
|
|
224
224
|
return (await this.dialogService.prompt({
|
|
225
225
|
type: Severity$1.Warning,
|
|
226
226
|
message: ( localize(
|
|
227
|
-
|
|
227
|
+
4231,
|
|
228
228
|
"The browser interrupted the opening of a new window. Press 'Retry' to try again."
|
|
229
229
|
)),
|
|
230
230
|
detail: ( localize(
|
|
231
|
-
|
|
231
|
+
4232,
|
|
232
232
|
"To avoid this problem in the future, please ensure to allow popups for this website."
|
|
233
233
|
)),
|
|
234
234
|
buttons: [
|
|
235
235
|
{
|
|
236
|
-
label: ( localize(
|
|
236
|
+
label: ( localize(4233, "&&Retry")),
|
|
237
237
|
run: () => this.openWindow(options)
|
|
238
238
|
}
|
|
239
239
|
],
|
package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { localize } from '../../../../nls.js';
|
|
2
2
|
|
|
3
3
|
const idDescription = ( localize(
|
|
4
|
-
|
|
4
|
+
10720,
|
|
5
5
|
"The input's id is used to associate an input with a variable of the form ${input:id}."
|
|
6
6
|
));
|
|
7
|
-
const typeDescription = ( localize(
|
|
8
|
-
const descriptionDescription = ( localize(
|
|
9
|
-
const defaultDescription = ( localize(
|
|
7
|
+
const typeDescription = ( localize(10721, "The type of user input prompt to use."));
|
|
8
|
+
const descriptionDescription = ( localize(10722, "The description is shown when the user is prompted for input."));
|
|
9
|
+
const defaultDescription = ( localize(10723, "The default value for the input."));
|
|
10
10
|
const inputsSchema = {
|
|
11
11
|
definitions: {
|
|
12
12
|
inputs: {
|
|
13
13
|
type: 'array',
|
|
14
14
|
description: ( localize(
|
|
15
|
-
|
|
15
|
+
10724,
|
|
16
16
|
'User inputs. Used for defining user input prompts, such as free string input or a choice from several options.'
|
|
17
17
|
)),
|
|
18
18
|
items: {
|
|
@@ -32,7 +32,7 @@ const inputsSchema = {
|
|
|
32
32
|
enum: ['promptString'],
|
|
33
33
|
enumDescriptions: [
|
|
34
34
|
( localize(
|
|
35
|
-
|
|
35
|
+
10725,
|
|
36
36
|
"The 'promptString' type opens an input box to ask the user for input."
|
|
37
37
|
)),
|
|
38
38
|
]
|
|
@@ -48,7 +48,7 @@ const inputsSchema = {
|
|
|
48
48
|
password: {
|
|
49
49
|
type: 'boolean',
|
|
50
50
|
description: ( localize(
|
|
51
|
-
|
|
51
|
+
10726,
|
|
52
52
|
"Controls if a password input is shown. Password input hides the typed text."
|
|
53
53
|
)),
|
|
54
54
|
},
|
|
@@ -68,7 +68,7 @@ const inputsSchema = {
|
|
|
68
68
|
description: typeDescription,
|
|
69
69
|
enum: ['pickString'],
|
|
70
70
|
enumDescriptions: [
|
|
71
|
-
( localize(
|
|
71
|
+
( localize(10727, "The 'pickString' type shows a selection list.")),
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
74
|
description: {
|
|
@@ -81,7 +81,7 @@ const inputsSchema = {
|
|
|
81
81
|
},
|
|
82
82
|
options: {
|
|
83
83
|
type: 'array',
|
|
84
|
-
description: ( localize(
|
|
84
|
+
description: ( localize(10728, "An array of strings that defines the options for a quick pick.")),
|
|
85
85
|
items: {
|
|
86
86
|
oneOf: [
|
|
87
87
|
{
|
|
@@ -94,11 +94,11 @@ const inputsSchema = {
|
|
|
94
94
|
properties: {
|
|
95
95
|
label: {
|
|
96
96
|
type: 'string',
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(10729, "Label for the option."))
|
|
98
98
|
},
|
|
99
99
|
value: {
|
|
100
100
|
type: 'string',
|
|
101
|
-
description: ( localize(
|
|
101
|
+
description: ( localize(10730, "Value for the option."))
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -121,26 +121,26 @@ const inputsSchema = {
|
|
|
121
121
|
description: typeDescription,
|
|
122
122
|
enum: ['command'],
|
|
123
123
|
enumDescriptions: [
|
|
124
|
-
( localize(
|
|
124
|
+
( localize(10731, "The 'command' type executes a command.")),
|
|
125
125
|
]
|
|
126
126
|
},
|
|
127
127
|
command: {
|
|
128
128
|
type: 'string',
|
|
129
|
-
description: ( localize(
|
|
129
|
+
description: ( localize(10732, "The command to execute for this input variable."))
|
|
130
130
|
},
|
|
131
131
|
args: {
|
|
132
132
|
oneOf: [
|
|
133
133
|
{
|
|
134
134
|
type: 'object',
|
|
135
|
-
description: ( localize(
|
|
135
|
+
description: ( localize(10733, "Optional arguments passed to the command."))
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
type: 'array',
|
|
139
|
-
description: ( localize(
|
|
139
|
+
description: ( localize(10733, "Optional arguments passed to the command."))
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'string',
|
|
143
|
-
description: ( localize(
|
|
143
|
+
description: ( localize(10733, "Optional arguments passed to the command."))
|
|
144
144
|
}
|
|
145
145
|
]
|
|
146
146
|
}
|
package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js
CHANGED
|
@@ -4,7 +4,7 @@ function applyDeprecatedVariableMessage(schema) {
|
|
|
4
4
|
schema.pattern = schema.pattern || '^(?!.*\\$\\{(env|config|command)\\.)';
|
|
5
5
|
schema.patternErrorMessage = schema.patternErrorMessage ||
|
|
6
6
|
( localize(
|
|
7
|
-
|
|
7
|
+
10719,
|
|
8
8
|
"'env.', 'config.' and 'command.' are deprecated, use 'env:', 'config:' and 'command:' instead."
|
|
9
9
|
));
|
|
10
10
|
}
|
|
@@ -136,7 +136,7 @@ class AbstractVariableResolverService {
|
|
|
136
136
|
}
|
|
137
137
|
throw ( new VariableError(
|
|
138
138
|
variableKind,
|
|
139
|
-
localize(
|
|
139
|
+
localize(3870, "Variable {0} can not be resolved. Please open an editor.", match)
|
|
140
140
|
));
|
|
141
141
|
};
|
|
142
142
|
const getFolderPathForFile = (variableKind) => {
|
|
@@ -148,7 +148,7 @@ class AbstractVariableResolverService {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
throw ( new VariableError(variableKind, localize(
|
|
151
|
-
|
|
151
|
+
3871,
|
|
152
152
|
"Variable {0}: can not find workspace folder of '{1}'.",
|
|
153
153
|
match,
|
|
154
154
|
basename(filePath)
|
|
@@ -161,7 +161,7 @@ class AbstractVariableResolverService {
|
|
|
161
161
|
return folder;
|
|
162
162
|
}
|
|
163
163
|
throw ( new VariableError(variableKind, localize(
|
|
164
|
-
|
|
164
|
+
3872,
|
|
165
165
|
"Variable {0} can not be resolved. No such folder '{1}'.",
|
|
166
166
|
match,
|
|
167
167
|
argument
|
|
@@ -172,14 +172,14 @@ class AbstractVariableResolverService {
|
|
|
172
172
|
}
|
|
173
173
|
if (this._context.getWorkspaceFolderCount() > 1) {
|
|
174
174
|
throw ( new VariableError(variableKind, localize(
|
|
175
|
-
|
|
175
|
+
3873,
|
|
176
176
|
"Variable {0} can not be resolved in a multi folder workspace. Scope this variable using ':' and a workspace folder name.",
|
|
177
177
|
match
|
|
178
178
|
)));
|
|
179
179
|
}
|
|
180
180
|
throw ( new VariableError(
|
|
181
181
|
variableKind,
|
|
182
|
-
localize(
|
|
182
|
+
localize(3874, "Variable {0} can not be resolved. Please open a folder.", match)
|
|
183
183
|
));
|
|
184
184
|
};
|
|
185
185
|
switch (variable) {
|
|
@@ -194,7 +194,7 @@ class AbstractVariableResolverService {
|
|
|
194
194
|
return '';
|
|
195
195
|
}
|
|
196
196
|
throw ( new VariableError(VariableKind.Env, localize(
|
|
197
|
-
|
|
197
|
+
3875,
|
|
198
198
|
"Variable {0} can not be resolved because no environment variable name is given.",
|
|
199
199
|
match
|
|
200
200
|
)));
|
|
@@ -203,7 +203,7 @@ class AbstractVariableResolverService {
|
|
|
203
203
|
const config = this._context.getConfigurationValue(folderUri, argument);
|
|
204
204
|
if (isUndefinedOrNull(config)) {
|
|
205
205
|
throw ( new VariableError(VariableKind.Config, localize(
|
|
206
|
-
|
|
206
|
+
3876,
|
|
207
207
|
"Variable {0} can not be resolved because setting '{1}' not found.",
|
|
208
208
|
match,
|
|
209
209
|
argument
|
|
@@ -211,7 +211,7 @@ class AbstractVariableResolverService {
|
|
|
211
211
|
}
|
|
212
212
|
if (isObject(config)) {
|
|
213
213
|
throw ( new VariableError(VariableKind.Config, localize(
|
|
214
|
-
|
|
214
|
+
3877,
|
|
215
215
|
"Variable {0} can not be resolved because '{1}' is a structured value.",
|
|
216
216
|
match,
|
|
217
217
|
argument
|
|
@@ -220,7 +220,7 @@ class AbstractVariableResolverService {
|
|
|
220
220
|
return config;
|
|
221
221
|
}
|
|
222
222
|
throw ( new VariableError(VariableKind.Config, localize(
|
|
223
|
-
|
|
223
|
+
3878,
|
|
224
224
|
"Variable {0} can not be resolved because no settings name is given.",
|
|
225
225
|
match
|
|
226
226
|
)));
|
|
@@ -233,7 +233,7 @@ class AbstractVariableResolverService {
|
|
|
233
233
|
const ext = await this._context.getExtension(argument);
|
|
234
234
|
if (!ext) {
|
|
235
235
|
throw ( new VariableError(VariableKind.ExtensionInstallFolder, localize(
|
|
236
|
-
|
|
236
|
+
3879,
|
|
237
237
|
"Variable {0} can not be resolved because the extension {1} is not installed.",
|
|
238
238
|
match,
|
|
239
239
|
argument
|
|
@@ -242,7 +242,7 @@ class AbstractVariableResolverService {
|
|
|
242
242
|
return this.fsPath(ext.extensionLocation);
|
|
243
243
|
}
|
|
244
244
|
throw ( new VariableError(VariableKind.ExtensionInstallFolder, localize(
|
|
245
|
-
|
|
245
|
+
3880,
|
|
246
246
|
"Variable {0} can not be resolved because no extension name is given.",
|
|
247
247
|
match
|
|
248
248
|
)));
|
|
@@ -261,7 +261,7 @@ class AbstractVariableResolverService {
|
|
|
261
261
|
return environment.userHome;
|
|
262
262
|
}
|
|
263
263
|
throw ( new VariableError(VariableKind.UserHome, localize(
|
|
264
|
-
|
|
264
|
+
3881,
|
|
265
265
|
"Variable {0} can not be resolved. UserHome path is not defined",
|
|
266
266
|
match
|
|
267
267
|
)));
|
|
@@ -272,7 +272,7 @@ class AbstractVariableResolverService {
|
|
|
272
272
|
return lineNumber;
|
|
273
273
|
}
|
|
274
274
|
throw ( new VariableError(VariableKind.LineNumber, localize(
|
|
275
|
-
|
|
275
|
+
3882,
|
|
276
276
|
"Variable {0} can not be resolved. Make sure to have a line selected in the active editor.",
|
|
277
277
|
match
|
|
278
278
|
)));
|
|
@@ -283,7 +283,7 @@ class AbstractVariableResolverService {
|
|
|
283
283
|
return selectedText;
|
|
284
284
|
}
|
|
285
285
|
throw ( new VariableError(VariableKind.SelectedText, localize(
|
|
286
|
-
|
|
286
|
+
3883,
|
|
287
287
|
"Variable {0} can not be resolved. Make sure to have some text selected in the active editor.",
|
|
288
288
|
match
|
|
289
289
|
)));
|
|
@@ -355,7 +355,7 @@ class AbstractVariableResolverService {
|
|
|
355
355
|
return v;
|
|
356
356
|
}
|
|
357
357
|
throw ( new VariableError(variableKind, localize(
|
|
358
|
-
|
|
358
|
+
3884,
|
|
359
359
|
"Variable {0} can not be resolved because the command has no value.",
|
|
360
360
|
match
|
|
361
361
|
)));
|
|
@@ -5,7 +5,7 @@ const getDefaultIconPath = () => ( (( (FileAccess.asBrowserUri('vs/workbench/ser
|
|
|
5
5
|
const extensionsConfigurationNodeBase = {
|
|
6
6
|
id: 'extensions',
|
|
7
7
|
order: 30,
|
|
8
|
-
title: ( localize(
|
|
8
|
+
title: ( localize(7268, "Extensions")),
|
|
9
9
|
type: 'object'
|
|
10
10
|
};
|
|
11
11
|
|
|
@@ -70,8 +70,8 @@ let WorkspaceExtensionsConfigService = class WorkspaceExtensionsConfigService ex
|
|
|
70
70
|
const recommendedWorksapceFolders = workspace.folders.filter(workspaceFolder => workspaceFolderExtensionsConfigContents.get(workspaceFolder.uri)?.recommendations?.some(r => r.toLowerCase() === extensionId));
|
|
71
71
|
const isRecommended = isWorkspaceRecommended || recommendedWorksapceFolders.length > 0;
|
|
72
72
|
const workspaceOrFolders = isRecommended
|
|
73
|
-
? await this.pickWorkspaceOrFolders(recommendedWorksapceFolders, isWorkspaceRecommended ? workspace : undefined, ( localize(
|
|
74
|
-
: await this.pickWorkspaceOrFolders(workspace.folders, workspace.configuration ? workspace : undefined, ( localize(
|
|
73
|
+
? await this.pickWorkspaceOrFolders(recommendedWorksapceFolders, isWorkspaceRecommended ? workspace : undefined, ( localize(3942, "Remove extension recommendation from")))
|
|
74
|
+
: await this.pickWorkspaceOrFolders(workspace.folders, workspace.configuration ? workspace : undefined, ( localize(3943, "Add extension recommendation to")));
|
|
75
75
|
for (const workspaceOrWorkspaceFolder of workspaceOrFolders) {
|
|
76
76
|
if (isWorkspace(workspaceOrWorkspaceFolder)) {
|
|
77
77
|
await this.addOrRemoveWorkspaceRecommendation(extensionId, workspaceOrWorkspaceFolder, workspaceExtensionsConfigContent, !isRecommended);
|
|
@@ -93,8 +93,8 @@ let WorkspaceExtensionsConfigService = class WorkspaceExtensionsConfigService ex
|
|
|
93
93
|
const unWantedWorksapceFolders = workspace.folders.filter(workspaceFolder => workspaceFolderExtensionsConfigContents.get(workspaceFolder.uri)?.unwantedRecommendations?.some(r => r === extensionId));
|
|
94
94
|
const isUnwanted = isWorkspaceUnwanted || unWantedWorksapceFolders.length > 0;
|
|
95
95
|
const workspaceOrFolders = isUnwanted
|
|
96
|
-
? await this.pickWorkspaceOrFolders(unWantedWorksapceFolders, isWorkspaceUnwanted ? workspace : undefined, ( localize(
|
|
97
|
-
: await this.pickWorkspaceOrFolders(workspace.folders, workspace.configuration ? workspace : undefined, ( localize(
|
|
96
|
+
? await this.pickWorkspaceOrFolders(unWantedWorksapceFolders, isWorkspaceUnwanted ? workspace : undefined, ( localize(3942, "Remove extension recommendation from")))
|
|
97
|
+
: await this.pickWorkspaceOrFolders(workspace.folders, workspace.configuration ? workspace : undefined, ( localize(3943, "Add extension recommendation to")));
|
|
98
98
|
for (const workspaceOrWorkspaceFolder of workspaceOrFolders) {
|
|
99
99
|
if (isWorkspace(workspaceOrWorkspaceFolder)) {
|
|
100
100
|
await this.addOrRemoveWorkspaceUnwantedRecommendation(extensionId, workspaceOrWorkspaceFolder, workspaceExtensionsConfigContent, !isUnwanted);
|
|
@@ -221,7 +221,7 @@ let WorkspaceExtensionsConfigService = class WorkspaceExtensionsConfigService ex
|
|
|
221
221
|
const folderPicks = ( (workspaceFolders.map(workspaceFolder => {
|
|
222
222
|
return {
|
|
223
223
|
label: workspaceFolder.name,
|
|
224
|
-
description: ( localize(
|
|
224
|
+
description: ( localize(3944, "Workspace Folder")),
|
|
225
225
|
workspaceOrFolder: workspaceFolder,
|
|
226
226
|
iconClasses: getIconClasses(this.modelService, this.languageService, workspaceFolder.uri, FileKind.ROOT_FOLDER)
|
|
227
227
|
};
|
|
@@ -229,7 +229,7 @@ let WorkspaceExtensionsConfigService = class WorkspaceExtensionsConfigService ex
|
|
|
229
229
|
if (workspace) {
|
|
230
230
|
folderPicks.push({ type: 'separator' });
|
|
231
231
|
folderPicks.push({
|
|
232
|
-
label: ( localize(
|
|
232
|
+
label: ( localize(3945, "Workspace")),
|
|
233
233
|
workspaceOrFolder: workspace,
|
|
234
234
|
});
|
|
235
235
|
}
|
package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js
CHANGED
|
@@ -30,26 +30,26 @@ let FilesConfigurationService = class FilesConfigurationService extends Disposab
|
|
|
30
30
|
static { this.DEFAULT_AUTO_SAVE_DELAY = 1000; }
|
|
31
31
|
static { this.READONLY_MESSAGES = {
|
|
32
32
|
providerReadonly: { value: ( localize(
|
|
33
|
-
|
|
33
|
+
773,
|
|
34
34
|
"Editor is read-only because the file system of the file is read-only."
|
|
35
35
|
)), isTrusted: true },
|
|
36
36
|
sessionReadonly: { value: ( localize(
|
|
37
|
-
|
|
37
|
+
774,
|
|
38
38
|
"Editor is read-only because the file was set read-only in this session. [Click here](command:{0}) to set writeable.",
|
|
39
39
|
'workbench.action.files.setActiveEditorWriteableInSession'
|
|
40
40
|
)), isTrusted: true },
|
|
41
41
|
configuredReadonly: { value: ( localize(
|
|
42
|
-
|
|
42
|
+
775,
|
|
43
43
|
"Editor is read-only because the file was set read-only via settings. [Click here](command:{0}) to configure or [toggle for this session](command:{1}).",
|
|
44
44
|
`workbench.action.openSettings?${encodeURIComponent('["files.readonly"]')}`,
|
|
45
45
|
'workbench.action.files.toggleActiveEditorReadonlyInSession'
|
|
46
46
|
)), isTrusted: true },
|
|
47
47
|
fileLocked: { value: ( localize(
|
|
48
|
-
|
|
48
|
+
776,
|
|
49
49
|
"Editor is read-only because of file permissions. [Click here](command:{0}) to set writeable anyway.",
|
|
50
50
|
'workbench.action.files.setActiveEditorWriteableInSession'
|
|
51
51
|
)), isTrusted: true },
|
|
52
|
-
fileReadonly: { value: ( localize(
|
|
52
|
+
fileReadonly: { value: ( localize(777, "Editor is read-only because the file is read-only.")), isTrusted: true }
|
|
53
53
|
}; }
|
|
54
54
|
constructor(contextKeyService, configurationService, contextService, environmentService, uriIdentityService, fileService, markerService, textResourceConfigurationService) {
|
|
55
55
|
super();
|
|
@@ -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;
|