@codingame/monaco-vscode-api 10.0.0 → 10.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/api.js +1 -1
- package/missing-services.js +2 -2
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- 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/dropOrPasteInto/browser/copyPasteContribution.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- 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/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- 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/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/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- 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/wordHighlighter.js +45 -26
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.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/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
- 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/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
- 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/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- 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/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.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/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +11 -11
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +34 -34
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- 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/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditingService.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImagePaste.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +21 -21
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +13 -4
- 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/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/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
- 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/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/browser/debugExpressionRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- 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 +11 -9
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- 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/inlineChatActions.js +19 -19
- 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/inlineChat/common/inlineChat.js +41 -41
- 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/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- 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/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
- 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/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +28 -28
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +1 -0
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/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/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -11,7 +11,7 @@ const taskDefinitionSchema = {
|
|
|
11
11
|
type: {
|
|
12
12
|
type: 'string',
|
|
13
13
|
description: ( localize(
|
|
14
|
-
|
|
14
|
+
6642,
|
|
15
15
|
'The actual task type. Please note that types starting with a \'$\' are reserved for internal usage.'
|
|
16
16
|
))
|
|
17
17
|
},
|
|
@@ -23,7 +23,7 @@ const taskDefinitionSchema = {
|
|
|
23
23
|
},
|
|
24
24
|
properties: {
|
|
25
25
|
type: 'object',
|
|
26
|
-
description: ( localize(
|
|
26
|
+
description: ( localize(6643, 'Additional properties of the task type')),
|
|
27
27
|
additionalProperties: {
|
|
28
28
|
$ref: 'http://json-schema.org/draft-07/schema#'
|
|
29
29
|
}
|
|
@@ -31,7 +31,7 @@ const taskDefinitionSchema = {
|
|
|
31
31
|
when: {
|
|
32
32
|
type: 'string',
|
|
33
33
|
markdownDescription: ( localize(
|
|
34
|
-
|
|
34
|
+
6644,
|
|
35
35
|
'Condition which must be true to enable this type of task. Consider using `shellExecutionSupported`, `processExecutionSupported`, and `customExecutionSupported` as appropriate for this task definition. See the [API documentation](https://code.visualstudio.com/api/extension-guides/task-provider#when-clause) for more information.'
|
|
36
36
|
)),
|
|
37
37
|
default: ''
|
|
@@ -47,7 +47,7 @@ var Configuration;
|
|
|
47
47
|
const taskType = isString(value.type) ? value.type : undefined;
|
|
48
48
|
if (!taskType || taskType.length === 0) {
|
|
49
49
|
messageCollector.error(( localize(
|
|
50
|
-
|
|
50
|
+
6645,
|
|
51
51
|
'The task type configuration is missing the required \'taskType\' property'
|
|
52
52
|
)));
|
|
53
53
|
return undefined;
|
|
@@ -79,7 +79,7 @@ const taskDefinitionsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
jsonSchema: {
|
|
82
|
-
description: ( localize(
|
|
82
|
+
description: ( localize(6646, 'Contributes task kinds')),
|
|
83
83
|
type: 'array',
|
|
84
84
|
items: taskDefinitionSchema
|
|
85
85
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { localize } from '../../../../nls.js';
|
|
2
2
|
import { RawContextKey, ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
|
|
3
3
|
const CustomExecutionSupportedContext = ( (new RawContextKey('customExecutionSupported', false, ( localize(
|
|
4
|
-
|
|
4
|
+
6549,
|
|
5
5
|
"Whether CustomExecution tasks are supported. Consider using in the when clause of a \'taskDefinition\' contribution."
|
|
6
6
|
)))));
|
|
7
7
|
const ShellExecutionSupportedContext = ( (new RawContextKey('shellExecutionSupported', false, ( localize(
|
|
8
|
-
|
|
8
|
+
6550,
|
|
9
9
|
"Whether ShellExecution tasks are supported. Consider using in the when clause of a \'taskDefinition\' contribution."
|
|
10
10
|
)))));
|
|
11
|
-
const TaskCommandsRegistered = ( (new RawContextKey('taskCommandsRegistered', false, ( localize(
|
|
11
|
+
const TaskCommandsRegistered = ( (new RawContextKey('taskCommandsRegistered', false, ( localize(6551, "Whether the task commands have been registered yet")))));
|
|
12
12
|
const ProcessExecutionSupportedContext = ( (new RawContextKey('processExecutionSupported', false, ( localize(
|
|
13
|
-
|
|
13
|
+
6552,
|
|
14
14
|
"Whether ProcessExecution tasks are supported. Consider using in the when clause of a \'taskDefinition\' contribution."
|
|
15
15
|
)))));
|
|
16
|
-
const ServerlessWebContext = ( (new RawContextKey('serverlessWebContext', false, ( localize(
|
|
16
|
+
const ServerlessWebContext = ( (new RawContextKey('serverlessWebContext', false, ( localize(6553, "True when in the web with no remote authority.")))));
|
|
17
17
|
const TaskExecutionSupportedContext = ( (ContextKeyExpr.or(
|
|
18
18
|
(ContextKeyExpr.and(ShellExecutionSupportedContext, ProcessExecutionSupportedContext)),
|
|
19
19
|
CustomExecutionSupportedContext
|
|
@@ -5,8 +5,8 @@ import { deepClone } from '../../../../base/common/objects.js';
|
|
|
5
5
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
6
6
|
import { TaskDefinitionRegistry } from './taskDefinitionRegistry.js';
|
|
7
7
|
const USER_TASKS_GROUP_KEY = 'settings';
|
|
8
|
-
const TASK_RUNNING_STATE = ( (new RawContextKey('taskRunning', false, ( localize(
|
|
9
|
-
const TASKS_CATEGORY = ( localize2(
|
|
8
|
+
const TASK_RUNNING_STATE = ( (new RawContextKey('taskRunning', false, ( localize(4130, "Whether a task is currently running.")))));
|
|
9
|
+
const TASKS_CATEGORY = ( localize2(4131, "Tasks"));
|
|
10
10
|
var ShellQuoting;
|
|
11
11
|
( ((function(ShellQuoting) {
|
|
12
12
|
ShellQuoting[ShellQuoting["Escape"] = 1] = "Escape";
|
|
@@ -704,7 +704,7 @@ var TaskDefinition;
|
|
|
704
704
|
break;
|
|
705
705
|
default:
|
|
706
706
|
reporter.error(( localize(
|
|
707
|
-
|
|
707
|
+
4132,
|
|
708
708
|
'Error: the task identifier \'{0}\' is missing the required property \'{1}\'. The task identifier will be ignored.',
|
|
709
709
|
JSON.stringify(external, undefined, 0),
|
|
710
710
|
property
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { localize, localize2 } from '../../../../nls.js';
|
|
2
2
|
const terminalStrings = {
|
|
3
|
-
terminal: ( localize(
|
|
4
|
-
new: ( localize(
|
|
5
|
-
doNotShowAgain: ( localize(
|
|
6
|
-
currentSessionCategory: ( localize(
|
|
7
|
-
previousSessionCategory: ( localize(
|
|
8
|
-
typeTask: ( localize(
|
|
9
|
-
typeLocal: ( localize(
|
|
10
|
-
actionCategory: ( localize2(
|
|
11
|
-
focus: ( localize2(
|
|
12
|
-
focusAndHideAccessibleBuffer: ( localize2(
|
|
3
|
+
terminal: ( localize(9176, "Terminal")),
|
|
4
|
+
new: ( localize(9177, "New Terminal")),
|
|
5
|
+
doNotShowAgain: ( localize(9178, 'Do Not Show Again')),
|
|
6
|
+
currentSessionCategory: ( localize(9179, 'current session')),
|
|
7
|
+
previousSessionCategory: ( localize(9180, 'previous session')),
|
|
8
|
+
typeTask: ( localize(9181, "Task")),
|
|
9
|
+
typeLocal: ( localize(9182, "Local")),
|
|
10
|
+
actionCategory: ( localize2(9183, "Terminal")),
|
|
11
|
+
focus: ( localize2(9184, "Focus Terminal")),
|
|
12
|
+
focusAndHideAccessibleBuffer: ( localize2(9185, "Focus Terminal and Hide Accessible Buffer")),
|
|
13
13
|
kill: {
|
|
14
|
-
...( localize2(
|
|
15
|
-
short: ( localize(
|
|
14
|
+
...( localize2(9186, "Kill Terminal")),
|
|
15
|
+
short: ( localize(9187, "Kill")),
|
|
16
16
|
},
|
|
17
|
-
moveToEditor: ( localize2(
|
|
18
|
-
moveIntoNewWindow: ( localize2(
|
|
19
|
-
moveToTerminalPanel: ( localize2(
|
|
20
|
-
changeIcon: ( localize2(
|
|
21
|
-
changeColor: ( localize2(
|
|
17
|
+
moveToEditor: ( localize2(9188, "Move Terminal into Editor Area")),
|
|
18
|
+
moveIntoNewWindow: ( localize2(9189, "Move Terminal into New Window")),
|
|
19
|
+
moveToTerminalPanel: ( localize2(9190, "Move Terminal into Panel")),
|
|
20
|
+
changeIcon: ( localize2(9191, "Change Icon...")),
|
|
21
|
+
changeColor: ( localize2(9192, "Change Color...")),
|
|
22
22
|
split: {
|
|
23
|
-
...( localize2(
|
|
24
|
-
short: ( localize(
|
|
23
|
+
...( localize2(9193, "Split Terminal")),
|
|
24
|
+
short: ( localize(9194, "Split")),
|
|
25
25
|
},
|
|
26
|
-
unsplit: ( localize2(
|
|
27
|
-
rename: ( localize2(
|
|
28
|
-
toggleSizeToContentWidth: ( localize2(
|
|
29
|
-
focusHover: ( localize2(
|
|
30
|
-
sendSequence: ( localize2(
|
|
31
|
-
newWithCwd: ( localize2(
|
|
32
|
-
renameWithArgs: ( localize2(
|
|
33
|
-
scrollToPreviousCommand: ( localize2(
|
|
34
|
-
scrollToNextCommand: ( localize2(
|
|
26
|
+
unsplit: ( localize2(9195, "Unsplit Terminal")),
|
|
27
|
+
rename: ( localize2(9196, "Rename...")),
|
|
28
|
+
toggleSizeToContentWidth: ( localize2(9197, "Toggle Size to Content Width")),
|
|
29
|
+
focusHover: ( localize2(9198, "Focus Hover")),
|
|
30
|
+
sendSequence: ( localize2(9199, "Send Custom Sequence To Terminal")),
|
|
31
|
+
newWithCwd: ( localize2(9200, "Create New Terminal Starting in a Custom Working Directory")),
|
|
32
|
+
renameWithArgs: ( localize2(9201, "Rename the Currently Active Terminal")),
|
|
33
|
+
scrollToPreviousCommand: ( localize2(9202, "Scroll To Previous Command")),
|
|
34
|
+
scrollToNextCommand: ( localize2(9203, "Scroll To Next Command"))
|
|
35
35
|
};
|
|
36
36
|
export { terminalStrings };
|
package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js
CHANGED
|
@@ -142,6 +142,7 @@ let TerminalChatController = class TerminalChatController extends Disposable {
|
|
|
142
142
|
await this.reveal();
|
|
143
143
|
}
|
|
144
144
|
assertType(this._model.value);
|
|
145
|
+
this._messages.fire(32 );
|
|
145
146
|
const lastInput = this._terminalChatWidget.value.inlineChatWidget.value;
|
|
146
147
|
if (!lastInput) {
|
|
147
148
|
return;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { localize } from '../../../../nls.js';
|
|
2
2
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
3
3
|
const WorkspaceTrustContext = {
|
|
4
|
-
IsEnabled: ( (new RawContextKey('isWorkspaceTrustEnabled', false, ( localize(
|
|
5
|
-
IsTrusted: ( (new RawContextKey('isWorkspaceTrusted', false, ( localize(
|
|
4
|
+
IsEnabled: ( (new RawContextKey('isWorkspaceTrustEnabled', false, ( localize(6356, "Whether the workspace trust feature is enabled."))))),
|
|
5
|
+
IsTrusted: ( (new RawContextKey('isWorkspaceTrusted', false, ( localize(6357, "Whether the current workspace has been trusted by the user.")))))
|
|
6
6
|
};
|
|
7
7
|
const MANAGE_TRUST_COMMAND_ID = 'workbench.trust.manage';
|
|
8
8
|
export { MANAGE_TRUST_COMMAND_ID, WorkspaceTrustContext };
|
package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { localize } from '../../../../nls.js';
|
|
2
2
|
const idDescription = ( localize(
|
|
3
|
-
|
|
3
|
+
10639,
|
|
4
4
|
"The input's id is used to associate an input with a variable of the form ${input:id}."
|
|
5
5
|
));
|
|
6
|
-
const typeDescription = ( localize(
|
|
7
|
-
const descriptionDescription = ( localize(
|
|
8
|
-
const defaultDescription = ( localize(
|
|
6
|
+
const typeDescription = ( localize(10640, "The type of user input prompt to use."));
|
|
7
|
+
const descriptionDescription = ( localize(10641, "The description is shown when the user is prompted for input."));
|
|
8
|
+
const defaultDescription = ( localize(10642, "The default value for the input."));
|
|
9
9
|
const inputsSchema = {
|
|
10
10
|
definitions: {
|
|
11
11
|
inputs: {
|
|
12
12
|
type: 'array',
|
|
13
13
|
description: ( localize(
|
|
14
|
-
|
|
14
|
+
10643,
|
|
15
15
|
'User inputs. Used for defining user input prompts, such as free string input or a choice from several options.'
|
|
16
16
|
)),
|
|
17
17
|
items: {
|
|
@@ -31,7 +31,7 @@ const inputsSchema = {
|
|
|
31
31
|
enum: ['promptString'],
|
|
32
32
|
enumDescriptions: [
|
|
33
33
|
( localize(
|
|
34
|
-
|
|
34
|
+
10644,
|
|
35
35
|
"The 'promptString' type opens an input box to ask the user for input."
|
|
36
36
|
)),
|
|
37
37
|
]
|
|
@@ -47,7 +47,7 @@ const inputsSchema = {
|
|
|
47
47
|
password: {
|
|
48
48
|
type: 'boolean',
|
|
49
49
|
description: ( localize(
|
|
50
|
-
|
|
50
|
+
10645,
|
|
51
51
|
"Controls if a password input is shown. Password input hides the typed text."
|
|
52
52
|
)),
|
|
53
53
|
},
|
|
@@ -67,7 +67,7 @@ const inputsSchema = {
|
|
|
67
67
|
description: typeDescription,
|
|
68
68
|
enum: ['pickString'],
|
|
69
69
|
enumDescriptions: [
|
|
70
|
-
( localize(
|
|
70
|
+
( localize(10646, "The 'pickString' type shows a selection list.")),
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
73
|
description: {
|
|
@@ -80,7 +80,7 @@ const inputsSchema = {
|
|
|
80
80
|
},
|
|
81
81
|
options: {
|
|
82
82
|
type: 'array',
|
|
83
|
-
description: ( localize(
|
|
83
|
+
description: ( localize(10647, "An array of strings that defines the options for a quick pick.")),
|
|
84
84
|
items: {
|
|
85
85
|
oneOf: [
|
|
86
86
|
{
|
|
@@ -93,11 +93,11 @@ const inputsSchema = {
|
|
|
93
93
|
properties: {
|
|
94
94
|
label: {
|
|
95
95
|
type: 'string',
|
|
96
|
-
description: ( localize(
|
|
96
|
+
description: ( localize(10648, "Label for the option."))
|
|
97
97
|
},
|
|
98
98
|
value: {
|
|
99
99
|
type: 'string',
|
|
100
|
-
description: ( localize(
|
|
100
|
+
description: ( localize(10649, "Value for the option."))
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -120,26 +120,26 @@ const inputsSchema = {
|
|
|
120
120
|
description: typeDescription,
|
|
121
121
|
enum: ['command'],
|
|
122
122
|
enumDescriptions: [
|
|
123
|
-
( localize(
|
|
123
|
+
( localize(10650, "The 'command' type executes a command.")),
|
|
124
124
|
]
|
|
125
125
|
},
|
|
126
126
|
command: {
|
|
127
127
|
type: 'string',
|
|
128
|
-
description: ( localize(
|
|
128
|
+
description: ( localize(10651, "The command to execute for this input variable."))
|
|
129
129
|
},
|
|
130
130
|
args: {
|
|
131
131
|
oneOf: [
|
|
132
132
|
{
|
|
133
133
|
type: 'object',
|
|
134
|
-
description: ( localize(
|
|
134
|
+
description: ( localize(10652, "Optional arguments passed to the command."))
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'array',
|
|
138
|
-
description: ( localize(
|
|
138
|
+
description: ( localize(10652, "Optional arguments passed to the command."))
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
type: 'string',
|
|
142
|
-
description: ( localize(
|
|
142
|
+
description: ( localize(10652, "Optional arguments passed to the command."))
|
|
143
143
|
}
|
|
144
144
|
]
|
|
145
145
|
}
|
package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js
CHANGED
|
@@ -3,7 +3,7 @@ function applyDeprecatedVariableMessage(schema) {
|
|
|
3
3
|
schema.pattern = schema.pattern || '^(?!.*\\$\\{(env|config|command)\\.)';
|
|
4
4
|
schema.patternErrorMessage = schema.patternErrorMessage ||
|
|
5
5
|
( localize(
|
|
6
|
-
|
|
6
|
+
10638,
|
|
7
7
|
"'env.', 'config.' and 'command.' are deprecated, use 'env:', 'config:' and 'command:' instead."
|
|
8
8
|
));
|
|
9
9
|
}
|
|
@@ -14,7 +14,7 @@ const editorAssociationsConfigurationNode = {
|
|
|
14
14
|
'workbench.editorAssociations': {
|
|
15
15
|
type: 'object',
|
|
16
16
|
markdownDescription: ( localize(
|
|
17
|
-
|
|
17
|
+
5709,
|
|
18
18
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
19
19
|
)),
|
|
20
20
|
additionalProperties: {
|
|
@@ -69,8 +69,8 @@ let WorkspaceExtensionsConfigService = class WorkspaceExtensionsConfigService ex
|
|
|
69
69
|
const recommendedWorksapceFolders = workspace.folders.filter(workspaceFolder => workspaceFolderExtensionsConfigContents.get(workspaceFolder.uri)?.recommendations?.some(r => r.toLowerCase() === extensionId));
|
|
70
70
|
const isRecommended = isWorkspaceRecommended || recommendedWorksapceFolders.length > 0;
|
|
71
71
|
const workspaceOrFolders = isRecommended
|
|
72
|
-
? await this.pickWorkspaceOrFolders(recommendedWorksapceFolders, isWorkspaceRecommended ? workspace : undefined, ( localize(
|
|
73
|
-
: await this.pickWorkspaceOrFolders(workspace.folders, workspace.configuration ? workspace : undefined, ( localize(
|
|
72
|
+
? await this.pickWorkspaceOrFolders(recommendedWorksapceFolders, isWorkspaceRecommended ? workspace : undefined, ( localize(3925, "Remove extension recommendation from")))
|
|
73
|
+
: await this.pickWorkspaceOrFolders(workspace.folders, workspace.configuration ? workspace : undefined, ( localize(3926, "Add extension recommendation to")));
|
|
74
74
|
for (const workspaceOrWorkspaceFolder of workspaceOrFolders) {
|
|
75
75
|
if (isWorkspace(workspaceOrWorkspaceFolder)) {
|
|
76
76
|
await this.addOrRemoveWorkspaceRecommendation(extensionId, workspaceOrWorkspaceFolder, workspaceExtensionsConfigContent, !isRecommended);
|
|
@@ -92,8 +92,8 @@ let WorkspaceExtensionsConfigService = class WorkspaceExtensionsConfigService ex
|
|
|
92
92
|
const unWantedWorksapceFolders = workspace.folders.filter(workspaceFolder => workspaceFolderExtensionsConfigContents.get(workspaceFolder.uri)?.unwantedRecommendations?.some(r => r === extensionId));
|
|
93
93
|
const isUnwanted = isWorkspaceUnwanted || unWantedWorksapceFolders.length > 0;
|
|
94
94
|
const workspaceOrFolders = isUnwanted
|
|
95
|
-
? await this.pickWorkspaceOrFolders(unWantedWorksapceFolders, isWorkspaceUnwanted ? workspace : undefined, ( localize(
|
|
96
|
-
: await this.pickWorkspaceOrFolders(workspace.folders, workspace.configuration ? workspace : undefined, ( localize(
|
|
95
|
+
? await this.pickWorkspaceOrFolders(unWantedWorksapceFolders, isWorkspaceUnwanted ? workspace : undefined, ( localize(3925, "Remove extension recommendation from")))
|
|
96
|
+
: await this.pickWorkspaceOrFolders(workspace.folders, workspace.configuration ? workspace : undefined, ( localize(3926, "Add extension recommendation to")));
|
|
97
97
|
for (const workspaceOrWorkspaceFolder of workspaceOrFolders) {
|
|
98
98
|
if (isWorkspace(workspaceOrWorkspaceFolder)) {
|
|
99
99
|
await this.addOrRemoveWorkspaceUnwantedRecommendation(extensionId, workspaceOrWorkspaceFolder, workspaceExtensionsConfigContent, !isUnwanted);
|
|
@@ -220,7 +220,7 @@ let WorkspaceExtensionsConfigService = class WorkspaceExtensionsConfigService ex
|
|
|
220
220
|
const folderPicks = ( (workspaceFolders.map(workspaceFolder => {
|
|
221
221
|
return {
|
|
222
222
|
label: workspaceFolder.name,
|
|
223
|
-
description: ( localize(
|
|
223
|
+
description: ( localize(3927, "Workspace Folder")),
|
|
224
224
|
workspaceOrFolder: workspaceFolder,
|
|
225
225
|
iconClasses: getIconClasses(this.modelService, this.languageService, workspaceFolder.uri, FileKind.ROOT_FOLDER)
|
|
226
226
|
};
|
|
@@ -228,7 +228,7 @@ let WorkspaceExtensionsConfigService = class WorkspaceExtensionsConfigService ex
|
|
|
228
228
|
if (workspace) {
|
|
229
229
|
folderPicks.push({ type: 'separator' });
|
|
230
230
|
folderPicks.push({
|
|
231
|
-
label: ( localize(
|
|
231
|
+
label: ( localize(3928, "Workspace")),
|
|
232
232
|
workspaceOrFolder: workspace,
|
|
233
233
|
});
|
|
234
234
|
}
|
package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js
CHANGED
|
@@ -29,26 +29,26 @@ let FilesConfigurationService = class FilesConfigurationService extends Disposab
|
|
|
29
29
|
static { this.DEFAULT_AUTO_SAVE_DELAY = 1000; }
|
|
30
30
|
static { this.READONLY_MESSAGES = {
|
|
31
31
|
providerReadonly: { value: ( localize(
|
|
32
|
-
|
|
32
|
+
746,
|
|
33
33
|
"Editor is read-only because the file system of the file is read-only."
|
|
34
34
|
)), isTrusted: true },
|
|
35
35
|
sessionReadonly: { value: ( localize(
|
|
36
|
-
|
|
36
|
+
747,
|
|
37
37
|
"Editor is read-only because the file was set read-only in this session. [Click here](command:{0}) to set writeable.",
|
|
38
38
|
'workbench.action.files.setActiveEditorWriteableInSession'
|
|
39
39
|
)), isTrusted: true },
|
|
40
40
|
configuredReadonly: { value: ( localize(
|
|
41
|
-
|
|
41
|
+
748,
|
|
42
42
|
"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}).",
|
|
43
43
|
`workbench.action.openSettings?${encodeURIComponent('["files.readonly"]')}`,
|
|
44
44
|
'workbench.action.files.toggleActiveEditorReadonlyInSession'
|
|
45
45
|
)), isTrusted: true },
|
|
46
46
|
fileLocked: { value: ( localize(
|
|
47
|
-
|
|
47
|
+
749,
|
|
48
48
|
"Editor is read-only because of file permissions. [Click here](command:{0}) to set writeable anyway.",
|
|
49
49
|
'workbench.action.files.setActiveEditorWriteableInSession'
|
|
50
50
|
)), isTrusted: true },
|
|
51
|
-
fileReadonly: { value: ( localize(
|
|
51
|
+
fileReadonly: { value: ( localize(750, "Editor is read-only because the file is read-only.")), isTrusted: true }
|
|
52
52
|
}; }
|
|
53
53
|
constructor(contextKeyService, configurationService, contextService, environmentService, uriIdentityService, fileService, markerService, textResourceConfigurationService) {
|
|
54
54
|
super();
|
|
@@ -20,25 +20,25 @@ import { isString } from '../../../../base/common/types.js';
|
|
|
20
20
|
const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
21
21
|
extensionPoint: 'languages',
|
|
22
22
|
jsonSchema: {
|
|
23
|
-
description: ( localize(
|
|
23
|
+
description: ( localize(2483, 'Contributes language declarations.')),
|
|
24
24
|
type: 'array',
|
|
25
25
|
items: {
|
|
26
26
|
type: 'object',
|
|
27
27
|
defaultSnippets: [{ body: { id: '${1:languageId}', aliases: ['${2:label}'], extensions: ['${3:extension}'], configuration: './language-configuration.json' } }],
|
|
28
28
|
properties: {
|
|
29
29
|
id: {
|
|
30
|
-
description: ( localize(
|
|
30
|
+
description: ( localize(2484, 'ID of the language.')),
|
|
31
31
|
type: 'string'
|
|
32
32
|
},
|
|
33
33
|
aliases: {
|
|
34
|
-
description: ( localize(
|
|
34
|
+
description: ( localize(2485, 'Name aliases for the language.')),
|
|
35
35
|
type: 'array',
|
|
36
36
|
items: {
|
|
37
37
|
type: 'string'
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
extensions: {
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(2486, 'File extensions associated to the language.')),
|
|
42
42
|
default: ['.foo'],
|
|
43
43
|
type: 'array',
|
|
44
44
|
items: {
|
|
@@ -46,21 +46,21 @@ const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
filenames: {
|
|
49
|
-
description: ( localize(
|
|
49
|
+
description: ( localize(2487, 'File names associated to the language.')),
|
|
50
50
|
type: 'array',
|
|
51
51
|
items: {
|
|
52
52
|
type: 'string'
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
filenamePatterns: {
|
|
56
|
-
description: ( localize(
|
|
56
|
+
description: ( localize(2488, 'File name glob patterns associated to the language.')),
|
|
57
57
|
type: 'array',
|
|
58
58
|
items: {
|
|
59
59
|
type: 'string'
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
mimetypes: {
|
|
63
|
-
description: ( localize(
|
|
63
|
+
description: ( localize(2489, 'Mime types associated to the language.')),
|
|
64
64
|
type: 'array',
|
|
65
65
|
items: {
|
|
66
66
|
type: 'string'
|
|
@@ -68,14 +68,14 @@ const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
68
68
|
},
|
|
69
69
|
firstLine: {
|
|
70
70
|
description: ( localize(
|
|
71
|
-
|
|
71
|
+
2490,
|
|
72
72
|
'A regular expression matching the first line of a file of the language.'
|
|
73
73
|
)),
|
|
74
74
|
type: 'string'
|
|
75
75
|
},
|
|
76
76
|
configuration: {
|
|
77
77
|
description: ( localize(
|
|
78
|
-
|
|
78
|
+
2491,
|
|
79
79
|
'A relative path to a file containing configuration options for the language.'
|
|
80
80
|
)),
|
|
81
81
|
type: 'string',
|
|
@@ -84,16 +84,16 @@ const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
84
84
|
icon: {
|
|
85
85
|
type: 'object',
|
|
86
86
|
description: ( localize(
|
|
87
|
-
|
|
87
|
+
2492,
|
|
88
88
|
'A icon to use as file icon, if no icon theme provides one for the language.'
|
|
89
89
|
)),
|
|
90
90
|
properties: {
|
|
91
91
|
light: {
|
|
92
|
-
description: ( localize(
|
|
92
|
+
description: ( localize(2493, 'Icon path when a light theme is used')),
|
|
93
93
|
type: 'string'
|
|
94
94
|
},
|
|
95
95
|
dark: {
|
|
96
|
-
description: ( localize(
|
|
96
|
+
description: ( localize(2494, 'Icon path when a dark theme is used')),
|
|
97
97
|
type: 'string'
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -167,11 +167,11 @@ class LanguageTableRenderer extends Disposable {
|
|
|
167
167
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
168
168
|
}
|
|
169
169
|
const headers = [
|
|
170
|
-
( localize(
|
|
171
|
-
( localize(
|
|
172
|
-
( localize(
|
|
173
|
-
( localize(
|
|
174
|
-
( localize(
|
|
170
|
+
( localize(2495, "ID")),
|
|
171
|
+
( localize(2496, "Name")),
|
|
172
|
+
( localize(2497, "File Extensions")),
|
|
173
|
+
( localize(2498, "Grammar")),
|
|
174
|
+
( localize(2499, "Snippets"))
|
|
175
175
|
];
|
|
176
176
|
const rows = ( (languages.sort((a, b) => a.id.localeCompare(b.id))
|
|
177
177
|
.map(l => {
|
|
@@ -193,7 +193,7 @@ class LanguageTableRenderer extends Disposable {
|
|
|
193
193
|
}
|
|
194
194
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
195
195
|
id: 'languages',
|
|
196
|
-
label: ( localize(
|
|
196
|
+
label: ( localize(2500, "Programming Languages")),
|
|
197
197
|
access: {
|
|
198
198
|
canToggle: false
|
|
199
199
|
},
|
|
@@ -211,7 +211,7 @@ let WorkbenchLanguageService = class WorkbenchLanguageService extends LanguageSe
|
|
|
211
211
|
const extension = extensions[i];
|
|
212
212
|
if (!Array.isArray(extension.value)) {
|
|
213
213
|
extension.collector.error(( localize(
|
|
214
|
-
|
|
214
|
+
2501,
|
|
215
215
|
"Invalid `contributes.{0}`. Expected an array.",
|
|
216
216
|
languagesExtPoint.name
|
|
217
217
|
)));
|
|
@@ -291,16 +291,16 @@ function isUndefinedOrStringArray(value) {
|
|
|
291
291
|
}
|
|
292
292
|
function isValidLanguageExtensionPoint(value, collector) {
|
|
293
293
|
if (!value) {
|
|
294
|
-
collector?.error(( localize(
|
|
294
|
+
collector?.error(( localize(2502, "Empty value for `contributes.{0}`", languagesExtPoint.name)));
|
|
295
295
|
return false;
|
|
296
296
|
}
|
|
297
297
|
if (typeof value.id !== 'string') {
|
|
298
|
-
collector?.error(( localize(
|
|
298
|
+
collector?.error(( localize(2503, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
299
299
|
return false;
|
|
300
300
|
}
|
|
301
301
|
if (!isUndefinedOrStringArray(value.extensions)) {
|
|
302
302
|
collector?.error(( localize(
|
|
303
|
-
|
|
303
|
+
2504,
|
|
304
304
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
305
305
|
'extensions'
|
|
306
306
|
)));
|
|
@@ -308,7 +308,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
308
308
|
}
|
|
309
309
|
if (!isUndefinedOrStringArray(value.filenames)) {
|
|
310
310
|
collector?.error(( localize(
|
|
311
|
-
|
|
311
|
+
2505,
|
|
312
312
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
313
313
|
'filenames'
|
|
314
314
|
)));
|
|
@@ -316,7 +316,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
316
316
|
}
|
|
317
317
|
if (typeof value.firstLine !== 'undefined' && typeof value.firstLine !== 'string') {
|
|
318
318
|
collector?.error(( localize(
|
|
319
|
-
|
|
319
|
+
2506,
|
|
320
320
|
"property `{0}` can be omitted and must be of type `string`",
|
|
321
321
|
'firstLine'
|
|
322
322
|
)));
|
|
@@ -324,7 +324,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
324
324
|
}
|
|
325
325
|
if (typeof value.configuration !== 'undefined' && typeof value.configuration !== 'string') {
|
|
326
326
|
collector?.error(( localize(
|
|
327
|
-
|
|
327
|
+
2507,
|
|
328
328
|
"property `{0}` can be omitted and must be of type `string`",
|
|
329
329
|
'configuration'
|
|
330
330
|
)));
|
|
@@ -332,7 +332,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
332
332
|
}
|
|
333
333
|
if (!isUndefinedOrStringArray(value.aliases)) {
|
|
334
334
|
collector?.error(( localize(
|
|
335
|
-
|
|
335
|
+
2508,
|
|
336
336
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
337
337
|
'aliases'
|
|
338
338
|
)));
|
|
@@ -340,7 +340,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
340
340
|
}
|
|
341
341
|
if (!isUndefinedOrStringArray(value.mimetypes)) {
|
|
342
342
|
collector?.error(( localize(
|
|
343
|
-
|
|
343
|
+
2509,
|
|
344
344
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
345
345
|
'mimetypes'
|
|
346
346
|
)));
|
|
@@ -349,7 +349,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
349
349
|
if (typeof value.icon !== 'undefined') {
|
|
350
350
|
if (typeof value.icon !== 'object' || typeof value.icon.light !== 'string' || typeof value.icon.dark !== 'string') {
|
|
351
351
|
collector?.error(( localize(
|
|
352
|
-
|
|
352
|
+
2510,
|
|
353
353
|
"property `{0}` can be omitted and must be of type `object` with properties `{1}` and `{2}` of type `string`",
|
|
354
354
|
'icon',
|
|
355
355
|
'light',
|
|
@@ -7,7 +7,7 @@ import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js'
|
|
|
7
7
|
import { EditorInput } from '../../../common/editor/editorInput.js';
|
|
8
8
|
import { KeybindingsEditorModel } from './keybindingsEditorModel.js';
|
|
9
9
|
var KeybindingsEditorInput_1;
|
|
10
|
-
const KeybindingsEditorIcon = registerIcon('keybindings-editor-label-icon', Codicon.keyboard, ( localize(
|
|
10
|
+
const KeybindingsEditorIcon = registerIcon('keybindings-editor-label-icon', Codicon.keyboard, ( localize(6210, 'Icon of the keybindings editor label.')));
|
|
11
11
|
let KeybindingsEditorInput = class KeybindingsEditorInput extends EditorInput {
|
|
12
12
|
static { KeybindingsEditorInput_1 = this; }
|
|
13
13
|
static { this.ID = 'workbench.input.keybindings'; }
|
|
@@ -21,7 +21,7 @@ let KeybindingsEditorInput = class KeybindingsEditorInput extends EditorInput {
|
|
|
21
21
|
return KeybindingsEditorInput_1.ID;
|
|
22
22
|
}
|
|
23
23
|
getName() {
|
|
24
|
-
return ( localize(
|
|
24
|
+
return ( localize(6211, "Keyboard Shortcuts"));
|
|
25
25
|
}
|
|
26
26
|
getIcon() {
|
|
27
27
|
return KeybindingsEditorIcon;
|
|
@@ -7,7 +7,7 @@ import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js'
|
|
|
7
7
|
import { EditorInput } from '../../../common/editor/editorInput.js';
|
|
8
8
|
import { IPreferencesService } from './preferences.service.js';
|
|
9
9
|
var SettingsEditor2Input_1;
|
|
10
|
-
const SettingsEditorIcon = registerIcon('settings-editor-label-icon', Codicon.settings, ( localize(
|
|
10
|
+
const SettingsEditorIcon = registerIcon('settings-editor-label-icon', Codicon.settings, ( localize(6212, 'Icon of the settings editor label.')));
|
|
11
11
|
let SettingsEditor2Input = class SettingsEditor2Input extends EditorInput {
|
|
12
12
|
static { SettingsEditor2Input_1 = this; }
|
|
13
13
|
static { this.ID = 'workbench.input.settings2'; }
|
|
@@ -26,7 +26,7 @@ let SettingsEditor2Input = class SettingsEditor2Input extends EditorInput {
|
|
|
26
26
|
return SettingsEditor2Input_1.ID;
|
|
27
27
|
}
|
|
28
28
|
getName() {
|
|
29
|
-
return ( localize(
|
|
29
|
+
return ( localize(6213, "Settings"));
|
|
30
30
|
}
|
|
31
31
|
getIcon() {
|
|
32
32
|
return SettingsEditorIcon;
|