@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
|
@@ -87,7 +87,13 @@ class Response extends Disposable {
|
|
|
87
87
|
this._responseRepr = '';
|
|
88
88
|
this._markdownContent = '';
|
|
89
89
|
this._citations = [];
|
|
90
|
-
|
|
90
|
+
const valueArr = asArray(value).filter(v => {
|
|
91
|
+
if ('kind' in v && v.kind === 'inlineReference' && !( (Object.keys(v.inlineReference))).length) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
return true;
|
|
95
|
+
});
|
|
96
|
+
this._responseParts = ( (valueArr.map((v) => (isMarkdownString(v) ?
|
|
91
97
|
{ content: v, kind: 'markdownContent' } :
|
|
92
98
|
'kind' in v ? v : { kind: 'treeData', treeData: v }))));
|
|
93
99
|
this._updateRepr(true);
|
|
@@ -103,6 +109,9 @@ class Response extends Disposable {
|
|
|
103
109
|
this._updateRepr(true);
|
|
104
110
|
}
|
|
105
111
|
updateContent(progress, quiet) {
|
|
112
|
+
if (progress.kind === 'inlineReference' && !( (Object.keys(progress.inlineReference))).length) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
106
115
|
if (progress.kind === 'markdownContent') {
|
|
107
116
|
const responsePartLength = this._responseParts.length - 1;
|
|
108
117
|
const lastResponsePart = this._responseParts[responsePartLength];
|
|
@@ -170,7 +179,7 @@ class Response extends Disposable {
|
|
|
170
179
|
return part.command.title;
|
|
171
180
|
}
|
|
172
181
|
else if (part.kind === 'textEditGroup') {
|
|
173
|
-
return ( localize(
|
|
182
|
+
return ( localize(7148, "Made changes."));
|
|
174
183
|
}
|
|
175
184
|
else if (part.kind === 'progressMessage' || part.kind === 'codeblockUri' || part.kind === 'toolInvocation' || part.kind === 'toolInvocationSerialized') {
|
|
176
185
|
return '';
|
|
@@ -836,8 +845,8 @@ function getCodeCitationsMessage(citations) {
|
|
|
836
845
|
}
|
|
837
846
|
const licenseTypes = citations.reduce((set, c) => set.add(c.license), ( (new Set())));
|
|
838
847
|
const label = licenseTypes.size === 1 ?
|
|
839
|
-
( localize(
|
|
840
|
-
( localize(
|
|
848
|
+
( localize(7149, "Similar code found with 1 license type", licenseTypes.size)) :
|
|
849
|
+
( localize(7150, "Similar code found with {0} license types", licenseTypes.size));
|
|
841
850
|
return label;
|
|
842
851
|
}
|
|
843
852
|
export { ChatModel, ChatModelInitState, ChatRequestModel, ChatResponseModel, Response, appendMarkdownString, canMergeMarkdownStrings, getCodeCitationsMessage, isChatRequestVariableEntry, isExportableSessionData, isSerializableSessionData, normalizeSerializableChatData, toChatHistoryContent, updateRanges };
|
|
@@ -16,17 +16,17 @@ const createCodeActionsAutoSave = (description) => {
|
|
|
16
16
|
enum: ['always', 'explicit', 'never', true, false],
|
|
17
17
|
enumDescriptions: [
|
|
18
18
|
( localize(
|
|
19
|
-
|
|
19
|
+
4544,
|
|
20
20
|
'Triggers Code Actions on explicit saves and auto saves triggered by window or focus changes.'
|
|
21
21
|
)),
|
|
22
|
-
( localize(
|
|
23
|
-
( localize(
|
|
22
|
+
( localize(4545, 'Triggers Code Actions only when explicitly saved')),
|
|
23
|
+
( localize(4546, 'Never triggers Code Actions on save')),
|
|
24
24
|
( localize(
|
|
25
|
-
|
|
25
|
+
4547,
|
|
26
26
|
'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'
|
|
27
27
|
)),
|
|
28
28
|
( localize(
|
|
29
|
-
|
|
29
|
+
4548,
|
|
30
30
|
'Never triggers Code Actions on save. This value will be deprecated in favor of "never".'
|
|
31
31
|
))
|
|
32
32
|
],
|
|
@@ -39,14 +39,14 @@ const createNotebookCodeActionsAutoSave = (description) => {
|
|
|
39
39
|
type: ['string', 'boolean'],
|
|
40
40
|
enum: ['explicit', 'never', true, false],
|
|
41
41
|
enumDescriptions: [
|
|
42
|
-
( localize(
|
|
43
|
-
( localize(
|
|
42
|
+
( localize(4549, 'Triggers Code Actions only when explicitly saved.')),
|
|
43
|
+
( localize(4550, 'Never triggers Code Actions on save.')),
|
|
44
44
|
( localize(
|
|
45
|
-
|
|
45
|
+
4551,
|
|
46
46
|
'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'
|
|
47
47
|
)),
|
|
48
48
|
( localize(
|
|
49
|
-
|
|
49
|
+
4552,
|
|
50
50
|
'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "never".'
|
|
51
51
|
))
|
|
52
52
|
],
|
|
@@ -68,7 +68,7 @@ const codeActionsOnSaveSchema = {
|
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
70
|
markdownDescription: ( localize(
|
|
71
|
-
|
|
71
|
+
4553,
|
|
72
72
|
'Run Code Actions for the editor on save. Code Actions must be specified and the editor must not be shutting down. Example: `"source.organizeImports": "explicit" `'
|
|
73
73
|
)),
|
|
74
74
|
type: ['object', 'array'],
|
|
@@ -99,7 +99,7 @@ const notebookCodeActionsOnSaveSchema = {
|
|
|
99
99
|
}
|
|
100
100
|
],
|
|
101
101
|
markdownDescription: ( localize(
|
|
102
|
-
|
|
102
|
+
4554,
|
|
103
103
|
'Run a series of Code Actions for a notebook on save. Code Actions must be specified, the file must not be saved after delay, and the editor must not be shutting down. Example: `"notebook.source.organizeImports": "explicit"`'
|
|
104
104
|
)),
|
|
105
105
|
type: 'object',
|
|
@@ -154,12 +154,12 @@ let CodeActionsContribution = class CodeActionsContribution extends Disposable {
|
|
|
154
154
|
for (const [sourceAction, props] of this.getSourceActions(codeActionContributions)) {
|
|
155
155
|
this.settings.add(sourceAction);
|
|
156
156
|
newProperties[sourceAction] = createCodeActionsAutoSave(( localize(
|
|
157
|
-
|
|
157
|
+
4555,
|
|
158
158
|
"Controls whether '{0}' actions should be run on file save.",
|
|
159
159
|
props.title
|
|
160
160
|
)));
|
|
161
161
|
newNotebookProperties[sourceAction] = createNotebookCodeActionsAutoSave(( localize(
|
|
162
|
-
|
|
162
|
+
4555,
|
|
163
163
|
"Controls whether '{0}' actions should be run on file save.",
|
|
164
164
|
props.title
|
|
165
165
|
)));
|
|
@@ -175,12 +175,12 @@ let CodeActionsContribution = class CodeActionsContribution extends Disposable {
|
|
|
175
175
|
for (const codeActionKind of this.settings) {
|
|
176
176
|
if (!properties[codeActionKind]) {
|
|
177
177
|
properties[codeActionKind] = createCodeActionsAutoSave(( localize(
|
|
178
|
-
|
|
178
|
+
4555,
|
|
179
179
|
"Controls whether '{0}' actions should be run on file save.",
|
|
180
180
|
codeActionKind
|
|
181
181
|
)));
|
|
182
182
|
notebookProperties[codeActionKind] = createNotebookCodeActionsAutoSave(( localize(
|
|
183
|
-
|
|
183
|
+
4555,
|
|
184
184
|
"Controls whether '{0}' actions should be run on file save.",
|
|
185
185
|
codeActionKind
|
|
186
186
|
)));
|
|
@@ -15,14 +15,14 @@ var CodeActionExtensionPointFields;
|
|
|
15
15
|
})(CodeActionExtensionPointFields || (CodeActionExtensionPointFields = {}))));
|
|
16
16
|
const codeActionsExtensionPointSchema = ( (Object.freeze({
|
|
17
17
|
type: 'array',
|
|
18
|
-
markdownDescription: ( localize(
|
|
18
|
+
markdownDescription: ( localize(4528, "Configure which editor to use for a resource.")),
|
|
19
19
|
items: {
|
|
20
20
|
type: 'object',
|
|
21
21
|
required: [CodeActionExtensionPointFields.languages, CodeActionExtensionPointFields.actions],
|
|
22
22
|
properties: {
|
|
23
23
|
[CodeActionExtensionPointFields.languages]: {
|
|
24
24
|
type: 'array',
|
|
25
|
-
description: ( localize(
|
|
25
|
+
description: ( localize(4529, "Language modes that the code actions are enabled for.")),
|
|
26
26
|
items: { type: 'string' }
|
|
27
27
|
},
|
|
28
28
|
[CodeActionExtensionPointFields.actions]: {
|
|
@@ -31,15 +31,15 @@ const codeActionsExtensionPointSchema = ( (Object.freeze({
|
|
|
31
31
|
properties: {
|
|
32
32
|
[CodeActionExtensionPointFields.kind]: {
|
|
33
33
|
type: 'string',
|
|
34
|
-
markdownDescription: ( localize(
|
|
34
|
+
markdownDescription: ( localize(4530, "`CodeActionKind` of the contributed code action.")),
|
|
35
35
|
},
|
|
36
36
|
[CodeActionExtensionPointFields.title]: {
|
|
37
37
|
type: 'string',
|
|
38
|
-
description: ( localize(
|
|
38
|
+
description: ( localize(4531, "Label for the code action used in the UI.")),
|
|
39
39
|
},
|
|
40
40
|
[CodeActionExtensionPointFields.description]: {
|
|
41
41
|
type: 'string',
|
|
42
|
-
description: ( localize(
|
|
42
|
+
description: ( localize(4532, "Description of what the code action does.")),
|
|
43
43
|
},
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -68,10 +68,10 @@ class CodeActionsTableRenderer extends Disposable {
|
|
|
68
68
|
contribution => ( (contribution.actions.map(action => ({ ...action, languages: contribution.languages }))))
|
|
69
69
|
))).flat();
|
|
70
70
|
const headers = [
|
|
71
|
-
( localize(
|
|
72
|
-
( localize(
|
|
73
|
-
( localize(
|
|
74
|
-
( localize(
|
|
71
|
+
( localize(4533, "Title")),
|
|
72
|
+
( localize(4534, "Kind")),
|
|
73
|
+
( localize(4535, "Description")),
|
|
74
|
+
( localize(4536, "Languages"))
|
|
75
75
|
];
|
|
76
76
|
const rows = ( (flatActions.sort((a, b) => a.title.localeCompare(b.title))
|
|
77
77
|
.map(action => {
|
|
@@ -93,7 +93,7 @@ class CodeActionsTableRenderer extends Disposable {
|
|
|
93
93
|
}
|
|
94
94
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
95
95
|
id: 'codeActions',
|
|
96
|
-
label: ( localize(
|
|
96
|
+
label: ( localize(4537, "Code Actions")),
|
|
97
97
|
access: {
|
|
98
98
|
canToggle: false,
|
|
99
99
|
},
|
|
@@ -10,14 +10,14 @@ var DocumentationExtensionPointFields;
|
|
|
10
10
|
)));
|
|
11
11
|
const documentationExtensionPointSchema = ( (Object.freeze({
|
|
12
12
|
type: 'object',
|
|
13
|
-
description: ( localize(
|
|
13
|
+
description: ( localize(4538, "Contributed documentation.")),
|
|
14
14
|
properties: {
|
|
15
15
|
'refactoring': {
|
|
16
16
|
type: 'array',
|
|
17
|
-
description: ( localize(
|
|
17
|
+
description: ( localize(4539, "Contributed documentation for refactorings.")),
|
|
18
18
|
items: {
|
|
19
19
|
type: 'object',
|
|
20
|
-
description: ( localize(
|
|
20
|
+
description: ( localize(4540, "Contributed documentation for refactoring.")),
|
|
21
21
|
required: [
|
|
22
22
|
DocumentationExtensionPointFields.title,
|
|
23
23
|
DocumentationExtensionPointFields.when,
|
|
@@ -26,15 +26,15 @@ const documentationExtensionPointSchema = ( (Object.freeze({
|
|
|
26
26
|
properties: {
|
|
27
27
|
[DocumentationExtensionPointFields.title]: {
|
|
28
28
|
type: 'string',
|
|
29
|
-
description: ( localize(
|
|
29
|
+
description: ( localize(4541, "Label for the documentation used in the UI.")),
|
|
30
30
|
},
|
|
31
31
|
[DocumentationExtensionPointFields.when]: {
|
|
32
32
|
type: 'string',
|
|
33
|
-
description: ( localize(
|
|
33
|
+
description: ( localize(4542, "When clause.")),
|
|
34
34
|
},
|
|
35
35
|
[DocumentationExtensionPointFields.command]: {
|
|
36
36
|
type: 'string',
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(4543, "Command executed.")),
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
40
|
}
|
|
@@ -23,12 +23,12 @@ import { ThemeIcon } from '../../../../../base/common/themables.js';
|
|
|
23
23
|
import { isWindows } from '../../../../../base/common/platform.js';
|
|
24
24
|
var EditorDictation_1;
|
|
25
25
|
const EDITOR_DICTATION_IN_PROGRESS = ( (new RawContextKey('editorDictation.inProgress', false)));
|
|
26
|
-
const VOICE_CATEGORY = ( localize2(
|
|
26
|
+
const VOICE_CATEGORY = ( localize2(10549, "Voice"));
|
|
27
27
|
class EditorDictationStartAction extends EditorAction2 {
|
|
28
28
|
constructor() {
|
|
29
29
|
super({
|
|
30
30
|
id: 'workbench.action.editorDictation.start',
|
|
31
|
-
title: ( localize2(
|
|
31
|
+
title: ( localize2(10550, "Start Dictation in Editor")),
|
|
32
32
|
category: VOICE_CATEGORY,
|
|
33
33
|
precondition: ( (ContextKeyExpr.and(
|
|
34
34
|
HasSpeechProvider,
|
|
@@ -68,7 +68,7 @@ class EditorDictationStopAction extends EditorAction2 {
|
|
|
68
68
|
constructor() {
|
|
69
69
|
super({
|
|
70
70
|
id: EditorDictationStopAction.ID,
|
|
71
|
-
title: ( localize2(
|
|
71
|
+
title: ( localize2(10551, "Stop Dictation in Editor")),
|
|
72
72
|
category: VOICE_CATEGORY,
|
|
73
73
|
precondition: EDITOR_DICTATION_IN_PROGRESS,
|
|
74
74
|
f1: true,
|
|
@@ -93,7 +93,7 @@ class DictationWidget extends Disposable {
|
|
|
93
93
|
const stopActionKeybinding = keybindingService.lookupKeybinding(EditorDictationStopAction.ID)?.getLabel();
|
|
94
94
|
actionBar.push(toAction({
|
|
95
95
|
id: EditorDictationStopAction.ID,
|
|
96
|
-
label: stopActionKeybinding ? ( localize(
|
|
96
|
+
label: stopActionKeybinding ? ( localize(10552, "Stop Dictation ({0})", stopActionKeybinding)) : ( localize(10553, "Stop Dictation")),
|
|
97
97
|
class: ThemeIcon.asClassName(Codicon.micFilled),
|
|
98
98
|
run: () => EditorDictation.get(editor)?.stop()
|
|
99
99
|
}), { icon: true, label: false, keybinding: stopActionKeybinding });
|
|
@@ -28,19 +28,19 @@ class DiffEditorAccessibilityHelp {
|
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
const switchSides = ( localize(
|
|
31
|
-
|
|
31
|
+
4492,
|
|
32
32
|
"Run the command Diff Editor: Switch Side{0} to toggle between the original and modified editors.",
|
|
33
33
|
'<keybinding:diffEditor.switchSide>'
|
|
34
34
|
));
|
|
35
35
|
const diffEditorActiveAnnouncement = ( localize(
|
|
36
|
-
|
|
36
|
+
4493,
|
|
37
37
|
"The setting, accessibility.verbosity.diffEditorActive, controls if a diff editor announcement is made when it becomes the active editor."
|
|
38
38
|
));
|
|
39
39
|
const keys = ['accessibility.signals.diffLineDeleted', 'accessibility.signals.diffLineInserted', 'accessibility.signals.diffLineModified'];
|
|
40
40
|
const content = [
|
|
41
|
-
( localize(
|
|
41
|
+
( localize(4494, "You are in a diff editor.")),
|
|
42
42
|
( localize(
|
|
43
|
-
|
|
43
|
+
4495,
|
|
44
44
|
"View the next{0} or previous{1} diff in diff review mode, which is optimized for screen readers.",
|
|
45
45
|
'<keybinding:' + AccessibleDiffViewerNext.id + '>',
|
|
46
46
|
'<keybinding:' + AccessibleDiffViewerPrev.id + '>'
|
|
@@ -48,7 +48,7 @@ class DiffEditorAccessibilityHelp {
|
|
|
48
48
|
switchSides,
|
|
49
49
|
diffEditorActiveAnnouncement,
|
|
50
50
|
( localize(
|
|
51
|
-
|
|
51
|
+
4496,
|
|
52
52
|
"To control which accessibility signals should be played, the following settings can be configured: {0}.",
|
|
53
53
|
keys.join(', ')
|
|
54
54
|
)),
|
|
@@ -33,7 +33,7 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
|
|
|
33
33
|
const onlyWhiteSpaceChange = ( (computationResult.map(r => r && !r.identical && r.changes2.length === 0)));
|
|
34
34
|
this._register(autorunWithStore((reader, store) => {
|
|
35
35
|
if (onlyWhiteSpaceChange.read(reader)) {
|
|
36
|
-
const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), ( localize(
|
|
36
|
+
const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), ( localize(640, "Show Whitespace Differences")), null));
|
|
37
37
|
store.add(helperWidget.onClick(() => {
|
|
38
38
|
this._textResourceConfigurationService.updateValue(this._diffEditor.getModel().modified.uri, 'diffEditor.ignoreTrimWhitespace', false);
|
|
39
39
|
}));
|
|
@@ -44,11 +44,11 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
|
|
|
44
44
|
const diffComputationResult = this._diffEditor.getDiffComputationResult();
|
|
45
45
|
if (diffComputationResult && diffComputationResult.quitEarly) {
|
|
46
46
|
this._notificationService.prompt(Severity$1.Warning, ( localize(
|
|
47
|
-
|
|
47
|
+
641,
|
|
48
48
|
"The diff algorithm was stopped early (after {0} ms.)",
|
|
49
49
|
this._diffEditor.maxComputationTime
|
|
50
50
|
)), [{
|
|
51
|
-
label: ( localize(
|
|
51
|
+
label: ( localize(642, "Remove Limit")),
|
|
52
52
|
run: () => {
|
|
53
53
|
this._textResourceConfigurationService.updateValue(this._diffEditor.getModel().modified.uri, 'diffEditor.maxComputationTime', 0);
|
|
54
54
|
}
|
|
@@ -96,7 +96,7 @@ class InspectEditorTokens extends EditorAction {
|
|
|
96
96
|
constructor() {
|
|
97
97
|
super({
|
|
98
98
|
id: 'editor.action.inspectTMScopes',
|
|
99
|
-
label: ( localize(
|
|
99
|
+
label: ( localize(3162, "Developer: Inspect Editor Tokens and Scopes")),
|
|
100
100
|
alias: 'Developer: Inspect Editor Tokens and Scopes',
|
|
101
101
|
precondition: undefined
|
|
102
102
|
});
|
|
@@ -164,7 +164,7 @@ class InspectEditorTokensWidget extends Disposable {
|
|
|
164
164
|
const semanticTokens = this._computeSemanticTokens(position);
|
|
165
165
|
const tree = this._treeSitterService.getParseResult(this._model);
|
|
166
166
|
clearNode(this._domNode);
|
|
167
|
-
this._domNode.appendChild(document.createTextNode(( localize(
|
|
167
|
+
this._domNode.appendChild(document.createTextNode(( localize(3163, "Loading..."))));
|
|
168
168
|
Promise.all([grammar, semanticTokens]).then(([grammar, semanticTokens]) => {
|
|
169
169
|
if (this._isDisposed) {
|
|
170
170
|
return;
|
|
@@ -24,16 +24,16 @@ let LargeFileOptimizationsWarner = class LargeFileOptimizationsWarner extends Di
|
|
|
24
24
|
}
|
|
25
25
|
if (model.isTooLargeForTokenization()) {
|
|
26
26
|
const message = ( localize(
|
|
27
|
-
|
|
27
|
+
643,
|
|
28
28
|
"{0}: tokenization, wrapping, folding, codelens, word highlighting and sticky scroll have been turned off for this large file in order to reduce memory usage and avoid freezing or crashing.",
|
|
29
29
|
basename(model.uri.path)
|
|
30
30
|
));
|
|
31
31
|
this._notificationService.prompt(Severity$1.Info, message, [
|
|
32
32
|
{
|
|
33
|
-
label: ( localize(
|
|
33
|
+
label: ( localize(644, "Forcefully Enable Features")),
|
|
34
34
|
run: () => {
|
|
35
35
|
this._configurationService.updateValue(`editor.largeFileOptimizations`, false).then(() => {
|
|
36
|
-
this._notificationService.info(( localize(
|
|
36
|
+
this._notificationService.info(( localize(645, "Please reopen file in order for this setting to take effect.")));
|
|
37
37
|
}, (err) => {
|
|
38
38
|
this._notificationService.error(err);
|
|
39
39
|
});
|
|
@@ -189,7 +189,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
|
|
|
189
189
|
const nestedProgress = ( (new Progress(provider => {
|
|
190
190
|
progress.report({
|
|
191
191
|
message: ( localize(
|
|
192
|
-
|
|
192
|
+
646,
|
|
193
193
|
"Running '{0}' Formatter ([configure]({1})).",
|
|
194
194
|
provider.displayName || provider.extensionId && provider.extensionId.value || '???',
|
|
195
195
|
'command:workbench.action.openSettings?%5B%22editor.formatOnSave%22%5D'
|
|
@@ -299,7 +299,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant extends Disp
|
|
|
299
299
|
: ( (( (Object.keys(setting)))
|
|
300
300
|
.filter(x => setting[x] === 'never' || false)
|
|
301
301
|
.map(x => ( (new HierarchicalKind(x))))));
|
|
302
|
-
progress.report({ message: ( localize(
|
|
302
|
+
progress.report({ message: ( localize(647, "Quick Fixes")) });
|
|
303
303
|
const filteredSaveList = Array.isArray(setting) ? codeActionsOnSave : codeActionsOnSave.filter(x => setting[x.value] === 'always' || (((setting[x.value] === 'explicit' || setting[x.value] === true) && context.reason === 1) ));
|
|
304
304
|
await this.applyOnSaveActions(textEditorModel, filteredSaveList, excludedActions, progress, token);
|
|
305
305
|
}
|
|
@@ -317,7 +317,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant extends Disp
|
|
|
317
317
|
_report() {
|
|
318
318
|
progress.report({
|
|
319
319
|
message: ( localize(
|
|
320
|
-
|
|
320
|
+
648,
|
|
321
321
|
"Getting code actions from '{0}' ([configure]({1})).",
|
|
322
322
|
( ([...this._names].map(name => `'${name}'`))).join(', '),
|
|
323
323
|
'command:workbench.action.openSettings?%5B%22editor.codeActionsOnSave%22%5D'
|
|
@@ -344,7 +344,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant extends Disp
|
|
|
344
344
|
}
|
|
345
345
|
try {
|
|
346
346
|
for (const action of actionsToRun.validActions) {
|
|
347
|
-
progress.report({ message: ( localize(
|
|
347
|
+
progress.report({ message: ( localize(649, "Applying code action '{0}'.", action.action.title)) });
|
|
348
348
|
await this.instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
|
|
349
349
|
if (token.isCancellationRequested) {
|
|
350
350
|
return;
|
|
@@ -9,8 +9,8 @@ class ToggleMinimapAction extends Action2 {
|
|
|
9
9
|
super({
|
|
10
10
|
id: ToggleMinimapAction.ID,
|
|
11
11
|
title: {
|
|
12
|
-
...( localize2(
|
|
13
|
-
mnemonicTitle: ( localize(
|
|
12
|
+
...( localize2(650, "Toggle Minimap")),
|
|
13
|
+
mnemonicTitle: ( localize(651, "&&Minimap")),
|
|
14
14
|
},
|
|
15
15
|
category: Categories.View,
|
|
16
16
|
f1: true,
|
|
@@ -14,7 +14,7 @@ class ToggleMultiCursorModifierAction extends Action2 {
|
|
|
14
14
|
constructor() {
|
|
15
15
|
super({
|
|
16
16
|
id: ToggleMultiCursorModifierAction.ID,
|
|
17
|
-
title: ( localize2(
|
|
17
|
+
title: ( localize2(652, 'Toggle Multi-Cursor Modifier')),
|
|
18
18
|
f1: true
|
|
19
19
|
});
|
|
20
20
|
}
|
|
@@ -54,7 +54,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSelectionMenu, {
|
|
|
54
54
|
group: '4_config',
|
|
55
55
|
command: {
|
|
56
56
|
id: ToggleMultiCursorModifierAction.ID,
|
|
57
|
-
title: ( localize(
|
|
57
|
+
title: ( localize(653, "Switch to Alt+Click for Multi-Cursor"))
|
|
58
58
|
},
|
|
59
59
|
when: ( (multiCursorModifier.isEqualTo('ctrlCmd'))),
|
|
60
60
|
order: 1
|
|
@@ -64,8 +64,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSelectionMenu, {
|
|
|
64
64
|
command: {
|
|
65
65
|
id: ToggleMultiCursorModifierAction.ID,
|
|
66
66
|
title: (isMacintosh
|
|
67
|
-
? ( localize(
|
|
68
|
-
: ( localize(
|
|
67
|
+
? ( localize(654, "Switch to Cmd+Click for Multi-Cursor"))
|
|
68
|
+
: ( localize(655, "Switch to Ctrl+Click for Multi-Cursor")))
|
|
69
69
|
},
|
|
70
70
|
when: ( (multiCursorModifier.isEqualTo('altKey'))),
|
|
71
71
|
order: 1
|
|
@@ -9,8 +9,8 @@ class ToggleRenderControlCharacterAction extends Action2 {
|
|
|
9
9
|
super({
|
|
10
10
|
id: ToggleRenderControlCharacterAction.ID,
|
|
11
11
|
title: {
|
|
12
|
-
...( localize2(
|
|
13
|
-
mnemonicTitle: ( localize(
|
|
12
|
+
...( localize2(656, "Toggle Control Characters")),
|
|
13
|
+
mnemonicTitle: ( localize(657, "Render &&Control Characters")),
|
|
14
14
|
},
|
|
15
15
|
category: Categories.View,
|
|
16
16
|
f1: true,
|
|
@@ -9,8 +9,8 @@ class ToggleRenderWhitespaceAction extends Action2 {
|
|
|
9
9
|
super({
|
|
10
10
|
id: ToggleRenderWhitespaceAction.ID,
|
|
11
11
|
title: {
|
|
12
|
-
...( localize2(
|
|
13
|
-
mnemonicTitle: ( localize(
|
|
12
|
+
...( localize2(663, "Toggle Render Whitespace")),
|
|
13
|
+
mnemonicTitle: ( localize(664, "&&Render Whitespace")),
|
|
14
14
|
},
|
|
15
15
|
category: Categories.View,
|
|
16
16
|
f1: true,
|
|
@@ -17,7 +17,7 @@ const transientWordWrapState = 'transientWordWrapState';
|
|
|
17
17
|
const isWordWrapMinifiedKey = 'isWordWrapMinified';
|
|
18
18
|
const isDominatedByLongLinesKey = 'isDominatedByLongLines';
|
|
19
19
|
const CAN_TOGGLE_WORD_WRAP = ( (new RawContextKey('canToggleWordWrap', false, true)));
|
|
20
|
-
const EDITOR_WORD_WRAP = ( (new RawContextKey('editorWordWrap', false, ( localize(
|
|
20
|
+
const EDITOR_WORD_WRAP = ( (new RawContextKey('editorWordWrap', false, ( localize(658, 'Whether the editor is currently using word wrapping.')))));
|
|
21
21
|
function writeTransientState(model, state, codeEditorService) {
|
|
22
22
|
codeEditorService.setTransientModelProperty(model, transientWordWrapState, state);
|
|
23
23
|
}
|
|
@@ -29,7 +29,7 @@ class ToggleWordWrapAction extends EditorAction {
|
|
|
29
29
|
constructor() {
|
|
30
30
|
super({
|
|
31
31
|
id: TOGGLE_WORD_WRAP_ID,
|
|
32
|
-
label: ( localize(
|
|
32
|
+
label: ( localize(659, "View: Toggle Word Wrap")),
|
|
33
33
|
alias: 'View: Toggle Word Wrap',
|
|
34
34
|
precondition: undefined,
|
|
35
35
|
kbOpts: {
|
|
@@ -248,7 +248,7 @@ registerEditorAction(ToggleWordWrapAction);
|
|
|
248
248
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
249
249
|
command: {
|
|
250
250
|
id: TOGGLE_WORD_WRAP_ID,
|
|
251
|
-
title: ( localize(
|
|
251
|
+
title: ( localize(660, "Disable wrapping for this file")),
|
|
252
252
|
icon: Codicon.wordWrap
|
|
253
253
|
},
|
|
254
254
|
group: 'navigation',
|
|
@@ -261,7 +261,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
261
261
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
262
262
|
command: {
|
|
263
263
|
id: TOGGLE_WORD_WRAP_ID,
|
|
264
|
-
title: ( localize(
|
|
264
|
+
title: ( localize(661, "Enable wrapping for this file")),
|
|
265
265
|
icon: Codicon.wordWrap
|
|
266
266
|
},
|
|
267
267
|
group: 'navigation',
|
|
@@ -275,7 +275,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
275
275
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
276
276
|
command: {
|
|
277
277
|
id: TOGGLE_WORD_WRAP_ID,
|
|
278
|
-
title: ( localize(
|
|
278
|
+
title: ( localize(662, "&&Word Wrap")),
|
|
279
279
|
toggled: EDITOR_WORD_WRAP,
|
|
280
280
|
precondition: CAN_TOGGLE_WORD_WRAP
|
|
281
281
|
},
|
|
@@ -794,7 +794,7 @@ let CommentController = class CommentController {
|
|
|
794
794
|
const commentRangeEnd = range?.getEndPosition().lineNumber;
|
|
795
795
|
if (commentRangeStart && commentRangeEnd) {
|
|
796
796
|
const oneLine = commentRangeStart === commentRangeEnd;
|
|
797
|
-
oneLine ? status(( localize(
|
|
797
|
+
oneLine ? status(( localize(5367, "Line {0}", commentRangeStart))) : status(( localize(5368, "Lines {0} to {1}", commentRangeStart, commentRangeEnd)));
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
}
|
|
@@ -966,20 +966,20 @@ let CommentController = class CommentController {
|
|
|
966
966
|
const keybinding = this.keybindingService.lookupKeybinding("editor.action.accessibilityHelp" )?.getAriaLabel();
|
|
967
967
|
if (keybinding) {
|
|
968
968
|
status(( localize(
|
|
969
|
-
|
|
969
|
+
5369,
|
|
970
970
|
"Editor has commenting ranges, run the command Open Accessibility Help ({0}), for more information.",
|
|
971
971
|
keybinding
|
|
972
972
|
)));
|
|
973
973
|
}
|
|
974
974
|
else {
|
|
975
975
|
status(( localize(
|
|
976
|
-
|
|
976
|
+
5370,
|
|
977
977
|
"Editor has commenting ranges, run the command Open Accessibility Help, which is currently not triggerable via keybinding, for more information."
|
|
978
978
|
)));
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
else {
|
|
982
|
-
status(( localize(
|
|
982
|
+
status(( localize(5371, "Editor has commenting ranges.")));
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
985
|
}
|
|
@@ -1132,7 +1132,7 @@ let CommentController = class CommentController {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
else {
|
|
1134
1134
|
const picks = this.getCommentProvidersQuickPicks(newCommentInfos);
|
|
1135
|
-
return this.quickInputService.pick(picks, { placeHolder: ( localize(
|
|
1135
|
+
return this.quickInputService.pick(picks, { placeHolder: ( localize(5372, "Select Comment Provider")), matchOnDescription: true }).then(pick => {
|
|
1136
1136
|
if (!pick) {
|
|
1137
1137
|
return;
|
|
1138
1138
|
}
|