@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
|
@@ -90,7 +90,7 @@ class RenameSkeleton {
|
|
|
90
90
|
}
|
|
91
91
|
const result = await provider.provideRenameEdits(this.model, this.position, newName, token);
|
|
92
92
|
if (!result) {
|
|
93
|
-
return this._provideRenameEdits(newName, i + 1, rejects.concat(( localize(
|
|
93
|
+
return this._provideRenameEdits(newName, i + 1, rejects.concat(( localize(1534, "No result."))), token);
|
|
94
94
|
}
|
|
95
95
|
else if (result.rejectReason) {
|
|
96
96
|
return this._provideRenameEdits(newName, i + 1, rejects.concat(result.rejectReason), token);
|
|
@@ -169,7 +169,7 @@ let RenameController = class RenameController {
|
|
|
169
169
|
else {
|
|
170
170
|
trace('resolve rename location failed', e instanceof Error ? e : JSON.stringify(e, null, '\t'));
|
|
171
171
|
if (typeof e === 'string' || isMarkdownString(e)) {
|
|
172
|
-
MessageController.get(this.editor)?.showMessage(e || ( localize(
|
|
172
|
+
MessageController.get(this.editor)?.showMessage(e || ( localize(1535, "An unknown error occurred while resolving rename location")), position);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
return undefined;
|
|
@@ -246,15 +246,15 @@ let RenameController = class RenameController {
|
|
|
246
246
|
this._bulkEditService.apply(renameResult, {
|
|
247
247
|
editor: this.editor,
|
|
248
248
|
showPreview: inputFieldResult.wantsPreview,
|
|
249
|
-
label: ( localize(
|
|
249
|
+
label: ( localize(1536, "Renaming '{0}' to '{1}'", loc?.text, inputFieldResult.newName)),
|
|
250
250
|
code: 'undoredo.rename',
|
|
251
|
-
quotableLabel: ( localize(
|
|
251
|
+
quotableLabel: ( localize(1537, "Renaming {0} to {1}", loc?.text, inputFieldResult.newName)),
|
|
252
252
|
respectAutoSaveConfig: true
|
|
253
253
|
}).then(result => {
|
|
254
254
|
trace('edits applied');
|
|
255
255
|
if (result.ariaSummary) {
|
|
256
256
|
alert(( localize(
|
|
257
|
-
|
|
257
|
+
1538,
|
|
258
258
|
"Successfully renamed '{0}' to '{1}'. Summary: {2}",
|
|
259
259
|
loc.text,
|
|
260
260
|
inputFieldResult.newName,
|
|
@@ -263,12 +263,12 @@ let RenameController = class RenameController {
|
|
|
263
263
|
}
|
|
264
264
|
}).catch(err => {
|
|
265
265
|
trace(`error when applying edits ${JSON.stringify(err, null, '\t')}`);
|
|
266
|
-
this._notificationService.error(( localize(
|
|
266
|
+
this._notificationService.error(( localize(1539, "Rename failed to apply edits")));
|
|
267
267
|
this._logService.error(err);
|
|
268
268
|
});
|
|
269
269
|
}, err => {
|
|
270
270
|
trace('error when providing rename edits', JSON.stringify(err, null, '\t'));
|
|
271
|
-
this._notificationService.error(( localize(
|
|
271
|
+
this._notificationService.error(( localize(1540, "Rename failed to compute edits")));
|
|
272
272
|
this._logService.error(err);
|
|
273
273
|
}).finally(() => {
|
|
274
274
|
cts2.dispose();
|
|
@@ -324,7 +324,7 @@ class RenameAction extends EditorAction {
|
|
|
324
324
|
constructor() {
|
|
325
325
|
super({
|
|
326
326
|
id: 'editor.action.rename',
|
|
327
|
-
label: ( localize(
|
|
327
|
+
label: ( localize(1541, "Rename Symbol")),
|
|
328
328
|
alias: 'Rename Symbol',
|
|
329
329
|
precondition: ( (ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasRenameProvider))),
|
|
330
330
|
kbOpts: {
|
|
@@ -408,7 +408,7 @@ registerAction2(class FocusNextRenameSuggestion extends Action2 {
|
|
|
408
408
|
super({
|
|
409
409
|
id: 'focusNextRenameSuggestion',
|
|
410
410
|
title: {
|
|
411
|
-
...( localize2(
|
|
411
|
+
...( localize2(1542, "Focus Next Rename Suggestion")),
|
|
412
412
|
},
|
|
413
413
|
precondition: CONTEXT_RENAME_INPUT_VISIBLE,
|
|
414
414
|
keybinding: [
|
|
@@ -436,7 +436,7 @@ registerAction2(class FocusPreviousRenameSuggestion extends Action2 {
|
|
|
436
436
|
super({
|
|
437
437
|
id: 'focusPreviousRenameSuggestion',
|
|
438
438
|
title: {
|
|
439
|
-
...( localize2(
|
|
439
|
+
...( localize2(1543, "Focus Previous Rename Suggestion")),
|
|
440
440
|
},
|
|
441
441
|
precondition: CONTEXT_RENAME_INPUT_VISIBLE,
|
|
442
442
|
keybinding: [
|
|
@@ -479,7 +479,7 @@ registerModelAndPositionCommand('_executePrepareRename', async function (accesso
|
|
|
479
479
|
properties: {
|
|
480
480
|
'editor.rename.enablePreview': {
|
|
481
481
|
scope: 5 ,
|
|
482
|
-
description: ( localize(
|
|
482
|
+
description: ( localize(1544, "Enable/disable the ability to preview changes before renaming")),
|
|
483
483
|
default: true,
|
|
484
484
|
type: 'boolean'
|
|
485
485
|
}
|
|
@@ -113,7 +113,7 @@ class GrowSelectionAction extends AbstractSmartSelect {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super(true, {
|
|
115
115
|
id: 'editor.action.smartSelect.expand',
|
|
116
|
-
label: ( localize(
|
|
116
|
+
label: ( localize(1545, "Expand Selection")),
|
|
117
117
|
alias: 'Expand Selection',
|
|
118
118
|
precondition: undefined,
|
|
119
119
|
kbOpts: {
|
|
@@ -128,7 +128,7 @@ class GrowSelectionAction extends AbstractSmartSelect {
|
|
|
128
128
|
menuOpts: {
|
|
129
129
|
menuId: MenuId.MenubarSelectionMenu,
|
|
130
130
|
group: '1_basic',
|
|
131
|
-
title: ( localize(
|
|
131
|
+
title: ( localize(1546, "&&Expand Selection")),
|
|
132
132
|
order: 2
|
|
133
133
|
}
|
|
134
134
|
});
|
|
@@ -139,7 +139,7 @@ class ShrinkSelectionAction extends AbstractSmartSelect {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super(false, {
|
|
141
141
|
id: 'editor.action.smartSelect.shrink',
|
|
142
|
-
label: ( localize(
|
|
142
|
+
label: ( localize(1547, "Shrink Selection")),
|
|
143
143
|
alias: 'Shrink Selection',
|
|
144
144
|
precondition: undefined,
|
|
145
145
|
kbOpts: {
|
|
@@ -154,7 +154,7 @@ class ShrinkSelectionAction extends AbstractSmartSelect {
|
|
|
154
154
|
menuOpts: {
|
|
155
155
|
menuId: MenuId.MenubarSelectionMenu,
|
|
156
156
|
group: '1_basic',
|
|
157
|
-
title: ( localize(
|
|
157
|
+
title: ( localize(1548, "&&Shrink Selection")),
|
|
158
158
|
order: 3
|
|
159
159
|
}
|
|
160
160
|
});
|
|
@@ -28,9 +28,9 @@ let SnippetController2 = class SnippetController2 {
|
|
|
28
28
|
static get(editor) {
|
|
29
29
|
return editor.getContribution(SnippetController2_1.ID);
|
|
30
30
|
}
|
|
31
|
-
static { this.InSnippetMode = ( (new RawContextKey('inSnippetMode', false, ( localize(
|
|
32
|
-
static { this.HasNextTabstop = ( (new RawContextKey('hasNextTabstop', false, ( localize(
|
|
33
|
-
static { this.HasPrevTabstop = ( (new RawContextKey('hasPrevTabstop', false, ( localize(
|
|
31
|
+
static { this.InSnippetMode = ( (new RawContextKey('inSnippetMode', false, ( localize(1549, "Whether the editor in current in snippet mode"))))); }
|
|
32
|
+
static { this.HasNextTabstop = ( (new RawContextKey('hasNextTabstop', false, ( localize(1550, "Whether there is a next tab stop when in snippet mode"))))); }
|
|
33
|
+
static { this.HasPrevTabstop = ( (new RawContextKey('hasPrevTabstop', false, ( localize(1551, "Whether there is a previous tab stop when in snippet mode"))))); }
|
|
34
34
|
constructor(_editor, _logService, _languageFeaturesService, contextKeyService, _languageConfigurationService) {
|
|
35
35
|
this._editor = _editor;
|
|
36
36
|
this._logService = _logService;
|
|
@@ -119,7 +119,7 @@ let SnippetController2 = class SnippetController2 {
|
|
|
119
119
|
sortText: 'a'.repeat(i + 1),
|
|
120
120
|
range: activeChoice.range,
|
|
121
121
|
filterText: isAnyOfOptions ? `${word}_${option.value}` : undefined,
|
|
122
|
-
command: { id: 'jumpToNextSnippetPlaceholder', title: ( localize(
|
|
122
|
+
command: { id: 'jumpToNextSnippetPlaceholder', title: ( localize(1552, 'Go to next placeholder...')) }
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
return { suggestions };
|
|
@@ -433,7 +433,7 @@ let SuggestController = class SuggestController {
|
|
|
433
433
|
_alertCompletionItem(item) {
|
|
434
434
|
if (isNonEmptyArray(item.completion.additionalTextEdits)) {
|
|
435
435
|
const msg = ( localize(
|
|
436
|
-
|
|
436
|
+
1553,
|
|
437
437
|
"Accepting '{0}' made {1} additional edits",
|
|
438
438
|
item.textLabel,
|
|
439
439
|
item.completion.additionalTextEdits.length
|
|
@@ -610,7 +610,7 @@ class TriggerSuggestAction extends EditorAction {
|
|
|
610
610
|
constructor() {
|
|
611
611
|
super({
|
|
612
612
|
id: TriggerSuggestAction.id,
|
|
613
|
-
label: ( localize(
|
|
613
|
+
label: ( localize(1554, "Trigger Suggest")),
|
|
614
614
|
alias: 'Trigger Suggest',
|
|
615
615
|
precondition: ( (ContextKeyExpr.and(
|
|
616
616
|
EditorContextKeys.writable,
|
|
@@ -666,13 +666,13 @@ registerEditorCommand(( (new SuggestCommand({
|
|
|
666
666
|
}],
|
|
667
667
|
menuOpts: [{
|
|
668
668
|
menuId: suggestWidgetStatusbarMenu,
|
|
669
|
-
title: ( localize(
|
|
669
|
+
title: ( localize(1555, "Insert")),
|
|
670
670
|
group: 'left',
|
|
671
671
|
order: 1,
|
|
672
672
|
when: ( (Context.HasInsertAndReplaceRange.toNegated()))
|
|
673
673
|
}, {
|
|
674
674
|
menuId: suggestWidgetStatusbarMenu,
|
|
675
|
-
title: ( localize(
|
|
675
|
+
title: ( localize(1555, "Insert")),
|
|
676
676
|
group: 'left',
|
|
677
677
|
order: 1,
|
|
678
678
|
when: ( (ContextKeyExpr.and(
|
|
@@ -681,7 +681,7 @@ registerEditorCommand(( (new SuggestCommand({
|
|
|
681
681
|
)))
|
|
682
682
|
}, {
|
|
683
683
|
menuId: suggestWidgetStatusbarMenu,
|
|
684
|
-
title: ( localize(
|
|
684
|
+
title: ( localize(1556, "Replace")),
|
|
685
685
|
group: 'left',
|
|
686
686
|
order: 1,
|
|
687
687
|
when: ( (ContextKeyExpr.and(
|
|
@@ -714,7 +714,7 @@ registerEditorCommand(( (new SuggestCommand({
|
|
|
714
714
|
Context.HasInsertAndReplaceRange,
|
|
715
715
|
(Context.InsertMode.isEqualTo('insert'))
|
|
716
716
|
))),
|
|
717
|
-
title: ( localize(
|
|
717
|
+
title: ( localize(1556, "Replace"))
|
|
718
718
|
}, {
|
|
719
719
|
menuId: suggestWidgetStatusbarMenu,
|
|
720
720
|
group: 'left',
|
|
@@ -723,7 +723,7 @@ registerEditorCommand(( (new SuggestCommand({
|
|
|
723
723
|
Context.HasInsertAndReplaceRange,
|
|
724
724
|
(Context.InsertMode.isEqualTo('replace'))
|
|
725
725
|
))),
|
|
726
|
-
title: ( localize(
|
|
726
|
+
title: ( localize(1555, "Insert"))
|
|
727
727
|
}]
|
|
728
728
|
}))));
|
|
729
729
|
CommandsRegistry.registerCommandAlias('acceptSelectedSuggestionOnEnter', 'acceptSelectedSuggestion');
|
|
@@ -848,13 +848,13 @@ registerEditorCommand(( (new SuggestCommand({
|
|
|
848
848
|
group: 'right',
|
|
849
849
|
order: 1,
|
|
850
850
|
when: ( (ContextKeyExpr.and(Context.DetailsVisible, Context.CanResolve))),
|
|
851
|
-
title: ( localize(
|
|
851
|
+
title: ( localize(1557, "Show Less"))
|
|
852
852
|
}, {
|
|
853
853
|
menuId: suggestWidgetStatusbarMenu,
|
|
854
854
|
group: 'right',
|
|
855
855
|
order: 1,
|
|
856
856
|
when: ( (ContextKeyExpr.and( (Context.DetailsVisible.toNegated()), Context.CanResolve))),
|
|
857
|
-
title: ( localize(
|
|
857
|
+
title: ( localize(1558, "Show More"))
|
|
858
858
|
}]
|
|
859
859
|
}))));
|
|
860
860
|
registerEditorCommand(( (new SuggestCommand({
|
|
@@ -931,7 +931,7 @@ registerEditorAction(class extends EditorAction {
|
|
|
931
931
|
constructor() {
|
|
932
932
|
super({
|
|
933
933
|
id: 'editor.action.resetSuggestSize',
|
|
934
|
-
label: ( localize(
|
|
934
|
+
label: ( localize(1559, "Reset Suggest Widget Size")),
|
|
935
935
|
alias: 'Reset Suggest Widget Size',
|
|
936
936
|
precondition: undefined
|
|
937
937
|
});
|
|
@@ -7,7 +7,7 @@ class ToggleTabFocusModeAction extends Action2 {
|
|
|
7
7
|
constructor() {
|
|
8
8
|
super({
|
|
9
9
|
id: ToggleTabFocusModeAction.ID,
|
|
10
|
-
title: ( localize2(
|
|
10
|
+
title: ( localize2(1585, 'Toggle Tab Key Moves Focus')),
|
|
11
11
|
precondition: undefined,
|
|
12
12
|
keybinding: {
|
|
13
13
|
primary: 2048 | 43 ,
|
|
@@ -16,7 +16,7 @@ class ToggleTabFocusModeAction extends Action2 {
|
|
|
16
16
|
},
|
|
17
17
|
metadata: {
|
|
18
18
|
description: ( localize2(
|
|
19
|
-
|
|
19
|
+
1586,
|
|
20
20
|
"Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode."
|
|
21
21
|
)),
|
|
22
22
|
},
|
|
@@ -28,10 +28,10 @@ class ToggleTabFocusModeAction extends Action2 {
|
|
|
28
28
|
const newValue = !oldValue;
|
|
29
29
|
TabFocus.setTabFocusMode(newValue);
|
|
30
30
|
if (newValue) {
|
|
31
|
-
alert(( localize(
|
|
31
|
+
alert(( localize(1587, "Pressing Tab will now move focus to the next focusable element")));
|
|
32
32
|
}
|
|
33
33
|
else {
|
|
34
|
-
alert(( localize(
|
|
34
|
+
alert(( localize(1588, "Pressing Tab will now insert the tab character")));
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -5,7 +5,7 @@ class ForceRetokenizeAction extends EditorAction {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
super({
|
|
7
7
|
id: 'editor.action.forceRetokenize',
|
|
8
|
-
label: ( localize(
|
|
8
|
+
label: ( localize(1560, "Developer: Force Retokenize")),
|
|
9
9
|
alias: 'Developer: Force Retokenize',
|
|
10
10
|
precondition: undefined
|
|
11
11
|
});
|
|
@@ -23,7 +23,7 @@ import { IOpenerService } from '../../../../platform/opener/common/opener.servic
|
|
|
23
23
|
import { IQuickInputService } from '../../../../platform/quickinput/common/quickInput.service.js';
|
|
24
24
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
25
25
|
import { IWorkspaceTrustManagementService } from '../../../../platform/workspace/common/workspaceTrust.service.js';
|
|
26
|
-
const warningIcon = registerIcon('extensions-warning-message', Codicon.warning, ( localize(
|
|
26
|
+
const warningIcon = registerIcon('extensions-warning-message', Codicon.warning, ( localize(1561, 'Icon shown with a warning message in the extensions editor.')));
|
|
27
27
|
let UnicodeHighlighter = class UnicodeHighlighter extends Disposable {
|
|
28
28
|
static { this.ID = 'editor.contrib.unicodeHighlighter'; }
|
|
29
29
|
constructor(_editor, _editorWorkerService, _workspaceTrustService, instantiationService) {
|
|
@@ -42,19 +42,19 @@ let UnicodeHighlighter = class UnicodeHighlighter extends Disposable {
|
|
|
42
42
|
let data;
|
|
43
43
|
if (state.nonBasicAsciiCharacterCount >= max) {
|
|
44
44
|
data = {
|
|
45
|
-
message: ( localize(
|
|
45
|
+
message: ( localize(1562, 'This document contains many non-basic ASCII unicode characters')),
|
|
46
46
|
command: ( (new DisableHighlightingOfNonBasicAsciiCharactersAction())),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
else if (state.ambiguousCharacterCount >= max) {
|
|
50
50
|
data = {
|
|
51
|
-
message: ( localize(
|
|
51
|
+
message: ( localize(1563, 'This document contains many ambiguous unicode characters')),
|
|
52
52
|
command: ( (new DisableHighlightingOfAmbiguousCharactersAction())),
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
else if (state.invisibleCharacterCount >= max) {
|
|
56
56
|
data = {
|
|
57
|
-
message: ( localize(
|
|
57
|
+
message: ( localize(1564, 'This document contains many invisible unicode characters')),
|
|
58
58
|
command: ( (new DisableHighlightingOfInvisibleCharactersAction())),
|
|
59
59
|
};
|
|
60
60
|
}
|
|
@@ -321,7 +321,7 @@ class ViewportUnicodeHighlighter extends Disposable {
|
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
const configureUnicodeHighlightOptionsStr = ( localize(
|
|
324
|
+
const configureUnicodeHighlightOptionsStr = ( localize(1565, 'Configure Unicode Highlight Options'));
|
|
325
325
|
let UnicodeHighlighterHoverParticipant = class UnicodeHighlighterHoverParticipant {
|
|
326
326
|
constructor(_editor, _languageService, _openerService) {
|
|
327
327
|
this._editor = _editor;
|
|
@@ -354,7 +354,7 @@ let UnicodeHighlighterHoverParticipant = class UnicodeHighlighterHoverParticipan
|
|
|
354
354
|
case 0 : {
|
|
355
355
|
if (isBasicASCII(highlightInfo.reason.confusableWith)) {
|
|
356
356
|
reason = ( localize(
|
|
357
|
-
|
|
357
|
+
1566,
|
|
358
358
|
'The character {0} could be confused with the ASCII character {1}, which is more common in source code.',
|
|
359
359
|
codePointStr,
|
|
360
360
|
formatCodePointMarkdown(highlightInfo.reason.confusableWith.codePointAt(0))
|
|
@@ -362,7 +362,7 @@ let UnicodeHighlighterHoverParticipant = class UnicodeHighlighterHoverParticipan
|
|
|
362
362
|
}
|
|
363
363
|
else {
|
|
364
364
|
reason = ( localize(
|
|
365
|
-
|
|
365
|
+
1567,
|
|
366
366
|
'The character {0} could be confused with the character {1}, which is more common in source code.',
|
|
367
367
|
codePointStr,
|
|
368
368
|
formatCodePointMarkdown(highlightInfo.reason.confusableWith.codePointAt(0))
|
|
@@ -371,10 +371,10 @@ let UnicodeHighlighterHoverParticipant = class UnicodeHighlighterHoverParticipan
|
|
|
371
371
|
break;
|
|
372
372
|
}
|
|
373
373
|
case 1 :
|
|
374
|
-
reason = ( localize(
|
|
374
|
+
reason = ( localize(1568, 'The character {0} is invisible.', codePointStr));
|
|
375
375
|
break;
|
|
376
376
|
case 2 :
|
|
377
|
-
reason = ( localize(
|
|
377
|
+
reason = ( localize(1569, 'The character {0} is not a basic ASCII character.', codePointStr));
|
|
378
378
|
break;
|
|
379
379
|
}
|
|
380
380
|
if (( (existedReason.has(reason)))) {
|
|
@@ -387,7 +387,7 @@ let UnicodeHighlighterHoverParticipant = class UnicodeHighlighterHoverParticipan
|
|
|
387
387
|
inComment: highlightInfo.inComment,
|
|
388
388
|
inString: highlightInfo.inString,
|
|
389
389
|
};
|
|
390
|
-
const adjustSettings = ( localize(
|
|
390
|
+
const adjustSettings = ( localize(1570, 'Adjust settings'));
|
|
391
391
|
const uri = `command:${ShowExcludeOptions.ID}?${encodeURIComponent(JSON.stringify(adjustSettingsArgs))}`;
|
|
392
392
|
const markdown = ( (new MarkdownString('', true)))
|
|
393
393
|
.appendMarkdown(reason)
|
|
@@ -459,11 +459,11 @@ class DisableHighlightingInCommentsAction extends EditorAction {
|
|
|
459
459
|
constructor() {
|
|
460
460
|
super({
|
|
461
461
|
id: DisableHighlightingOfAmbiguousCharactersAction.ID,
|
|
462
|
-
label: ( localize(
|
|
462
|
+
label: ( localize(1571, 'Disable highlighting of characters in comments')),
|
|
463
463
|
alias: 'Disable highlighting of characters in comments',
|
|
464
464
|
precondition: undefined
|
|
465
465
|
});
|
|
466
|
-
this.shortLabel = ( localize(
|
|
466
|
+
this.shortLabel = ( localize(1572, 'Disable Highlight In Comments'));
|
|
467
467
|
}
|
|
468
468
|
async run(accessor, editor, args) {
|
|
469
469
|
const configurationService = accessor?.get(IConfigurationService);
|
|
@@ -480,11 +480,11 @@ class DisableHighlightingInStringsAction extends EditorAction {
|
|
|
480
480
|
constructor() {
|
|
481
481
|
super({
|
|
482
482
|
id: DisableHighlightingOfAmbiguousCharactersAction.ID,
|
|
483
|
-
label: ( localize(
|
|
483
|
+
label: ( localize(1573, 'Disable highlighting of characters in strings')),
|
|
484
484
|
alias: 'Disable highlighting of characters in strings',
|
|
485
485
|
precondition: undefined
|
|
486
486
|
});
|
|
487
|
-
this.shortLabel = ( localize(
|
|
487
|
+
this.shortLabel = ( localize(1574, 'Disable Highlight In Strings'));
|
|
488
488
|
}
|
|
489
489
|
async run(accessor, editor, args) {
|
|
490
490
|
const configurationService = accessor?.get(IConfigurationService);
|
|
@@ -501,11 +501,11 @@ class DisableHighlightingOfAmbiguousCharactersAction extends EditorAction {
|
|
|
501
501
|
constructor() {
|
|
502
502
|
super({
|
|
503
503
|
id: DisableHighlightingOfAmbiguousCharactersAction.ID,
|
|
504
|
-
label: ( localize(
|
|
504
|
+
label: ( localize(1575, 'Disable highlighting of ambiguous characters')),
|
|
505
505
|
alias: 'Disable highlighting of ambiguous characters',
|
|
506
506
|
precondition: undefined
|
|
507
507
|
});
|
|
508
|
-
this.shortLabel = ( localize(
|
|
508
|
+
this.shortLabel = ( localize(1576, 'Disable Ambiguous Highlight'));
|
|
509
509
|
}
|
|
510
510
|
async run(accessor, editor, args) {
|
|
511
511
|
const configurationService = accessor?.get(IConfigurationService);
|
|
@@ -522,11 +522,11 @@ class DisableHighlightingOfInvisibleCharactersAction extends EditorAction {
|
|
|
522
522
|
constructor() {
|
|
523
523
|
super({
|
|
524
524
|
id: DisableHighlightingOfInvisibleCharactersAction.ID,
|
|
525
|
-
label: ( localize(
|
|
525
|
+
label: ( localize(1577, 'Disable highlighting of invisible characters')),
|
|
526
526
|
alias: 'Disable highlighting of invisible characters',
|
|
527
527
|
precondition: undefined
|
|
528
528
|
});
|
|
529
|
-
this.shortLabel = ( localize(
|
|
529
|
+
this.shortLabel = ( localize(1578, 'Disable Invisible Highlight'));
|
|
530
530
|
}
|
|
531
531
|
async run(accessor, editor, args) {
|
|
532
532
|
const configurationService = accessor?.get(IConfigurationService);
|
|
@@ -543,11 +543,11 @@ class DisableHighlightingOfNonBasicAsciiCharactersAction extends EditorAction {
|
|
|
543
543
|
constructor() {
|
|
544
544
|
super({
|
|
545
545
|
id: DisableHighlightingOfNonBasicAsciiCharactersAction.ID,
|
|
546
|
-
label: ( localize(
|
|
546
|
+
label: ( localize(1579, 'Disable highlighting of non basic ASCII characters')),
|
|
547
547
|
alias: 'Disable highlighting of non basic ASCII characters',
|
|
548
548
|
precondition: undefined
|
|
549
549
|
});
|
|
550
|
-
this.shortLabel = ( localize(
|
|
550
|
+
this.shortLabel = ( localize(1580, 'Disable Non ASCII Highlight'));
|
|
551
551
|
}
|
|
552
552
|
async run(accessor, editor, args) {
|
|
553
553
|
const configurationService = accessor?.get(IConfigurationService);
|
|
@@ -564,7 +564,7 @@ class ShowExcludeOptions extends EditorAction {
|
|
|
564
564
|
constructor() {
|
|
565
565
|
super({
|
|
566
566
|
id: ShowExcludeOptions.ID,
|
|
567
|
-
label: ( localize(
|
|
567
|
+
label: ( localize(1581, "Show Exclude Options")),
|
|
568
568
|
alias: 'Show Exclude Options',
|
|
569
569
|
precondition: undefined
|
|
570
570
|
});
|
|
@@ -577,13 +577,13 @@ class ShowExcludeOptions extends EditorAction {
|
|
|
577
577
|
function getExcludeCharFromBeingHighlightedLabel(codePoint) {
|
|
578
578
|
if (InvisibleCharacters.isInvisibleCharacter(codePoint)) {
|
|
579
579
|
return ( localize(
|
|
580
|
-
|
|
580
|
+
1582,
|
|
581
581
|
'Exclude {0} (invisible character) from being highlighted',
|
|
582
582
|
codePointToHex(codePoint)
|
|
583
583
|
));
|
|
584
584
|
}
|
|
585
585
|
return ( localize(
|
|
586
|
-
|
|
586
|
+
1583,
|
|
587
587
|
'Exclude {0} from being highlighted',
|
|
588
588
|
`${codePointToHex(codePoint)} "${char}"`
|
|
589
589
|
));
|
|
@@ -593,7 +593,7 @@ class ShowExcludeOptions extends EditorAction {
|
|
|
593
593
|
for (const locale of reason.notAmbiguousInLocales) {
|
|
594
594
|
options.push({
|
|
595
595
|
label: ( localize(
|
|
596
|
-
|
|
596
|
+
1584,
|
|
597
597
|
"Allow unicode characters that are more common in the language \"{0}\".",
|
|
598
598
|
locale
|
|
599
599
|
)),
|
package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js
CHANGED
|
@@ -67,15 +67,15 @@ let UnusualLineTerminatorsDetector = class UnusualLineTerminatorsDetector extend
|
|
|
67
67
|
try {
|
|
68
68
|
this._isPresentingDialog = true;
|
|
69
69
|
result = await this._dialogService.confirm({
|
|
70
|
-
title: ( localize(
|
|
71
|
-
message: ( localize(
|
|
70
|
+
title: ( localize(1589, "Unusual Line Terminators")),
|
|
71
|
+
message: ( localize(1590, "Detected unusual line terminators")),
|
|
72
72
|
detail: ( localize(
|
|
73
|
-
|
|
73
|
+
1591,
|
|
74
74
|
"The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",
|
|
75
75
|
basename(model.uri)
|
|
76
76
|
)),
|
|
77
|
-
primaryButton: ( localize(
|
|
78
|
-
cancelButton: ( localize(
|
|
77
|
+
primaryButton: ( localize(1592, "&&Remove Unusual Line Terminators")),
|
|
78
|
+
cancelButton: ( localize(1593, "Ignore"))
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
finally {
|
|
@@ -10,6 +10,7 @@ import { Schemas, matchesScheme } from '../../../../base/common/network.js';
|
|
|
10
10
|
import { isEqual } from '../../../../base/common/resources.js';
|
|
11
11
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
12
12
|
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.service.js';
|
|
13
|
+
import { ILogService } from '../../../../platform/log/common/log.service.js';
|
|
13
14
|
import { isDiffEditor } from '../../../browser/editorBrowser.js';
|
|
14
15
|
import { registerModelAndPositionCommand, registerEditorContribution, registerEditorAction, EditorAction } from '../../../browser/editorExtensions.js';
|
|
15
16
|
import { ICodeEditorService } from '../../../browser/services/codeEditorService.js';
|
|
@@ -152,7 +153,7 @@ let WordHighlighter = class WordHighlighter {
|
|
|
152
153
|
static { WordHighlighter_1 = this; }
|
|
153
154
|
static { this.storedDecorationIDs = ( (new ResourceMap())); }
|
|
154
155
|
static { this.query = null; }
|
|
155
|
-
constructor(editor, providers, multiProviders, contextKeyService, textModelService, codeEditorService) {
|
|
156
|
+
constructor(editor, providers, multiProviders, contextKeyService, textModelService, codeEditorService, logService) {
|
|
156
157
|
this.toUnhook = ( (new DisposableStore()));
|
|
157
158
|
this.workerRequestTokenId = 0;
|
|
158
159
|
this.workerRequestCompleted = false;
|
|
@@ -165,6 +166,7 @@ let WordHighlighter = class WordHighlighter {
|
|
|
165
166
|
this.multiDocumentProviders = multiProviders;
|
|
166
167
|
this.codeEditorService = codeEditorService;
|
|
167
168
|
this.textModelService = textModelService;
|
|
169
|
+
this.logService = logService;
|
|
168
170
|
this._hasWordHighlights = ctxHasWordHighlights.bindTo(contextKeyService);
|
|
169
171
|
this._ignorePositionChangeEvent = false;
|
|
170
172
|
this.occurrencesHighlight = this.editor.getOption(83 );
|
|
@@ -501,15 +503,22 @@ let WordHighlighter = class WordHighlighter {
|
|
|
501
503
|
return;
|
|
502
504
|
}
|
|
503
505
|
const queryModelRef = await this.textModelService.createModelReference(WordHighlighter_1.query.modelInfo.modelURI);
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
506
|
+
try {
|
|
507
|
+
this.workerRequest = this.computeWithModel(queryModelRef.object.textEditorModel, WordHighlighter_1.query.modelInfo.selection, otherModelsToHighlight);
|
|
508
|
+
this.workerRequest?.result.then(data => {
|
|
509
|
+
if (myRequestId === this.workerRequestTokenId) {
|
|
510
|
+
this.workerRequestCompleted = true;
|
|
511
|
+
this.workerRequestValue = data || [];
|
|
512
|
+
this._beginRenderDecorations();
|
|
513
|
+
}
|
|
514
|
+
}, onUnexpectedError);
|
|
515
|
+
}
|
|
516
|
+
catch (e) {
|
|
517
|
+
this.logService.error('Unexpected error during occurrence request. Log: ', e);
|
|
518
|
+
}
|
|
519
|
+
finally {
|
|
520
|
+
queryModelRef.dispose();
|
|
521
|
+
}
|
|
513
522
|
}
|
|
514
523
|
else if (this.model.uri.scheme === Schemas.vscodeNotebookCell) {
|
|
515
524
|
const myRequestId = ++this.workerRequestTokenId;
|
|
@@ -518,15 +527,22 @@ let WordHighlighter = class WordHighlighter {
|
|
|
518
527
|
return;
|
|
519
528
|
}
|
|
520
529
|
const queryModelRef = await this.textModelService.createModelReference(WordHighlighter_1.query.modelInfo.modelURI);
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
+
try {
|
|
531
|
+
this.workerRequest = this.computeWithModel(queryModelRef.object.textEditorModel, WordHighlighter_1.query.modelInfo.selection, [this.model]);
|
|
532
|
+
this.workerRequest?.result.then(data => {
|
|
533
|
+
if (myRequestId === this.workerRequestTokenId) {
|
|
534
|
+
this.workerRequestCompleted = true;
|
|
535
|
+
this.workerRequestValue = data || [];
|
|
536
|
+
this._beginRenderDecorations(noDelay);
|
|
537
|
+
}
|
|
538
|
+
}, onUnexpectedError);
|
|
539
|
+
}
|
|
540
|
+
catch (e) {
|
|
541
|
+
this.logService.error('Unexpected error during occurrence request. Log: ', e);
|
|
542
|
+
}
|
|
543
|
+
finally {
|
|
544
|
+
queryModelRef.dispose();
|
|
545
|
+
}
|
|
530
546
|
}
|
|
531
547
|
}
|
|
532
548
|
computeWithModel(model, selection, otherModels) {
|
|
@@ -594,7 +610,8 @@ let WordHighlighter = class WordHighlighter {
|
|
|
594
610
|
};
|
|
595
611
|
WordHighlighter = WordHighlighter_1 = ( (__decorate([
|
|
596
612
|
( (__param(4, ITextModelService))),
|
|
597
|
-
( (__param(5, ICodeEditorService)))
|
|
613
|
+
( (__param(5, ICodeEditorService))),
|
|
614
|
+
( (__param(6, ILogService)))
|
|
598
615
|
], WordHighlighter)));
|
|
599
616
|
let WordHighlighterContribution = class WordHighlighterContribution extends Disposable {
|
|
600
617
|
static { WordHighlighterContribution_1 = this; }
|
|
@@ -602,7 +619,7 @@ let WordHighlighterContribution = class WordHighlighterContribution extends Disp
|
|
|
602
619
|
static get(editor) {
|
|
603
620
|
return editor.getContribution(WordHighlighterContribution_1.ID);
|
|
604
621
|
}
|
|
605
|
-
constructor(editor, contextKeyService, languageFeaturesService, codeEditorService, textModelService) {
|
|
622
|
+
constructor(editor, contextKeyService, languageFeaturesService, codeEditorService, textModelService, logService) {
|
|
606
623
|
super();
|
|
607
624
|
this._wordHighlighter = null;
|
|
608
625
|
const createWordHighlighterIfPossible = () => {
|
|
@@ -613,7 +630,8 @@ let WordHighlighterContribution = class WordHighlighterContribution extends Disp
|
|
|
613
630
|
languageFeaturesService.multiDocumentHighlightProvider,
|
|
614
631
|
contextKeyService,
|
|
615
632
|
textModelService,
|
|
616
|
-
codeEditorService
|
|
633
|
+
codeEditorService,
|
|
634
|
+
logService
|
|
617
635
|
)));
|
|
618
636
|
}
|
|
619
637
|
};
|
|
@@ -664,7 +682,8 @@ WordHighlighterContribution = WordHighlighterContribution_1 = ( (__decorate([
|
|
|
664
682
|
( (__param(1, IContextKeyService))),
|
|
665
683
|
( (__param(2, ILanguageFeaturesService))),
|
|
666
684
|
( (__param(3, ICodeEditorService))),
|
|
667
|
-
( (__param(4, ITextModelService)))
|
|
685
|
+
( (__param(4, ITextModelService))),
|
|
686
|
+
( (__param(5, ILogService)))
|
|
668
687
|
], WordHighlighterContribution)));
|
|
669
688
|
class WordHighlightNavigationAction extends EditorAction {
|
|
670
689
|
constructor(next, opts) {
|
|
@@ -688,7 +707,7 @@ class NextWordHighlightAction extends WordHighlightNavigationAction {
|
|
|
688
707
|
constructor() {
|
|
689
708
|
super(true, {
|
|
690
709
|
id: 'editor.action.wordHighlight.next',
|
|
691
|
-
label: ( localize(
|
|
710
|
+
label: ( localize(1594, "Go to Next Symbol Highlight")),
|
|
692
711
|
alias: 'Go to Next Symbol Highlight',
|
|
693
712
|
precondition: ctxHasWordHighlights,
|
|
694
713
|
kbOpts: {
|
|
@@ -703,7 +722,7 @@ class PrevWordHighlightAction extends WordHighlightNavigationAction {
|
|
|
703
722
|
constructor() {
|
|
704
723
|
super(false, {
|
|
705
724
|
id: 'editor.action.wordHighlight.prev',
|
|
706
|
-
label: ( localize(
|
|
725
|
+
label: ( localize(1595, "Go to Previous Symbol Highlight")),
|
|
707
726
|
alias: 'Go to Previous Symbol Highlight',
|
|
708
727
|
precondition: ctxHasWordHighlights,
|
|
709
728
|
kbOpts: {
|
|
@@ -718,7 +737,7 @@ class TriggerWordHighlightAction extends EditorAction {
|
|
|
718
737
|
constructor() {
|
|
719
738
|
super({
|
|
720
739
|
id: 'editor.action.wordHighlight.trigger',
|
|
721
|
-
label: ( localize(
|
|
740
|
+
label: ( localize(1596, "Trigger Symbol Highlight")),
|
|
722
741
|
alias: 'Trigger Symbol Highlight',
|
|
723
742
|
precondition: undefined,
|
|
724
743
|
kbOpts: {
|
|
@@ -415,7 +415,7 @@ class DeleteInsideWord extends EditorAction {
|
|
|
415
415
|
super({
|
|
416
416
|
id: 'deleteInsideWord',
|
|
417
417
|
precondition: EditorContextKeys.writable,
|
|
418
|
-
label: ( localize(
|
|
418
|
+
label: ( localize(1599, "Delete Word")),
|
|
419
419
|
alias: 'Delete Word'
|
|
420
420
|
});
|
|
421
421
|
}
|