@codingame/monaco-vscode-api 15.0.0 → 15.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/missing-services.js +53 -4
- package/package.json +8 -8
- package/services.js +5 -5
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +2 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +125 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +2 -3
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +2 -3
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +2 -3
- package/vscode/src/vs/editor/common/services/semanticTokensStylingService.js +2 -3
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.d.ts +15 -0
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +93 -0
- package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js +2 -3
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +4 -4
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.d.ts +45 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +215 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.service.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.d.ts +26 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +178 -0
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +1 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/indicatorView.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +18 -18
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- 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/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.d.ts +6 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -22
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.d.ts +67 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +232 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- 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/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +12 -8
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +54 -54
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +255 -13
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +26 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +230 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -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/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +94 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +45 -45
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +22 -23
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- 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/textInputActions.js +6 -6
- 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/editorOptions.d.ts +3 -0
- package/vscode/src/vs/workbench/common/editor/editorOptions.js +52 -0
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +141 -141
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- 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/largeFileOptimizations.js +3 -3
- 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/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- 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/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.d.ts +13 -0
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +87 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +83 -83
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +12 -12
|
@@ -171,16 +171,16 @@ function isValidVersion(_inputVersion, _inputDate, _desiredVersion) {
|
|
|
171
171
|
function validateExtensionManifest(productVersion, productDate, extensionLocation, extensionManifest, extensionIsBuiltin, validateApiVersion) {
|
|
172
172
|
const validations = [];
|
|
173
173
|
if (typeof extensionManifest.publisher !== 'undefined' && typeof extensionManifest.publisher !== 'string') {
|
|
174
|
-
validations.push([Severity$1.Error, ( localize(
|
|
174
|
+
validations.push([Severity$1.Error, ( localize(1773, "property publisher must be of type `string`."))]);
|
|
175
175
|
return validations;
|
|
176
176
|
}
|
|
177
177
|
if (typeof extensionManifest.name !== 'string') {
|
|
178
|
-
validations.push([Severity$1.Error, ( localize(
|
|
178
|
+
validations.push([Severity$1.Error, ( localize(1774, "property `{0}` is mandatory and must be of type `string`", 'name'))]);
|
|
179
179
|
return validations;
|
|
180
180
|
}
|
|
181
181
|
if (typeof extensionManifest.version !== 'string') {
|
|
182
182
|
validations.push([Severity$1.Error, ( localize(
|
|
183
|
-
|
|
183
|
+
1775,
|
|
184
184
|
"property `{0}` is mandatory and must be of type `string`",
|
|
185
185
|
'version'
|
|
186
186
|
))]);
|
|
@@ -188,7 +188,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
188
188
|
}
|
|
189
189
|
if (!extensionManifest.engines) {
|
|
190
190
|
validations.push([Severity$1.Error, ( localize(
|
|
191
|
-
|
|
191
|
+
1776,
|
|
192
192
|
"property `{0}` is mandatory and must be of type `object`",
|
|
193
193
|
'engines'
|
|
194
194
|
))]);
|
|
@@ -196,7 +196,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
196
196
|
}
|
|
197
197
|
if (typeof extensionManifest.engines.vscode !== 'string') {
|
|
198
198
|
validations.push([Severity$1.Error, ( localize(
|
|
199
|
-
|
|
199
|
+
1777,
|
|
200
200
|
"property `{0}` is mandatory and must be of type `string`",
|
|
201
201
|
'engines.vscode'
|
|
202
202
|
))]);
|
|
@@ -205,7 +205,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
205
205
|
if (typeof extensionManifest.extensionDependencies !== 'undefined') {
|
|
206
206
|
if (!isStringArray(extensionManifest.extensionDependencies)) {
|
|
207
207
|
validations.push([Severity$1.Error, ( localize(
|
|
208
|
-
|
|
208
|
+
1778,
|
|
209
209
|
"property `{0}` can be omitted or must be of type `string[]`",
|
|
210
210
|
'extensionDependencies'
|
|
211
211
|
))]);
|
|
@@ -215,7 +215,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
215
215
|
if (typeof extensionManifest.activationEvents !== 'undefined') {
|
|
216
216
|
if (!isStringArray(extensionManifest.activationEvents)) {
|
|
217
217
|
validations.push([Severity$1.Error, ( localize(
|
|
218
|
-
|
|
218
|
+
1779,
|
|
219
219
|
"property `{0}` can be omitted or must be of type `string[]`",
|
|
220
220
|
'activationEvents'
|
|
221
221
|
))]);
|
|
@@ -223,7 +223,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
223
223
|
}
|
|
224
224
|
if (typeof extensionManifest.main === 'undefined' && typeof extensionManifest.browser === 'undefined') {
|
|
225
225
|
validations.push([Severity$1.Error, ( localize(
|
|
226
|
-
|
|
226
|
+
1780,
|
|
227
227
|
"property `{0}` should be omitted if the extension doesn't have a `{1}` or `{2}` property.",
|
|
228
228
|
'activationEvents',
|
|
229
229
|
'main',
|
|
@@ -235,7 +235,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
235
235
|
if (typeof extensionManifest.extensionKind !== 'undefined') {
|
|
236
236
|
if (typeof extensionManifest.main === 'undefined') {
|
|
237
237
|
validations.push([Severity$1.Warning, ( localize(
|
|
238
|
-
|
|
238
|
+
1781,
|
|
239
239
|
"property `{0}` can be defined only if property `main` is also defined.",
|
|
240
240
|
'extensionKind'
|
|
241
241
|
))]);
|
|
@@ -243,14 +243,14 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
243
243
|
}
|
|
244
244
|
if (typeof extensionManifest.main !== 'undefined') {
|
|
245
245
|
if (typeof extensionManifest.main !== 'string') {
|
|
246
|
-
validations.push([Severity$1.Error, ( localize(
|
|
246
|
+
validations.push([Severity$1.Error, ( localize(1782, "property `{0}` can be omitted or must be of type `string`", 'main'))]);
|
|
247
247
|
return validations;
|
|
248
248
|
}
|
|
249
249
|
else {
|
|
250
250
|
const mainLocation = joinPath(extensionLocation, extensionManifest.main);
|
|
251
251
|
if (!isEqualOrParent(mainLocation, extensionLocation)) {
|
|
252
252
|
validations.push([Severity$1.Warning, ( localize(
|
|
253
|
-
|
|
253
|
+
1783,
|
|
254
254
|
"Expected `main` ({0}) to be included inside extension's folder ({1}). This might make the extension non-portable.",
|
|
255
255
|
mainLocation.path,
|
|
256
256
|
extensionLocation.path
|
|
@@ -261,7 +261,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
261
261
|
if (typeof extensionManifest.browser !== 'undefined') {
|
|
262
262
|
if (typeof extensionManifest.browser !== 'string') {
|
|
263
263
|
validations.push([Severity$1.Error, ( localize(
|
|
264
|
-
|
|
264
|
+
1784,
|
|
265
265
|
"property `{0}` can be omitted or must be of type `string`",
|
|
266
266
|
'browser'
|
|
267
267
|
))]);
|
|
@@ -271,7 +271,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
271
271
|
const browserLocation = joinPath(extensionLocation, extensionManifest.browser);
|
|
272
272
|
if (!isEqualOrParent(browserLocation, extensionLocation)) {
|
|
273
273
|
validations.push([Severity$1.Warning, ( localize(
|
|
274
|
-
|
|
274
|
+
1785,
|
|
275
275
|
"Expected `browser` ({0}) to be included inside extension's folder ({1}). This might make the extension non-portable.",
|
|
276
276
|
browserLocation.path,
|
|
277
277
|
extensionLocation.path
|
|
@@ -280,7 +280,7 @@ function validateExtensionManifest(productVersion, productDate, extensionLocatio
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
if (!semverExports.valid(extensionManifest.version)) {
|
|
283
|
-
validations.push([Severity$1.Error, ( localize(
|
|
283
|
+
validations.push([Severity$1.Error, ( localize(1786, "Extension version is not semver compatible."))]);
|
|
284
284
|
return validations;
|
|
285
285
|
}
|
|
286
286
|
const notices = [];
|
|
@@ -330,14 +330,14 @@ function areApiProposalsCompatible(apiProposals, arg1) {
|
|
|
330
330
|
if (notices) {
|
|
331
331
|
if (incompatibleProposals.length === 1) {
|
|
332
332
|
notices.push(( localize(
|
|
333
|
-
|
|
333
|
+
1787,
|
|
334
334
|
"This extension is using the API proposal '{0}' that is not compatible with the current version of VS Code.",
|
|
335
335
|
incompatibleProposals[0]
|
|
336
336
|
)));
|
|
337
337
|
}
|
|
338
338
|
else {
|
|
339
339
|
notices.push(( localize(
|
|
340
|
-
|
|
340
|
+
1788,
|
|
341
341
|
"This extension is using the API proposals {0} and '{1}' that are not compatible with the current version of VS Code.",
|
|
342
342
|
( incompatibleProposals.slice(0, incompatibleProposals.length - 1).map(p => `'${p}'`)).join(', '),
|
|
343
343
|
incompatibleProposals[incompatibleProposals.length - 1]
|
|
@@ -352,7 +352,7 @@ function isVersionValid(currentVersion, date, requestedVersion, notices = []) {
|
|
|
352
352
|
const desiredVersion = normalizeVersion(parseVersion(requestedVersion));
|
|
353
353
|
if (!desiredVersion) {
|
|
354
354
|
notices.push(( localize(
|
|
355
|
-
|
|
355
|
+
1789,
|
|
356
356
|
"Could not parse `engines.vscode` value {0}. Please use, for example: ^1.22.0, ^1.22.x, etc.",
|
|
357
357
|
requestedVersion
|
|
358
358
|
)));
|
|
@@ -361,7 +361,7 @@ function isVersionValid(currentVersion, date, requestedVersion, notices = []) {
|
|
|
361
361
|
if (desiredVersion.majorBase === 0) {
|
|
362
362
|
if (!desiredVersion.majorMustEqual || !desiredVersion.minorMustEqual) {
|
|
363
363
|
notices.push(( localize(
|
|
364
|
-
|
|
364
|
+
1790,
|
|
365
365
|
"Version specified in `engines.vscode` ({0}) is not specific enough. For vscode versions before 1.0.0, please define at a minimum the major and minor desired version. E.g. ^0.10.0, 0.10.x, 0.11.0, etc.",
|
|
366
366
|
requestedVersion
|
|
367
367
|
)));
|
|
@@ -371,7 +371,7 @@ function isVersionValid(currentVersion, date, requestedVersion, notices = []) {
|
|
|
371
371
|
else {
|
|
372
372
|
if (!desiredVersion.majorMustEqual) {
|
|
373
373
|
notices.push(( localize(
|
|
374
|
-
|
|
374
|
+
1791,
|
|
375
375
|
"Version specified in `engines.vscode` ({0}) is not specific enough. For vscode versions after 1.0.0, please define at a minimum the major desired version. E.g. ^1.10.0, 1.10.x, 1.x.x, 2.x.x, etc.",
|
|
376
376
|
requestedVersion
|
|
377
377
|
)));
|
|
@@ -380,7 +380,7 @@ function isVersionValid(currentVersion, date, requestedVersion, notices = []) {
|
|
|
380
380
|
}
|
|
381
381
|
if (!isValidVersion(currentVersion, date, desiredVersion)) {
|
|
382
382
|
notices.push(( localize(
|
|
383
|
-
|
|
383
|
+
1792,
|
|
384
384
|
"Extension is not compatible with Code {0}. Extension requires: {1}.",
|
|
385
385
|
currentVersion,
|
|
386
386
|
requestedVersion
|
|
@@ -206,7 +206,7 @@ class HTMLFileSystemProvider extends Disposable {
|
|
|
206
206
|
await this.delete(from, { recursive: false, useTrash: false, atomic: false });
|
|
207
207
|
}
|
|
208
208
|
else {
|
|
209
|
-
throw this.createFileSystemProviderError(from, ( localize(
|
|
209
|
+
throw this.createFileSystemProviderError(from, ( localize(1793, "Rename is only supported for files.")), FileSystemProviderErrorCode.Unavailable);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
catch (error) {
|
|
@@ -382,7 +382,7 @@ class HTMLFileSystemProvider extends Disposable {
|
|
|
382
382
|
}
|
|
383
383
|
let code = FileSystemProviderErrorCode.Unknown;
|
|
384
384
|
if (error.name === 'NotAllowedError') {
|
|
385
|
-
error = ( new Error(( localize(
|
|
385
|
+
error = ( new Error(( localize(1794, "Insufficient permissions. Please retry and allow the operation."))));
|
|
386
386
|
code = FileSystemProviderErrorCode.Unavailable;
|
|
387
387
|
}
|
|
388
388
|
return createFileSystemProviderError(error, code);
|
|
@@ -105,7 +105,7 @@ function createFileSystemProviderError(error, code) {
|
|
|
105
105
|
}
|
|
106
106
|
function ensureFileSystemProviderError(error) {
|
|
107
107
|
if (!error) {
|
|
108
|
-
return createFileSystemProviderError(( localize(
|
|
108
|
+
return createFileSystemProviderError(( localize(1827, "Unknown Error")), FileSystemProviderErrorCode.Unknown);
|
|
109
109
|
}
|
|
110
110
|
return error;
|
|
111
111
|
}
|
|
@@ -374,18 +374,18 @@ class ByteSize {
|
|
|
374
374
|
size = 0;
|
|
375
375
|
}
|
|
376
376
|
if (size < ByteSize.KB) {
|
|
377
|
-
return localize(
|
|
377
|
+
return localize(1828, "{0}B", size.toFixed(0));
|
|
378
378
|
}
|
|
379
379
|
if (size < ByteSize.MB) {
|
|
380
|
-
return localize(
|
|
380
|
+
return localize(1829, "{0}KB", (size / ByteSize.KB).toFixed(2));
|
|
381
381
|
}
|
|
382
382
|
if (size < ByteSize.GB) {
|
|
383
|
-
return localize(
|
|
383
|
+
return localize(1830, "{0}MB", (size / ByteSize.MB).toFixed(2));
|
|
384
384
|
}
|
|
385
385
|
if (size < ByteSize.TB) {
|
|
386
|
-
return localize(
|
|
386
|
+
return localize(1831, "{0}GB", (size / ByteSize.GB).toFixed(2));
|
|
387
387
|
}
|
|
388
|
-
return localize(
|
|
388
|
+
return localize(1832, "{0}TB", (size / ByteSize.TB).toFixed(2));
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
function getLargeFileConfirmationLimit(arg) {
|
|
@@ -11,7 +11,7 @@ import { localize } from '../../../nls.js';
|
|
|
11
11
|
import { DisposableStore, toDisposable } from '../../../base/common/lifecycle.js';
|
|
12
12
|
import { isActiveElement } from '../../../base/browser/dom.js';
|
|
13
13
|
|
|
14
|
-
const historyNavigationVisible = ( new RawContextKey('suggestWidgetVisible', false, ( localize(
|
|
14
|
+
const historyNavigationVisible = ( new RawContextKey('suggestWidgetVisible', false, ( localize(1834, "Whether suggestion are visible"))));
|
|
15
15
|
const HistoryNavigationWidgetFocusContext = 'historyNavigationWidgetFocus';
|
|
16
16
|
const HistoryNavigationForwardsEnablementContext = 'historyNavigationForwardsEnabled';
|
|
17
17
|
const HistoryNavigationBackwardsEnablementContext = 'historyNavigationBackwardsEnabled';
|
|
@@ -106,7 +106,7 @@ class AbstractKeybindingService extends Disposable {
|
|
|
106
106
|
throw illegalState('impossible');
|
|
107
107
|
case 1:
|
|
108
108
|
this._currentChordStatusMessage = this._notificationService.status(( localize(
|
|
109
|
-
|
|
109
|
+
1835,
|
|
110
110
|
"({0}) was pressed. Waiting for second key of chord...",
|
|
111
111
|
keypressLabel
|
|
112
112
|
)));
|
|
@@ -114,7 +114,7 @@ class AbstractKeybindingService extends Disposable {
|
|
|
114
114
|
default: {
|
|
115
115
|
const fullKeypressLabel = ( this._currentChords.map(({ label }) => label)).join(', ');
|
|
116
116
|
this._currentChordStatusMessage = this._notificationService.status(( localize(
|
|
117
|
-
|
|
117
|
+
1836,
|
|
118
118
|
"({0}) was pressed. Waiting for next key of chord...",
|
|
119
119
|
fullKeypressLabel
|
|
120
120
|
)));
|
|
@@ -219,7 +219,7 @@ class AbstractKeybindingService extends Disposable {
|
|
|
219
219
|
const currentChordsLabel = ( this._currentChords.map(({ label }) => label)).join(', ');
|
|
220
220
|
this._log(`+ Leaving multi-chord mode: Nothing bound to "${currentChordsLabel}, ${keypressLabel}".`);
|
|
221
221
|
this._notificationService.status(( localize(
|
|
222
|
-
|
|
222
|
+
1837,
|
|
223
223
|
"The key combination ({0}, {1}) is not a command.",
|
|
224
224
|
currentChordsLabel,
|
|
225
225
|
keypressLabel
|
|
@@ -243,7 +243,7 @@ class AbstractKeybindingService extends Disposable {
|
|
|
243
243
|
const currentChordsLabel = ( this._currentChords.map(({ label }) => label)).join(', ');
|
|
244
244
|
this._log(`+ Leaving chord mode: Nothing bound to "${currentChordsLabel}, ${keypressLabel}".`);
|
|
245
245
|
this._notificationService.status(( localize(
|
|
246
|
-
|
|
246
|
+
1837,
|
|
247
247
|
"The key combination ({0}, {1}) is not a command.",
|
|
248
248
|
currentChordsLabel,
|
|
249
249
|
keypressLabel
|
|
@@ -948,19 +948,19 @@ const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
|
948
948
|
configurationRegistry.registerConfiguration({
|
|
949
949
|
id: 'workbench',
|
|
950
950
|
order: 7,
|
|
951
|
-
title: ( localize(
|
|
951
|
+
title: ( localize(1845, "Workbench")),
|
|
952
952
|
type: 'object',
|
|
953
953
|
properties: {
|
|
954
954
|
[multiSelectModifierSettingKey]: {
|
|
955
955
|
type: 'string',
|
|
956
956
|
enum: ['ctrlCmd', 'alt'],
|
|
957
957
|
markdownEnumDescriptions: [
|
|
958
|
-
( localize(
|
|
959
|
-
( localize(
|
|
958
|
+
( localize(1846, "Maps to `Control` on Windows and Linux and to `Command` on macOS.")),
|
|
959
|
+
( localize(1847, "Maps to `Alt` on Windows and Linux and to `Option` on macOS."))
|
|
960
960
|
],
|
|
961
961
|
default: 'ctrlCmd',
|
|
962
962
|
description: ( localize(
|
|
963
|
-
|
|
963
|
+
1848,
|
|
964
964
|
"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier."
|
|
965
965
|
))
|
|
966
966
|
},
|
|
@@ -969,7 +969,7 @@ configurationRegistry.registerConfiguration({
|
|
|
969
969
|
enum: ['singleClick', 'doubleClick'],
|
|
970
970
|
default: 'singleClick',
|
|
971
971
|
description: ( localize(
|
|
972
|
-
|
|
972
|
+
1849,
|
|
973
973
|
"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable."
|
|
974
974
|
))
|
|
975
975
|
},
|
|
@@ -977,59 +977,59 @@ configurationRegistry.registerConfiguration({
|
|
|
977
977
|
type: 'boolean',
|
|
978
978
|
default: false,
|
|
979
979
|
description: ( localize(
|
|
980
|
-
|
|
980
|
+
1850,
|
|
981
981
|
"Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication."
|
|
982
982
|
))
|
|
983
983
|
},
|
|
984
984
|
[scrollByPageKey]: {
|
|
985
985
|
type: 'boolean',
|
|
986
986
|
default: false,
|
|
987
|
-
description: ( localize(
|
|
987
|
+
description: ( localize(1851, "Controls whether clicks in the scrollbar scroll page by page."))
|
|
988
988
|
},
|
|
989
989
|
[treeIndentKey]: {
|
|
990
990
|
type: 'number',
|
|
991
991
|
default: 8,
|
|
992
992
|
minimum: 4,
|
|
993
993
|
maximum: 40,
|
|
994
|
-
description: ( localize(
|
|
994
|
+
description: ( localize(1852, "Controls tree indentation in pixels."))
|
|
995
995
|
},
|
|
996
996
|
[treeRenderIndentGuidesKey]: {
|
|
997
997
|
type: 'string',
|
|
998
998
|
enum: ['none', 'onHover', 'always'],
|
|
999
999
|
default: 'onHover',
|
|
1000
|
-
description: ( localize(
|
|
1000
|
+
description: ( localize(1853, "Controls whether the tree should render indent guides."))
|
|
1001
1001
|
},
|
|
1002
1002
|
[listSmoothScrolling]: {
|
|
1003
1003
|
type: 'boolean',
|
|
1004
1004
|
default: false,
|
|
1005
|
-
description: ( localize(
|
|
1005
|
+
description: ( localize(1854, "Controls whether lists and trees have smooth scrolling.")),
|
|
1006
1006
|
},
|
|
1007
1007
|
[mouseWheelScrollSensitivityKey]: {
|
|
1008
1008
|
type: 'number',
|
|
1009
1009
|
default: 1,
|
|
1010
1010
|
markdownDescription: ( localize(
|
|
1011
|
-
|
|
1011
|
+
1855,
|
|
1012
1012
|
"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events."
|
|
1013
1013
|
))
|
|
1014
1014
|
},
|
|
1015
1015
|
[fastScrollSensitivityKey]: {
|
|
1016
1016
|
type: 'number',
|
|
1017
1017
|
default: 5,
|
|
1018
|
-
markdownDescription: ( localize(
|
|
1018
|
+
markdownDescription: ( localize(1856, "Scrolling speed multiplier when pressing `Alt`."))
|
|
1019
1019
|
},
|
|
1020
1020
|
[defaultFindModeSettingKey]: {
|
|
1021
1021
|
type: 'string',
|
|
1022
1022
|
enum: ['highlight', 'filter'],
|
|
1023
1023
|
enumDescriptions: [
|
|
1024
1024
|
( localize(
|
|
1025
|
-
|
|
1025
|
+
1857,
|
|
1026
1026
|
"Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."
|
|
1027
1027
|
)),
|
|
1028
|
-
( localize(
|
|
1028
|
+
( localize(1858, "Filter elements when searching."))
|
|
1029
1029
|
],
|
|
1030
1030
|
default: 'highlight',
|
|
1031
1031
|
description: ( localize(
|
|
1032
|
-
|
|
1032
|
+
1859,
|
|
1033
1033
|
"Controls the default find mode for lists and trees in the workbench."
|
|
1034
1034
|
))
|
|
1035
1035
|
},
|
|
@@ -1038,26 +1038,26 @@ configurationRegistry.registerConfiguration({
|
|
|
1038
1038
|
enum: ['simple', 'highlight', 'filter'],
|
|
1039
1039
|
enumDescriptions: [
|
|
1040
1040
|
( localize(
|
|
1041
|
-
|
|
1041
|
+
1860,
|
|
1042
1042
|
"Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."
|
|
1043
1043
|
)),
|
|
1044
1044
|
( localize(
|
|
1045
|
-
|
|
1045
|
+
1861,
|
|
1046
1046
|
"Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."
|
|
1047
1047
|
)),
|
|
1048
1048
|
( localize(
|
|
1049
|
-
|
|
1049
|
+
1862,
|
|
1050
1050
|
"Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input."
|
|
1051
1051
|
))
|
|
1052
1052
|
],
|
|
1053
1053
|
default: 'highlight',
|
|
1054
1054
|
description: ( localize(
|
|
1055
|
-
|
|
1055
|
+
1863,
|
|
1056
1056
|
"Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."
|
|
1057
1057
|
)),
|
|
1058
1058
|
deprecated: true,
|
|
1059
1059
|
deprecationMessage: ( localize(
|
|
1060
|
-
|
|
1060
|
+
1864,
|
|
1061
1061
|
"Please use 'workbench.list.defaultFindMode' and 'workbench.list.typeNavigationMode' instead."
|
|
1062
1062
|
))
|
|
1063
1063
|
},
|
|
@@ -1065,12 +1065,12 @@ configurationRegistry.registerConfiguration({
|
|
|
1065
1065
|
type: 'string',
|
|
1066
1066
|
enum: ['fuzzy', 'contiguous'],
|
|
1067
1067
|
enumDescriptions: [
|
|
1068
|
-
( localize(
|
|
1069
|
-
( localize(
|
|
1068
|
+
( localize(1865, "Use fuzzy matching when searching.")),
|
|
1069
|
+
( localize(1866, "Use contiguous matching when searching."))
|
|
1070
1070
|
],
|
|
1071
1071
|
default: 'fuzzy',
|
|
1072
1072
|
description: ( localize(
|
|
1073
|
-
|
|
1073
|
+
1867,
|
|
1074
1074
|
"Controls the type of matching used when searching lists and trees in the workbench."
|
|
1075
1075
|
))
|
|
1076
1076
|
},
|
|
@@ -1079,21 +1079,21 @@ configurationRegistry.registerConfiguration({
|
|
|
1079
1079
|
enum: ['singleClick', 'doubleClick'],
|
|
1080
1080
|
default: 'singleClick',
|
|
1081
1081
|
description: ( localize(
|
|
1082
|
-
|
|
1082
|
+
1868,
|
|
1083
1083
|
"Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable."
|
|
1084
1084
|
)),
|
|
1085
1085
|
},
|
|
1086
1086
|
[treeStickyScroll]: {
|
|
1087
1087
|
type: 'boolean',
|
|
1088
1088
|
default: true,
|
|
1089
|
-
description: ( localize(
|
|
1089
|
+
description: ( localize(1869, "Controls whether sticky scrolling is enabled in trees.")),
|
|
1090
1090
|
},
|
|
1091
1091
|
[treeStickyScrollMaxElements]: {
|
|
1092
1092
|
type: 'number',
|
|
1093
1093
|
minimum: 1,
|
|
1094
1094
|
default: 7,
|
|
1095
1095
|
markdownDescription: ( localize(
|
|
1096
|
-
|
|
1096
|
+
1870,
|
|
1097
1097
|
"Controls the number of sticky elements displayed in the tree when {0} is enabled.",
|
|
1098
1098
|
'`#workbench.tree.enableStickyScroll#`'
|
|
1099
1099
|
)),
|
|
@@ -1103,7 +1103,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1103
1103
|
enum: ['automatic', 'trigger'],
|
|
1104
1104
|
default: 'automatic',
|
|
1105
1105
|
markdownDescription: ( localize(
|
|
1106
|
-
|
|
1106
|
+
1871,
|
|
1107
1107
|
"Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run."
|
|
1108
1108
|
)),
|
|
1109
1109
|
}
|
|
@@ -409,12 +409,12 @@ function LogLevelToString(logLevel) {
|
|
|
409
409
|
}
|
|
410
410
|
function LogLevelToLocalizedString(logLevel) {
|
|
411
411
|
switch (logLevel) {
|
|
412
|
-
case LogLevel.Trace: return { original: 'Trace', value: ( localize(
|
|
413
|
-
case LogLevel.Debug: return { original: 'Debug', value: ( localize(
|
|
414
|
-
case LogLevel.Info: return { original: 'Info', value: ( localize(
|
|
415
|
-
case LogLevel.Warning: return { original: 'Warning', value: ( localize(
|
|
416
|
-
case LogLevel.Error: return { original: 'Error', value: ( localize(
|
|
417
|
-
case LogLevel.Off: return { original: 'Off', value: ( localize(
|
|
412
|
+
case LogLevel.Trace: return { original: 'Trace', value: ( localize(1872, "Trace")) };
|
|
413
|
+
case LogLevel.Debug: return { original: 'Debug', value: ( localize(1873, "Debug")) };
|
|
414
|
+
case LogLevel.Info: return { original: 'Info', value: ( localize(1874, "Info")) };
|
|
415
|
+
case LogLevel.Warning: return { original: 'Warning', value: ( localize(1875, "Warning")) };
|
|
416
|
+
case LogLevel.Error: return { original: 'Error', value: ( localize(1876, "Error")) };
|
|
417
|
+
case LogLevel.Off: return { original: 'Off', value: ( localize(1877, "Off")) };
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
function parseLogLevel(logLevel) {
|
|
@@ -20,17 +20,17 @@ var MarkerSeverity;
|
|
|
20
20
|
}
|
|
21
21
|
MarkerSeverity.compare = compare;
|
|
22
22
|
const _displayStrings = Object.create(null);
|
|
23
|
-
_displayStrings[MarkerSeverity.Error] = ( localize(
|
|
24
|
-
_displayStrings[MarkerSeverity.Warning] = ( localize(
|
|
25
|
-
_displayStrings[MarkerSeverity.Info] = ( localize(
|
|
23
|
+
_displayStrings[MarkerSeverity.Error] = ( localize(1878, "Error"));
|
|
24
|
+
_displayStrings[MarkerSeverity.Warning] = ( localize(1879, "Warning"));
|
|
25
|
+
_displayStrings[MarkerSeverity.Info] = ( localize(1880, "Info"));
|
|
26
26
|
function toString(a) {
|
|
27
27
|
return _displayStrings[a] || '';
|
|
28
28
|
}
|
|
29
29
|
MarkerSeverity.toString = toString;
|
|
30
30
|
const _displayStringsPlural = Object.create(null);
|
|
31
|
-
_displayStringsPlural[MarkerSeverity.Error] = ( localize(
|
|
32
|
-
_displayStringsPlural[MarkerSeverity.Warning] = ( localize(
|
|
33
|
-
_displayStringsPlural[MarkerSeverity.Info] = ( localize(
|
|
31
|
+
_displayStringsPlural[MarkerSeverity.Error] = ( localize(1881, "Errors"));
|
|
32
|
+
_displayStringsPlural[MarkerSeverity.Warning] = ( localize(1882, "Warnings"));
|
|
33
|
+
_displayStringsPlural[MarkerSeverity.Info] = ( localize(1883, "Infos"));
|
|
34
34
|
function toStringPlural(a) {
|
|
35
35
|
return _displayStringsPlural[a] || '';
|
|
36
36
|
}
|
|
@@ -22,25 +22,25 @@ import { IHoverService } from '../../hover/browser/hover.service.js';
|
|
|
22
22
|
import { RawContextKey, ContextKeyExpr } from '../../contextkey/common/contextkey.js';
|
|
23
23
|
|
|
24
24
|
const inQuickInputContextKeyValue = 'inQuickInput';
|
|
25
|
-
const InQuickInputContextKey = ( new RawContextKey(inQuickInputContextKeyValue, false, ( localize(
|
|
25
|
+
const InQuickInputContextKey = ( new RawContextKey(inQuickInputContextKeyValue, false, ( localize(1891, "Whether keyboard focus is inside the quick input control"))));
|
|
26
26
|
const inQuickInputContext = ( ContextKeyExpr.has(inQuickInputContextKeyValue));
|
|
27
27
|
const quickInputAlignmentContextKeyValue = 'quickInputAlignment';
|
|
28
|
-
const QuickInputAlignmentContextKey = ( new RawContextKey(quickInputAlignmentContextKeyValue, 'top', ( localize(
|
|
28
|
+
const QuickInputAlignmentContextKey = ( new RawContextKey(quickInputAlignmentContextKeyValue, 'top', ( localize(1892, "The alignment of the quick input"))));
|
|
29
29
|
const quickInputTypeContextKeyValue = 'quickInputType';
|
|
30
|
-
const QuickInputTypeContextKey = ( new RawContextKey(quickInputTypeContextKeyValue, undefined, ( localize(
|
|
30
|
+
const QuickInputTypeContextKey = ( new RawContextKey(quickInputTypeContextKeyValue, undefined, ( localize(1893, "The type of the currently visible quick input"))));
|
|
31
31
|
const endOfQuickInputBoxContextKeyValue = 'cursorAtEndOfQuickInputBox';
|
|
32
32
|
const EndOfQuickInputBoxContextKey = ( new RawContextKey(endOfQuickInputBoxContextKeyValue, false, ( localize(
|
|
33
|
-
|
|
33
|
+
1894,
|
|
34
34
|
"Whether the cursor in the quick input is at the end of the input box"
|
|
35
35
|
))));
|
|
36
36
|
const endOfQuickInputBoxContext = ( ContextKeyExpr.has(endOfQuickInputBoxContextKeyValue));
|
|
37
37
|
const backButton = {
|
|
38
38
|
iconClass: ThemeIcon.asClassName(Codicon.quickInputBack),
|
|
39
|
-
tooltip: ( localize(
|
|
39
|
+
tooltip: ( localize(1895, "Back")),
|
|
40
40
|
handle: -1
|
|
41
41
|
};
|
|
42
42
|
class QuickInput extends Disposable {
|
|
43
|
-
static { this.noPromptMessage = ( localize(
|
|
43
|
+
static { this.noPromptMessage = ( localize(1896, "Press 'Enter' to confirm your input or 'Escape' to cancel")); }
|
|
44
44
|
constructor(ui) {
|
|
45
45
|
super();
|
|
46
46
|
this.ui = ui;
|
|
@@ -317,7 +317,7 @@ class QuickInput extends Disposable {
|
|
|
317
317
|
}
|
|
318
318
|
getSteps() {
|
|
319
319
|
if (this.step && this.totalSteps) {
|
|
320
|
-
return localize(
|
|
320
|
+
return localize(1897, "{0}/{1}", this.step, this.totalSteps);
|
|
321
321
|
}
|
|
322
322
|
if (this.step) {
|
|
323
323
|
return String(this.step);
|
|
@@ -390,7 +390,7 @@ class QuickPick extends QuickInput {
|
|
|
390
390
|
this.onDidTriggerItemButton = this.onDidTriggerItemButtonEmitter.event;
|
|
391
391
|
this.onDidTriggerSeparatorButton = this.onDidTriggerSeparatorButtonEmitter.event;
|
|
392
392
|
}
|
|
393
|
-
static { this.DEFAULT_ARIA_LABEL = ( localize(
|
|
393
|
+
static { this.DEFAULT_ARIA_LABEL = ( localize(1898, "Type to narrow down results.")); }
|
|
394
394
|
get quickNavigate() {
|
|
395
395
|
return this._quickNavigate;
|
|
396
396
|
}
|
|
@@ -570,7 +570,7 @@ class QuickPick extends QuickInput {
|
|
|
570
570
|
this.update();
|
|
571
571
|
}
|
|
572
572
|
get okLabel() {
|
|
573
|
-
return this._okLabel ?? ( localize(
|
|
573
|
+
return this._okLabel ?? ( localize(1899, "OK"));
|
|
574
574
|
}
|
|
575
575
|
set okLabel(okLabel) {
|
|
576
576
|
this._okLabel = okLabel;
|
|
@@ -901,7 +901,7 @@ class InputBox extends QuickInput {
|
|
|
901
901
|
set prompt(prompt) {
|
|
902
902
|
this._prompt = prompt;
|
|
903
903
|
this.noValidationMessage = prompt
|
|
904
|
-
? ( localize(
|
|
904
|
+
? ( localize(1900, "{0} (Press 'Enter' to confirm or 'Escape' to cancel)", prompt))
|
|
905
905
|
: QuickInput.noPromptMessage;
|
|
906
906
|
this.update();
|
|
907
907
|
}
|
|
@@ -13,7 +13,7 @@ const defaultCommandAndKeybindingRule = {
|
|
|
13
13
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
14
14
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals(quickInputTypeContextKeyValue, QuickInputType.QuickPick)), inQuickInputContext)),
|
|
15
15
|
metadata: { description: ( localize(
|
|
16
|
-
|
|
16
|
+
1901,
|
|
17
17
|
"Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well."
|
|
18
18
|
)) }
|
|
19
19
|
};
|
|
@@ -68,11 +68,11 @@ registerQuickPickCommandAndKeybindingRule({ id: 'quickInput.last', primary: ctrl
|
|
|
68
68
|
registerQuickPickCommandAndKeybindingRule({ id: 'quickInput.next', primary: KeyCode.DownArrow, handler: focusHandler(QuickPickFocus.Next) }, { withCtrlMod: true });
|
|
69
69
|
registerQuickPickCommandAndKeybindingRule({ id: 'quickInput.previous', primary: KeyCode.UpArrow, handler: focusHandler(QuickPickFocus.Previous) }, { withCtrlMod: true });
|
|
70
70
|
const nextSeparatorFallbackDesc = ( localize(
|
|
71
|
-
|
|
71
|
+
1902,
|
|
72
72
|
"If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."
|
|
73
73
|
));
|
|
74
74
|
const prevSeparatorFallbackDesc = ( localize(
|
|
75
|
-
|
|
75
|
+
1903,
|
|
76
76
|
"If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator."
|
|
77
77
|
));
|
|
78
78
|
if (isMacintosh) {
|
|
@@ -106,7 +106,7 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
106
106
|
const headerContainer = append(container, $('.quick-input-header'));
|
|
107
107
|
const checkAll = append(headerContainer, $('input.quick-input-check-all'));
|
|
108
108
|
checkAll.type = 'checkbox';
|
|
109
|
-
checkAll.setAttribute('aria-label', ( localize(
|
|
109
|
+
checkAll.setAttribute('aria-label', ( localize(1904, "Toggle all checkboxes")));
|
|
110
110
|
this._register(addStandardDisposableListener(checkAll, EventType.CHANGE, e => {
|
|
111
111
|
const checked = checkAll.checked;
|
|
112
112
|
list.setAllVisibleChecked(checked);
|
|
@@ -124,21 +124,21 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
124
124
|
const visibleCountContainer = append(filterContainer, $('.quick-input-visible-count'));
|
|
125
125
|
visibleCountContainer.setAttribute('aria-live', 'polite');
|
|
126
126
|
visibleCountContainer.setAttribute('aria-atomic', 'true');
|
|
127
|
-
const visibleCount = this._register(( new CountBadge(visibleCountContainer, { countFormat: ( localize(
|
|
127
|
+
const visibleCount = this._register(( new CountBadge(visibleCountContainer, { countFormat: ( localize(1905, "{0} Results")) }, this.styles.countBadge)));
|
|
128
128
|
const countContainer = append(filterContainer, $('.quick-input-count'));
|
|
129
129
|
countContainer.setAttribute('aria-live', 'polite');
|
|
130
|
-
const count = this._register(( new CountBadge(countContainer, { countFormat: ( localize(
|
|
130
|
+
const count = this._register(( new CountBadge(countContainer, { countFormat: ( localize(1906, "{0} Selected")) }, this.styles.countBadge)));
|
|
131
131
|
const inlineActionBar = this._register(( new ActionBar(headerContainer, { hoverDelegate: this.options.hoverDelegate })));
|
|
132
132
|
inlineActionBar.domNode.classList.add('quick-input-inline-action-bar');
|
|
133
133
|
const okContainer = append(headerContainer, $('.quick-input-action'));
|
|
134
134
|
const ok = this._register(( new Button(okContainer, this.styles.button)));
|
|
135
|
-
ok.label = ( localize(
|
|
135
|
+
ok.label = ( localize(1907, "OK"));
|
|
136
136
|
this._register(ok.onDidClick(e => {
|
|
137
137
|
this.onDidAcceptEmitter.fire();
|
|
138
138
|
}));
|
|
139
139
|
const customButtonContainer = append(headerContainer, $('.quick-input-action'));
|
|
140
140
|
const customButton = this._register(( new Button(customButtonContainer, { ...this.styles.button, supportIcons: true })));
|
|
141
|
-
customButton.label = ( localize(
|
|
141
|
+
customButton.label = ( localize(1908, "Custom"));
|
|
142
142
|
this._register(customButton.onDidClick(e => {
|
|
143
143
|
this.onDidCustomEmitter.fire();
|
|
144
144
|
}));
|
|
@@ -564,7 +564,7 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
564
564
|
ui.ignoreFocusOut = false;
|
|
565
565
|
ui.inputBox.toggles = undefined;
|
|
566
566
|
const backKeybindingLabel = this.options.backKeybindingLabel();
|
|
567
|
-
backButton.tooltip = backKeybindingLabel ? ( localize(
|
|
567
|
+
backButton.tooltip = backKeybindingLabel ? ( localize(1909, "Back ({0})", backKeybindingLabel)) : ( localize(1910, "Back"));
|
|
568
568
|
ui.container.style.display = '';
|
|
569
569
|
this.updateLayout();
|
|
570
570
|
this.dndController?.layoutContainer();
|
|
@@ -186,7 +186,7 @@ class QuickInputItemDelegate {
|
|
|
186
186
|
}
|
|
187
187
|
class QuickInputAccessibilityProvider {
|
|
188
188
|
getWidgetAriaLabel() {
|
|
189
|
-
return localize(
|
|
189
|
+
return localize(1911, "Quick Input");
|
|
190
190
|
}
|
|
191
191
|
getAriaLabel(element) {
|
|
192
192
|
return element.separator?.label
|