@codingame/monaco-vscode-api 10.1.3 → 10.1.4
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/package.json +8 -8
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +3 -3
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +9 -9
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
- package/vscode/src/vs/editor/common/config/editorOptions.js +368 -368
- 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/common/standaloneStrings.js +32 -32
- 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/codeActionCommands.js +28 -28
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- 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/copyPasteController.js +7 -7
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
- 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/gotoError/browser/gotoErrorWidget.js +14 -14
- 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/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +14 -14
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +3 -3
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- 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/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- 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/editorPlaceholder.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- package/vscode/src/vs/workbench/browser/window.js +16 -16
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +10 -10
- 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/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/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +21 -21
- 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/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +3 -3
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/activity/common/activity.js +4 -4
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- 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/extensions/common/extensionsRegistry.js +82 -82
- 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/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- 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/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
|
@@ -30,7 +30,7 @@ import { isCancellationError, CancellationError } from '../../../../base/common/
|
|
|
30
30
|
import { ClipboardEventUtils } from '../../../browser/controller/editContext/textArea/textAreaEditContextInput.js';
|
|
31
31
|
var CopyPasteController_1;
|
|
32
32
|
const changePasteTypeCommandId = 'editor.changePasteType';
|
|
33
|
-
const pasteWidgetVisibleCtx = ( (new RawContextKey('pasteWidgetVisible', false, ( localize(
|
|
33
|
+
const pasteWidgetVisibleCtx = ( (new RawContextKey('pasteWidgetVisible', false, ( localize(4956, "Whether the paste widget is showing")))));
|
|
34
34
|
const vscodeClipboardMime = 'application/vnd.code.copyMetadata';
|
|
35
35
|
let CopyPasteController = class CopyPasteController extends Disposable {
|
|
36
36
|
static { CopyPasteController_1 = this; }
|
|
@@ -51,7 +51,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
51
51
|
this._register(addDisposableListener(container, 'cut', e => this.handleCopy(e)));
|
|
52
52
|
this._register(addDisposableListener(container, 'paste', e => this.handlePaste(e), true));
|
|
53
53
|
this._pasteProgressManager = this._register(( (new InlineProgressManager('pasteIntoEditor', editor, instantiationService))));
|
|
54
|
-
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: ( localize(
|
|
54
|
+
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: ( localize(4957, "Show paste options...")) }));
|
|
55
55
|
}
|
|
56
56
|
changePasteType() {
|
|
57
57
|
this._postPasteWidgetManager.tryShowSelector();
|
|
@@ -200,7 +200,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
200
200
|
}
|
|
201
201
|
showPasteAsNoEditMessage(selections, preference) {
|
|
202
202
|
MessageController.get(this._editor)?.showMessage(( localize(
|
|
203
|
-
|
|
203
|
+
4958,
|
|
204
204
|
"No paste edits for '{0}' found",
|
|
205
205
|
preference instanceof HierarchicalKind ? preference.value : preference.providerId
|
|
206
206
|
)), selections[0].getStartPosition());
|
|
@@ -256,7 +256,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
256
256
|
try {
|
|
257
257
|
const resolveP = edit.provider.resolveDocumentPasteEdit?.(edit, token);
|
|
258
258
|
const showP = ( (new DeferredPromise()));
|
|
259
|
-
const resolved = resolveP && (await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(
|
|
259
|
+
const resolved = resolveP && (await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(4959, "Resolving paste edit. Click to cancel")), Promise.race([showP.p, resolveP]), {
|
|
260
260
|
cancel: () => {
|
|
261
261
|
showP.cancel();
|
|
262
262
|
return reject(( (new CancellationError())));
|
|
@@ -284,7 +284,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
});
|
|
287
|
-
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(
|
|
287
|
+
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(4960, "Running paste handlers. Click to cancel and do basic paste")), p, {
|
|
288
288
|
cancel: async () => {
|
|
289
289
|
try {
|
|
290
290
|
p.cancel();
|
|
@@ -362,7 +362,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
362
362
|
description: edit.kind?.value,
|
|
363
363
|
edit,
|
|
364
364
|
})))), {
|
|
365
|
-
placeHolder: ( localize(
|
|
365
|
+
placeHolder: ( localize(4961, "Select Paste Action")),
|
|
366
366
|
});
|
|
367
367
|
pickedEdit = selected?.edit;
|
|
368
368
|
}
|
|
@@ -381,7 +381,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
381
381
|
});
|
|
382
382
|
this._progressService.withProgress({
|
|
383
383
|
location: 10 ,
|
|
384
|
-
title: ( localize(
|
|
384
|
+
title: ( localize(4962, "Running paste handlers")),
|
|
385
385
|
}, () => p);
|
|
386
386
|
}
|
|
387
387
|
setCopyMetadata(dataTransfer, metadata) {
|
|
@@ -54,7 +54,7 @@ class DefaultTextPasteOrDropEditProvider extends SimplePasteAndDropProvider {
|
|
|
54
54
|
const insertText = await textEntry.asString();
|
|
55
55
|
return {
|
|
56
56
|
handledMimeType: Mimes.text,
|
|
57
|
-
title: ( localize(
|
|
57
|
+
title: ( localize(5012, "Insert Plain Text")),
|
|
58
58
|
insertText,
|
|
59
59
|
kind: this.kind,
|
|
60
60
|
};
|
|
@@ -87,13 +87,13 @@ class PathProvider extends SimplePasteAndDropProvider {
|
|
|
87
87
|
let label;
|
|
88
88
|
if (uriCount > 0) {
|
|
89
89
|
label = entries.length > 1
|
|
90
|
-
? ( localize(
|
|
91
|
-
: ( localize(
|
|
90
|
+
? ( localize(5013, "Insert Uris"))
|
|
91
|
+
: ( localize(5014, "Insert Uri"));
|
|
92
92
|
}
|
|
93
93
|
else {
|
|
94
94
|
label = entries.length > 1
|
|
95
|
-
? ( localize(
|
|
96
|
-
: ( localize(
|
|
95
|
+
? ( localize(5015, "Insert Paths"))
|
|
96
|
+
: ( localize(5016, "Insert Path"));
|
|
97
97
|
}
|
|
98
98
|
return {
|
|
99
99
|
handledMimeType: Mimes.uriList,
|
|
@@ -127,8 +127,8 @@ let RelativePathProvider = class RelativePathProvider extends SimplePasteAndDrop
|
|
|
127
127
|
handledMimeType: Mimes.uriList,
|
|
128
128
|
insertText: relativeUris.join(' '),
|
|
129
129
|
title: entries.length > 1
|
|
130
|
-
? ( localize(
|
|
131
|
-
: ( localize(
|
|
130
|
+
? ( localize(5017, "Insert Relative Paths"))
|
|
131
|
+
: ( localize(5018, "Insert Relative Path")),
|
|
132
132
|
kind: this.kind,
|
|
133
133
|
};
|
|
134
134
|
}
|
|
@@ -156,7 +156,7 @@ class PasteHtmlProvider {
|
|
|
156
156
|
edits: [{
|
|
157
157
|
insertText: htmlText,
|
|
158
158
|
yieldTo: this._yieldTo,
|
|
159
|
-
title: ( localize(
|
|
159
|
+
title: ( localize(5019, 'Insert HTML')),
|
|
160
160
|
kind: this.kind,
|
|
161
161
|
}],
|
|
162
162
|
};
|
|
@@ -21,7 +21,7 @@ import { PostEditWidgetManager } from './postEditWidget.js';
|
|
|
21
21
|
var DropIntoEditorController_1;
|
|
22
22
|
const defaultProviderConfig = 'editor.experimental.dropIntoEditor.defaultProvider';
|
|
23
23
|
const changeDropTypeCommandId = 'editor.changeDropType';
|
|
24
|
-
const dropWidgetVisibleCtx = ( (new RawContextKey('dropWidgetVisible', false, ( localize(
|
|
24
|
+
const dropWidgetVisibleCtx = ( (new RawContextKey('dropWidgetVisible', false, ( localize(5020, "Whether the drop widget is showing")))));
|
|
25
25
|
let DropIntoEditorController = class DropIntoEditorController extends Disposable {
|
|
26
26
|
static { DropIntoEditorController_1 = this; }
|
|
27
27
|
static { this.ID = 'editor.contrib.dropIntoEditorController'; }
|
|
@@ -35,7 +35,7 @@ let DropIntoEditorController = class DropIntoEditorController extends Disposable
|
|
|
35
35
|
this._treeViewsDragAndDropService = _treeViewsDragAndDropService;
|
|
36
36
|
this.treeItemsTransfer = LocalSelectionTransfer.getInstance();
|
|
37
37
|
this._dropProgressManager = this._register(instantiationService.createInstance(InlineProgressManager, 'dropIntoEditor', editor));
|
|
38
|
-
this._postDropWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'dropIntoEditor', editor, dropWidgetVisibleCtx, { id: changeDropTypeCommandId, label: ( localize(
|
|
38
|
+
this._postDropWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'dropIntoEditor', editor, dropWidgetVisibleCtx, { id: changeDropTypeCommandId, label: ( localize(5021, "Show drop options...")) }));
|
|
39
39
|
this._register(editor.onDropIntoEditor(e => this.onDropIntoEditor(editor, e.position, e.event)));
|
|
40
40
|
}
|
|
41
41
|
clearWidgets() {
|
|
@@ -90,7 +90,7 @@ let DropIntoEditorController = class DropIntoEditorController extends Disposable
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
this._dropProgressManager.showWhile(position, ( localize(
|
|
93
|
+
this._dropProgressManager.showWhile(position, ( localize(5022, "Running drop handlers. Click to cancel")), p, { cancel: () => p.cancel() });
|
|
94
94
|
this._currentOperation = p;
|
|
95
95
|
}
|
|
96
96
|
async getDropEdits(providers, model, position, dataTransfer, tokenSource) {
|
|
@@ -143,7 +143,7 @@ let PostEditWidgetManager = class PostEditWidgetManager extends Disposable {
|
|
|
143
143
|
resolvedEdit = await resolve(edit, token);
|
|
144
144
|
}
|
|
145
145
|
catch (e) {
|
|
146
|
-
return handleError(e, ( localize(
|
|
146
|
+
return handleError(e, ( localize(9959, "Error resolving edit '{0}':\n{1}", edit.title, toErrorMessage(e))));
|
|
147
147
|
}
|
|
148
148
|
if (token.isCancellationRequested) {
|
|
149
149
|
return;
|
|
@@ -162,7 +162,7 @@ let PostEditWidgetManager = class PostEditWidgetManager extends Disposable {
|
|
|
162
162
|
editRange = model.getDecorationRange(editTrackingDecoration[0]);
|
|
163
163
|
}
|
|
164
164
|
catch (e) {
|
|
165
|
-
return handleError(e, ( localize(
|
|
165
|
+
return handleError(e, ( localize(9960, "Error applying edit '{0}':\n{1}", edit.title, toErrorMessage(e))));
|
|
166
166
|
}
|
|
167
167
|
finally {
|
|
168
168
|
model.deltaDecorations(editTrackingDecoration, []);
|
|
@@ -296,7 +296,7 @@ let CommonFindController = class CommonFindController extends Disposable {
|
|
|
296
296
|
replaceAll() {
|
|
297
297
|
if (this._model) {
|
|
298
298
|
if (this._editor.getModel()?.isTooLargeForHeapOperation()) {
|
|
299
|
-
this._notificationService.warn(( localize(
|
|
299
|
+
this._notificationService.warn(( localize(1238, "The file is too large to perform a replace all operation.")));
|
|
300
300
|
return false;
|
|
301
301
|
}
|
|
302
302
|
this._model.replaceAll();
|
|
@@ -419,7 +419,7 @@ FindController = ( (__decorate([
|
|
|
419
419
|
], FindController)));
|
|
420
420
|
const StartFindAction = registerMultiEditorAction(( (new MultiEditorAction({
|
|
421
421
|
id: FIND_IDS.StartFindAction,
|
|
422
|
-
label: ( localize(
|
|
422
|
+
label: ( localize(1239, "Find")),
|
|
423
423
|
alias: 'Find',
|
|
424
424
|
precondition: ( (ContextKeyExpr.or(
|
|
425
425
|
EditorContextKeys.focus,
|
|
@@ -433,7 +433,7 @@ const StartFindAction = registerMultiEditorAction(( (new MultiEditorAction({
|
|
|
433
433
|
menuOpts: {
|
|
434
434
|
menuId: MenuId.MenubarEditMenu,
|
|
435
435
|
group: '3_find',
|
|
436
|
-
title: ( localize(
|
|
436
|
+
title: ( localize(1240, "&&Find")),
|
|
437
437
|
order: 1
|
|
438
438
|
}
|
|
439
439
|
}))));
|
|
@@ -474,7 +474,7 @@ class StartFindWithArgsAction extends EditorAction {
|
|
|
474
474
|
constructor() {
|
|
475
475
|
super({
|
|
476
476
|
id: FIND_IDS.StartFindWithArgs,
|
|
477
|
-
label: ( localize(
|
|
477
|
+
label: ( localize(1241, "Find With Arguments")),
|
|
478
478
|
alias: 'Find With Arguments',
|
|
479
479
|
precondition: undefined,
|
|
480
480
|
kbOpts: {
|
|
@@ -515,7 +515,7 @@ class StartFindWithSelectionAction extends EditorAction {
|
|
|
515
515
|
constructor() {
|
|
516
516
|
super({
|
|
517
517
|
id: FIND_IDS.StartFindWithSelection,
|
|
518
|
-
label: ( localize(
|
|
518
|
+
label: ( localize(1242, "Find With Selection")),
|
|
519
519
|
alias: 'Find With Selection',
|
|
520
520
|
precondition: undefined,
|
|
521
521
|
kbOpts: {
|
|
@@ -567,7 +567,7 @@ class NextMatchFindAction extends MatchFindAction {
|
|
|
567
567
|
constructor() {
|
|
568
568
|
super({
|
|
569
569
|
id: FIND_IDS.NextMatchFindAction,
|
|
570
|
-
label: ( localize(
|
|
570
|
+
label: ( localize(1243, "Find Next")),
|
|
571
571
|
alias: 'Find Next',
|
|
572
572
|
precondition: undefined,
|
|
573
573
|
kbOpts: [{
|
|
@@ -595,7 +595,7 @@ class PreviousMatchFindAction extends MatchFindAction {
|
|
|
595
595
|
constructor() {
|
|
596
596
|
super({
|
|
597
597
|
id: FIND_IDS.PreviousMatchFindAction,
|
|
598
|
-
label: ( localize(
|
|
598
|
+
label: ( localize(1244, "Find Previous")),
|
|
599
599
|
alias: 'Find Previous',
|
|
600
600
|
precondition: undefined,
|
|
601
601
|
kbOpts: [{
|
|
@@ -619,7 +619,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
619
619
|
constructor() {
|
|
620
620
|
super({
|
|
621
621
|
id: FIND_IDS.GoToMatchFindAction,
|
|
622
|
-
label: ( localize(
|
|
622
|
+
label: ( localize(1245, "Go to Match...")),
|
|
623
623
|
alias: 'Go to Match...',
|
|
624
624
|
precondition: CONTEXT_FIND_WIDGET_VISIBLE
|
|
625
625
|
});
|
|
@@ -635,7 +635,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
635
635
|
const notificationService = accessor.get(INotificationService);
|
|
636
636
|
notificationService.notify({
|
|
637
637
|
severity: Severity$1.Warning,
|
|
638
|
-
message: ( localize(
|
|
638
|
+
message: ( localize(1246, "No matches. Try searching for something else."))
|
|
639
639
|
});
|
|
640
640
|
return;
|
|
641
641
|
}
|
|
@@ -643,7 +643,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
643
643
|
const disposables = ( (new DisposableStore()));
|
|
644
644
|
const inputBox = disposables.add(quickInputService.createInputBox());
|
|
645
645
|
inputBox.placeholder = ( localize(
|
|
646
|
-
|
|
646
|
+
1247,
|
|
647
647
|
"Type a number to go to a specific match (between 1 and {0})",
|
|
648
648
|
matchesCount
|
|
649
649
|
));
|
|
@@ -673,7 +673,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
673
673
|
}
|
|
674
674
|
else {
|
|
675
675
|
inputBox.validationMessage = ( localize(
|
|
676
|
-
|
|
676
|
+
1248,
|
|
677
677
|
"Please type a number between 1 and {0}",
|
|
678
678
|
controller.getState().matchesCount
|
|
679
679
|
));
|
|
@@ -691,7 +691,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
691
691
|
}
|
|
692
692
|
else {
|
|
693
693
|
inputBox.validationMessage = ( localize(
|
|
694
|
-
|
|
694
|
+
1248,
|
|
695
695
|
"Please type a number between 1 and {0}",
|
|
696
696
|
controller.getState().matchesCount
|
|
697
697
|
));
|
|
@@ -762,7 +762,7 @@ class NextSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
762
762
|
constructor() {
|
|
763
763
|
super({
|
|
764
764
|
id: FIND_IDS.NextSelectionMatchFindAction,
|
|
765
|
-
label: ( localize(
|
|
765
|
+
label: ( localize(1249, "Find Next Selection")),
|
|
766
766
|
alias: 'Find Next Selection',
|
|
767
767
|
precondition: undefined,
|
|
768
768
|
kbOpts: {
|
|
@@ -780,7 +780,7 @@ class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
780
780
|
constructor() {
|
|
781
781
|
super({
|
|
782
782
|
id: FIND_IDS.PreviousSelectionMatchFindAction,
|
|
783
|
-
label: ( localize(
|
|
783
|
+
label: ( localize(1250, "Find Previous Selection")),
|
|
784
784
|
alias: 'Find Previous Selection',
|
|
785
785
|
precondition: undefined,
|
|
786
786
|
kbOpts: {
|
|
@@ -796,7 +796,7 @@ class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
796
796
|
}
|
|
797
797
|
const StartFindReplaceAction = registerMultiEditorAction(( (new MultiEditorAction({
|
|
798
798
|
id: FIND_IDS.StartFindReplaceAction,
|
|
799
|
-
label: ( localize(
|
|
799
|
+
label: ( localize(1251, "Replace")),
|
|
800
800
|
alias: 'Replace',
|
|
801
801
|
precondition: ( (ContextKeyExpr.or(
|
|
802
802
|
EditorContextKeys.focus,
|
|
@@ -811,7 +811,7 @@ const StartFindReplaceAction = registerMultiEditorAction(( (new MultiEditorActio
|
|
|
811
811
|
menuOpts: {
|
|
812
812
|
menuId: MenuId.MenubarEditMenu,
|
|
813
813
|
group: '3_find',
|
|
814
|
-
title: ( localize(
|
|
814
|
+
title: ( localize(1252, "&&Replace")),
|
|
815
815
|
order: 2
|
|
816
816
|
}
|
|
817
817
|
}))));
|
|
@@ -33,32 +33,32 @@ import { isHighContrast } from '../../../../platform/theme/common/theme.js';
|
|
|
33
33
|
import { assertIsDefined } from '../../../../base/common/types.js';
|
|
34
34
|
import { defaultInputBoxStyles, defaultToggleStyles } from '../../../../platform/theme/browser/defaultStyles.js';
|
|
35
35
|
import { createInstantHoverDelegate, getDefaultHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegateFactory.js';
|
|
36
|
-
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, ( localize(
|
|
37
|
-
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, ( localize(
|
|
38
|
-
const findSelectionIcon = registerIcon('find-selection', Codicon.selection, ( localize(
|
|
39
|
-
const findReplaceIcon = registerIcon('find-replace', Codicon.replace, ( localize(
|
|
40
|
-
const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, ( localize(
|
|
41
|
-
const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, ( localize(
|
|
42
|
-
const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, ( localize(
|
|
43
|
-
const NLS_FIND_DIALOG_LABEL = ( localize(
|
|
44
|
-
const NLS_FIND_INPUT_LABEL = ( localize(
|
|
45
|
-
const NLS_FIND_INPUT_PLACEHOLDER = ( localize(
|
|
46
|
-
const NLS_PREVIOUS_MATCH_BTN_LABEL = ( localize(
|
|
47
|
-
const NLS_NEXT_MATCH_BTN_LABEL = ( localize(
|
|
48
|
-
const NLS_TOGGLE_SELECTION_FIND_TITLE = ( localize(
|
|
49
|
-
const NLS_CLOSE_BTN_LABEL = ( localize(
|
|
50
|
-
const NLS_REPLACE_INPUT_LABEL = ( localize(
|
|
51
|
-
const NLS_REPLACE_INPUT_PLACEHOLDER = ( localize(
|
|
52
|
-
const NLS_REPLACE_BTN_LABEL = ( localize(
|
|
53
|
-
const NLS_REPLACE_ALL_BTN_LABEL = ( localize(
|
|
54
|
-
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = ( localize(
|
|
36
|
+
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, ( localize(5023, 'Icon to indicate that the editor find widget is collapsed.')));
|
|
37
|
+
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, ( localize(5024, 'Icon to indicate that the editor find widget is expanded.')));
|
|
38
|
+
const findSelectionIcon = registerIcon('find-selection', Codicon.selection, ( localize(5025, 'Icon for \'Find in Selection\' in the editor find widget.')));
|
|
39
|
+
const findReplaceIcon = registerIcon('find-replace', Codicon.replace, ( localize(5026, 'Icon for \'Replace\' in the editor find widget.')));
|
|
40
|
+
const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, ( localize(5027, 'Icon for \'Replace All\' in the editor find widget.')));
|
|
41
|
+
const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, ( localize(5028, 'Icon for \'Find Previous\' in the editor find widget.')));
|
|
42
|
+
const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, ( localize(5029, 'Icon for \'Find Next\' in the editor find widget.')));
|
|
43
|
+
const NLS_FIND_DIALOG_LABEL = ( localize(5030, "Find / Replace"));
|
|
44
|
+
const NLS_FIND_INPUT_LABEL = ( localize(5031, "Find"));
|
|
45
|
+
const NLS_FIND_INPUT_PLACEHOLDER = ( localize(5032, "Find"));
|
|
46
|
+
const NLS_PREVIOUS_MATCH_BTN_LABEL = ( localize(5033, "Previous Match"));
|
|
47
|
+
const NLS_NEXT_MATCH_BTN_LABEL = ( localize(5034, "Next Match"));
|
|
48
|
+
const NLS_TOGGLE_SELECTION_FIND_TITLE = ( localize(5035, "Find in Selection"));
|
|
49
|
+
const NLS_CLOSE_BTN_LABEL = ( localize(5036, "Close"));
|
|
50
|
+
const NLS_REPLACE_INPUT_LABEL = ( localize(5037, "Replace"));
|
|
51
|
+
const NLS_REPLACE_INPUT_PLACEHOLDER = ( localize(5038, "Replace"));
|
|
52
|
+
const NLS_REPLACE_BTN_LABEL = ( localize(5039, "Replace"));
|
|
53
|
+
const NLS_REPLACE_ALL_BTN_LABEL = ( localize(5040, "Replace All"));
|
|
54
|
+
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = ( localize(5041, "Toggle Replace"));
|
|
55
55
|
const NLS_MATCHES_COUNT_LIMIT_TITLE = ( localize(
|
|
56
|
-
|
|
56
|
+
5042,
|
|
57
57
|
"Only the first {0} results are highlighted, but all find operations work on the entire text.",
|
|
58
58
|
MATCHES_LIMIT
|
|
59
59
|
));
|
|
60
|
-
const NLS_MATCHES_LOCATION = ( localize(
|
|
61
|
-
const NLS_NO_RESULTS = ( localize(
|
|
60
|
+
const NLS_MATCHES_LOCATION = ( localize(5043, "{0} of {1}"));
|
|
61
|
+
const NLS_NO_RESULTS = ( localize(5044, "No results"));
|
|
62
62
|
const FIND_WIDGET_INITIAL_WIDTH = 419;
|
|
63
63
|
const PART_WIDTH = 275;
|
|
64
64
|
const FIND_INPUT_AREA_WIDTH = PART_WIDTH - 54;
|
|
@@ -330,12 +330,12 @@ class FindWidget extends Widget {
|
|
|
330
330
|
_getAriaLabel(label, currentMatch, searchString) {
|
|
331
331
|
if (label === NLS_NO_RESULTS) {
|
|
332
332
|
return searchString === ''
|
|
333
|
-
? ( localize(
|
|
334
|
-
: ( localize(
|
|
333
|
+
? ( localize(5045, "{0} found", label))
|
|
334
|
+
: ( localize(5046, "{0} found for '{1}'", label, searchString));
|
|
335
335
|
}
|
|
336
336
|
if (currentMatch) {
|
|
337
337
|
const ariaLabel = ( localize(
|
|
338
|
-
|
|
338
|
+
5047,
|
|
339
339
|
"{0} found for '{1}', at {2}",
|
|
340
340
|
label,
|
|
341
341
|
searchString,
|
|
@@ -348,7 +348,7 @@ class FindWidget extends Widget {
|
|
|
348
348
|
}
|
|
349
349
|
return ariaLabel;
|
|
350
350
|
}
|
|
351
|
-
return ( localize(
|
|
351
|
+
return ( localize(5048, "{0} found for '{1}'", label, searchString));
|
|
352
352
|
}
|
|
353
353
|
_updateToggleSelectionFindButton() {
|
|
354
354
|
const selection = this._codeEditor.getSelection();
|
|
@@ -681,7 +681,7 @@ class FindWidget extends Widget {
|
|
|
681
681
|
else {
|
|
682
682
|
if (isWindows && isNative && !this._ctrlEnterReplaceAllWarningPrompted) {
|
|
683
683
|
this._notificationService.info(( localize(
|
|
684
|
-
|
|
684
|
+
5049,
|
|
685
685
|
'Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.'
|
|
686
686
|
)));
|
|
687
687
|
this._ctrlEnterReplaceAllWarningPrompted = true;
|
|
@@ -5,7 +5,7 @@ class EditorFontZoomIn extends EditorAction {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
super({
|
|
7
7
|
id: 'editor.action.fontZoomIn',
|
|
8
|
-
label: ( localize(
|
|
8
|
+
label: ( localize(1253, "Increase Editor Font Size")),
|
|
9
9
|
alias: 'Increase Editor Font Size',
|
|
10
10
|
precondition: undefined
|
|
11
11
|
});
|
|
@@ -18,7 +18,7 @@ class EditorFontZoomOut extends EditorAction {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super({
|
|
20
20
|
id: 'editor.action.fontZoomOut',
|
|
21
|
-
label: ( localize(
|
|
21
|
+
label: ( localize(1254, "Decrease Editor Font Size")),
|
|
22
22
|
alias: 'Decrease Editor Font Size',
|
|
23
23
|
precondition: undefined
|
|
24
24
|
});
|
|
@@ -31,7 +31,7 @@ class EditorFontZoomReset extends EditorAction {
|
|
|
31
31
|
constructor() {
|
|
32
32
|
super({
|
|
33
33
|
id: 'editor.action.fontZoomReset',
|
|
34
|
-
label: ( localize(
|
|
34
|
+
label: ( localize(1255, "Reset Editor Font Size")),
|
|
35
35
|
alias: 'Reset Editor Font Size',
|
|
36
36
|
precondition: undefined
|
|
37
37
|
});
|
|
@@ -160,7 +160,7 @@ class FormatDocumentAction extends EditorAction {
|
|
|
160
160
|
constructor() {
|
|
161
161
|
super({
|
|
162
162
|
id: 'editor.action.formatDocument',
|
|
163
|
-
label: ( localize(
|
|
163
|
+
label: ( localize(1256, "Format Document")),
|
|
164
164
|
alias: 'Format Document',
|
|
165
165
|
precondition: ( (ContextKeyExpr.and(
|
|
166
166
|
EditorContextKeys.notInCompositeEditor,
|
|
@@ -191,7 +191,7 @@ class FormatSelectionAction extends EditorAction {
|
|
|
191
191
|
constructor() {
|
|
192
192
|
super({
|
|
193
193
|
id: 'editor.action.formatSelection',
|
|
194
|
-
label: ( localize(
|
|
194
|
+
label: ( localize(1257, "Format Selection")),
|
|
195
195
|
alias: 'Format Selection',
|
|
196
196
|
precondition: ( (ContextKeyExpr.and(
|
|
197
197
|
EditorContextKeys.writable,
|
|
@@ -145,7 +145,7 @@ class MarkerNavigationAction extends EditorAction {
|
|
|
145
145
|
}
|
|
146
146
|
class NextMarkerAction extends MarkerNavigationAction {
|
|
147
147
|
static { this.ID = 'editor.action.marker.next'; }
|
|
148
|
-
static { this.LABEL = ( localize(
|
|
148
|
+
static { this.LABEL = ( localize(1294, "Go to Next Problem (Error, Warning, Info)")); }
|
|
149
149
|
constructor() {
|
|
150
150
|
super(true, false, {
|
|
151
151
|
id: NextMarkerAction.ID,
|
|
@@ -160,7 +160,7 @@ class NextMarkerAction extends MarkerNavigationAction {
|
|
|
160
160
|
menuOpts: {
|
|
161
161
|
menuId: MarkerNavigationWidget.TitleMenu,
|
|
162
162
|
title: NextMarkerAction.LABEL,
|
|
163
|
-
icon: registerIcon('marker-navigation-next', Codicon.arrowDown, ( localize(
|
|
163
|
+
icon: registerIcon('marker-navigation-next', Codicon.arrowDown, ( localize(1295, 'Icon for goto next marker.'))),
|
|
164
164
|
group: 'navigation',
|
|
165
165
|
order: 1
|
|
166
166
|
}
|
|
@@ -169,7 +169,7 @@ class NextMarkerAction extends MarkerNavigationAction {
|
|
|
169
169
|
}
|
|
170
170
|
class PrevMarkerAction extends MarkerNavigationAction {
|
|
171
171
|
static { this.ID = 'editor.action.marker.prev'; }
|
|
172
|
-
static { this.LABEL = ( localize(
|
|
172
|
+
static { this.LABEL = ( localize(1296, "Go to Previous Problem (Error, Warning, Info)")); }
|
|
173
173
|
constructor() {
|
|
174
174
|
super(false, false, {
|
|
175
175
|
id: PrevMarkerAction.ID,
|
|
@@ -184,7 +184,7 @@ class PrevMarkerAction extends MarkerNavigationAction {
|
|
|
184
184
|
menuOpts: {
|
|
185
185
|
menuId: MarkerNavigationWidget.TitleMenu,
|
|
186
186
|
title: PrevMarkerAction.LABEL,
|
|
187
|
-
icon: registerIcon('marker-navigation-previous', Codicon.arrowUp, ( localize(
|
|
187
|
+
icon: registerIcon('marker-navigation-previous', Codicon.arrowUp, ( localize(1297, 'Icon for goto previous marker.'))),
|
|
188
188
|
group: 'navigation',
|
|
189
189
|
order: 2
|
|
190
190
|
}
|
|
@@ -195,7 +195,7 @@ class NextMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
195
195
|
constructor() {
|
|
196
196
|
super(true, true, {
|
|
197
197
|
id: 'editor.action.marker.nextInFiles',
|
|
198
|
-
label: ( localize(
|
|
198
|
+
label: ( localize(1298, "Go to Next Problem in Files (Error, Warning, Info)")),
|
|
199
199
|
alias: 'Go to Next Problem in Files (Error, Warning, Info)',
|
|
200
200
|
precondition: undefined,
|
|
201
201
|
kbOpts: {
|
|
@@ -205,7 +205,7 @@ class NextMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
205
205
|
},
|
|
206
206
|
menuOpts: {
|
|
207
207
|
menuId: MenuId.MenubarGoMenu,
|
|
208
|
-
title: ( localize(
|
|
208
|
+
title: ( localize(1299, "Next &&Problem")),
|
|
209
209
|
group: '6_problem_nav',
|
|
210
210
|
order: 1
|
|
211
211
|
}
|
|
@@ -216,7 +216,7 @@ class PrevMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
216
216
|
constructor() {
|
|
217
217
|
super(false, true, {
|
|
218
218
|
id: 'editor.action.marker.prevInFiles',
|
|
219
|
-
label: ( localize(
|
|
219
|
+
label: ( localize(1300, "Go to Previous Problem in Files (Error, Warning, Info)")),
|
|
220
220
|
alias: 'Go to Previous Problem in Files (Error, Warning, Info)',
|
|
221
221
|
precondition: undefined,
|
|
222
222
|
kbOpts: {
|
|
@@ -226,7 +226,7 @@ class PrevMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
226
226
|
},
|
|
227
227
|
menuOpts: {
|
|
228
228
|
menuId: MenuId.MenubarGoMenu,
|
|
229
|
-
title: ( localize(
|
|
229
|
+
title: ( localize(1301, "Previous &&Problem")),
|
|
230
230
|
group: '6_problem_nav',
|
|
231
231
|
order: 2
|
|
232
232
|
}
|
|
@@ -173,20 +173,20 @@ class MessageWidget {
|
|
|
173
173
|
let severityLabel = '';
|
|
174
174
|
switch (marker.severity) {
|
|
175
175
|
case MarkerSeverity.Error:
|
|
176
|
-
severityLabel = ( localize(
|
|
176
|
+
severityLabel = ( localize(5104, "Error"));
|
|
177
177
|
break;
|
|
178
178
|
case MarkerSeverity.Warning:
|
|
179
|
-
severityLabel = ( localize(
|
|
179
|
+
severityLabel = ( localize(5105, "Warning"));
|
|
180
180
|
break;
|
|
181
181
|
case MarkerSeverity.Info:
|
|
182
|
-
severityLabel = ( localize(
|
|
182
|
+
severityLabel = ( localize(5106, "Info"));
|
|
183
183
|
break;
|
|
184
184
|
case MarkerSeverity.Hint:
|
|
185
|
-
severityLabel = ( localize(
|
|
185
|
+
severityLabel = ( localize(5107, "Hint"));
|
|
186
186
|
break;
|
|
187
187
|
}
|
|
188
188
|
let ariaLabel = ( localize(
|
|
189
|
-
|
|
189
|
+
5108,
|
|
190
190
|
"{0} at {1}. ",
|
|
191
191
|
severityLabel,
|
|
192
192
|
marker.startLineNumber + ':' + marker.startColumn
|
|
@@ -295,8 +295,8 @@ let MarkerNavigationWidget = class MarkerNavigationWidget extends PeekViewWidget
|
|
|
295
295
|
const model = this.editor.getModel();
|
|
296
296
|
if (model) {
|
|
297
297
|
const detail = markerCount > 1
|
|
298
|
-
? ( localize(
|
|
299
|
-
: ( localize(
|
|
298
|
+
? ( localize(5109, "{0} of {1} problems", markerIdx, markerCount))
|
|
299
|
+
: ( localize(5110, "{0} of {1} problem", markerIdx, markerCount));
|
|
300
300
|
this.setTitle(basename(model.uri), detail);
|
|
301
301
|
}
|
|
302
302
|
this._icon.className = `codicon ${SeverityIcon.className(MarkerSeverity.toSeverity(this._severity))}`;
|
|
@@ -338,11 +338,11 @@ MarkerNavigationWidget = MarkerNavigationWidget_1 = ( (__decorate([
|
|
|
338
338
|
const errorDefault = oneOf(editorErrorForeground, editorErrorBorder);
|
|
339
339
|
const warningDefault = oneOf(editorWarningForeground, editorWarningBorder);
|
|
340
340
|
const infoDefault = oneOf(editorInfoForeground, editorInfoBorder);
|
|
341
|
-
const editorMarkerNavigationError = registerColor('editorMarkerNavigationError.background', { dark: errorDefault, light: errorDefault, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(
|
|
342
|
-
const editorMarkerNavigationErrorHeader = registerColor('editorMarkerNavigationError.headerBackground', { dark: ( (transparent(editorMarkerNavigationError, .1))), light: ( (transparent(editorMarkerNavigationError, .1))), hcDark: null, hcLight: null }, ( localize(
|
|
343
|
-
const editorMarkerNavigationWarning = registerColor('editorMarkerNavigationWarning.background', { dark: warningDefault, light: warningDefault, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(
|
|
344
|
-
const editorMarkerNavigationWarningHeader = registerColor('editorMarkerNavigationWarning.headerBackground', { dark: ( (transparent(editorMarkerNavigationWarning, .1))), light: ( (transparent(editorMarkerNavigationWarning, .1))), hcDark: '#0C141F', hcLight: ( (transparent(editorMarkerNavigationWarning, .2))) }, ( localize(
|
|
345
|
-
const editorMarkerNavigationInfo = registerColor('editorMarkerNavigationInfo.background', { dark: infoDefault, light: infoDefault, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(
|
|
346
|
-
const editorMarkerNavigationInfoHeader = registerColor('editorMarkerNavigationInfo.headerBackground', { dark: ( (transparent(editorMarkerNavigationInfo, .1))), light: ( (transparent(editorMarkerNavigationInfo, .1))), hcDark: null, hcLight: null }, ( localize(
|
|
347
|
-
const editorMarkerNavigationBackground = registerColor('editorMarkerNavigation.background', editorBackground, ( localize(
|
|
341
|
+
const editorMarkerNavigationError = registerColor('editorMarkerNavigationError.background', { dark: errorDefault, light: errorDefault, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(5111, 'Editor marker navigation widget error color.')));
|
|
342
|
+
const editorMarkerNavigationErrorHeader = registerColor('editorMarkerNavigationError.headerBackground', { dark: ( (transparent(editorMarkerNavigationError, .1))), light: ( (transparent(editorMarkerNavigationError, .1))), hcDark: null, hcLight: null }, ( localize(5112, 'Editor marker navigation widget error heading background.')));
|
|
343
|
+
const editorMarkerNavigationWarning = registerColor('editorMarkerNavigationWarning.background', { dark: warningDefault, light: warningDefault, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(5113, 'Editor marker navigation widget warning color.')));
|
|
344
|
+
const editorMarkerNavigationWarningHeader = registerColor('editorMarkerNavigationWarning.headerBackground', { dark: ( (transparent(editorMarkerNavigationWarning, .1))), light: ( (transparent(editorMarkerNavigationWarning, .1))), hcDark: '#0C141F', hcLight: ( (transparent(editorMarkerNavigationWarning, .2))) }, ( localize(5114, 'Editor marker navigation widget warning heading background.')));
|
|
345
|
+
const editorMarkerNavigationInfo = registerColor('editorMarkerNavigationInfo.background', { dark: infoDefault, light: infoDefault, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(5115, 'Editor marker navigation widget info color.')));
|
|
346
|
+
const editorMarkerNavigationInfoHeader = registerColor('editorMarkerNavigationInfo.headerBackground', { dark: ( (transparent(editorMarkerNavigationInfo, .1))), light: ( (transparent(editorMarkerNavigationInfo, .1))), hcDark: null, hcLight: null }, ( localize(5116, 'Editor marker navigation widget info heading background.')));
|
|
347
|
+
const editorMarkerNavigationBackground = registerColor('editorMarkerNavigation.background', editorBackground, ( localize(5117, 'Editor marker navigation widget background.')));
|
|
348
348
|
export { MarkerNavigationWidget };
|