monaco-editor-core 0.55.0-dev-20251029 → 0.55.0-dev-20251030
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/esm/nls.keys.json +1 -1
- package/esm/nls.messages.cs.js +2 -2
- package/esm/nls.messages.de.js +2 -2
- package/esm/nls.messages.es.js +2 -2
- package/esm/nls.messages.fr.js +2 -2
- package/esm/nls.messages.it.js +2 -2
- package/esm/nls.messages.ja.js +2 -2
- package/esm/nls.messages.js +1 -1
- package/esm/nls.messages.json +1 -1
- package/esm/nls.messages.ko.js +2 -2
- package/esm/nls.messages.pl.js +2 -2
- package/esm/nls.messages.pt-br.js +2 -2
- package/esm/nls.messages.ru.js +2 -2
- package/esm/nls.messages.tr.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +14 -0
- package/esm/vs/base/browser/markdownRenderer.js +52 -1
- package/esm/vs/base/browser/markdownRenderer.js.map +1 -1
- package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/esm/vs/base/common/glob.js +41 -31
- package/esm/vs/base/common/glob.js.map +1 -1
- package/esm/vs/base/common/htmlContent.js +5 -1
- package/esm/vs/base/common/htmlContent.js.map +1 -1
- package/esm/vs/base/common/network.js +2 -6
- package/esm/vs/base/common/network.js.map +1 -1
- package/esm/vs/base/common/strings.js +7 -5
- package/esm/vs/base/common/strings.js.map +1 -1
- package/esm/vs/editor/common/textModelEditSource.js +1 -0
- package/esm/vs/editor/common/textModelEditSource.js.map +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +4 -0
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +16 -16
- package/esm/vs/editor/contrib/find/browser/findWidget.js +26 -26
- package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/esm/vs/editor/contrib/folding/browser/folding.js.map +1 -1
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js +17 -6
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +6 -3
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/hover.css +36 -0
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +51 -0
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js.map +1 -0
- package/esm/vs/editor/contrib/hover/browser/hoverTypes.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +25 -9
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +8 -5
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +20 -20
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +4 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/esm/vs/editor/contrib/links/browser/links.js +10 -10
- package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +8 -8
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
- package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +27 -24
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js.map +1 -1
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- package/esm/vs/platform/actions/common/actions.js +2 -0
- package/esm/vs/platform/actions/common/actions.js.map +1 -1
- package/esm/vs/platform/actions/common/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
- package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/hover/browser/hoverWidget.js +1 -1
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/markers/common/markerService.js +2 -2
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +7 -7
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
- package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
- package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/package.json +2 -2
|
@@ -311,7 +311,7 @@ let CommonFindController = class CommonFindController extends Disposable {
|
|
|
311
311
|
replaceAll() {
|
|
312
312
|
if (this._model) {
|
|
313
313
|
if (this._editor.getModel()?.isTooLargeForHeapOperation()) {
|
|
314
|
-
this._notificationService.warn(nls.localize(
|
|
314
|
+
this._notificationService.warn(nls.localize(940, "The file is too large to perform a replace all operation."));
|
|
315
315
|
return false;
|
|
316
316
|
}
|
|
317
317
|
this._model.replaceAll();
|
|
@@ -428,7 +428,7 @@ FindController = __decorate([
|
|
|
428
428
|
export { FindController };
|
|
429
429
|
export const StartFindAction = registerMultiEditorAction(new MultiEditorAction({
|
|
430
430
|
id: FIND_IDS.StartFindAction,
|
|
431
|
-
label: nls.localize2(
|
|
431
|
+
label: nls.localize2(947, "Find"),
|
|
432
432
|
precondition: ContextKeyExpr.or(EditorContextKeys.focus, ContextKeyExpr.has('editorIsOpen')),
|
|
433
433
|
kbOpts: {
|
|
434
434
|
kbExpr: null,
|
|
@@ -438,7 +438,7 @@ export const StartFindAction = registerMultiEditorAction(new MultiEditorAction({
|
|
|
438
438
|
menuOpts: {
|
|
439
439
|
menuId: MenuId.MenubarEditMenu,
|
|
440
440
|
group: '3_find',
|
|
441
|
-
title: nls.localize(
|
|
441
|
+
title: nls.localize(941, "&&Find"),
|
|
442
442
|
order: 1
|
|
443
443
|
}
|
|
444
444
|
}));
|
|
@@ -479,7 +479,7 @@ export class StartFindWithArgsAction extends EditorAction {
|
|
|
479
479
|
constructor() {
|
|
480
480
|
super({
|
|
481
481
|
id: FIND_IDS.StartFindWithArgs,
|
|
482
|
-
label: nls.localize2(
|
|
482
|
+
label: nls.localize2(948, "Find with Arguments"),
|
|
483
483
|
precondition: undefined,
|
|
484
484
|
kbOpts: {
|
|
485
485
|
kbExpr: null,
|
|
@@ -523,7 +523,7 @@ export class StartFindWithSelectionAction extends EditorAction {
|
|
|
523
523
|
constructor() {
|
|
524
524
|
super({
|
|
525
525
|
id: FIND_IDS.StartFindWithSelection,
|
|
526
|
-
label: nls.localize2(
|
|
526
|
+
label: nls.localize2(949, "Find with Selection"),
|
|
527
527
|
precondition: undefined,
|
|
528
528
|
kbOpts: {
|
|
529
529
|
kbExpr: null,
|
|
@@ -581,7 +581,7 @@ async function matchFindAction(editor, next) {
|
|
|
581
581
|
}
|
|
582
582
|
export const NextMatchFindAction = registerMultiEditorAction(new MultiEditorAction({
|
|
583
583
|
id: FIND_IDS.NextMatchFindAction,
|
|
584
|
-
label: nls.localize2(
|
|
584
|
+
label: nls.localize2(950, "Find Next"),
|
|
585
585
|
precondition: undefined,
|
|
586
586
|
kbOpts: [{
|
|
587
587
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -599,7 +599,7 @@ NextMatchFindAction.addImplementation(0, async (accessor, editor, args) => {
|
|
|
599
599
|
});
|
|
600
600
|
export const PreviousMatchFindAction = registerMultiEditorAction(new MultiEditorAction({
|
|
601
601
|
id: FIND_IDS.PreviousMatchFindAction,
|
|
602
|
-
label: nls.localize2(
|
|
602
|
+
label: nls.localize2(951, "Find Previous"),
|
|
603
603
|
precondition: undefined,
|
|
604
604
|
kbOpts: [{
|
|
605
605
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -619,7 +619,7 @@ export class MoveToMatchFindAction extends EditorAction {
|
|
|
619
619
|
constructor() {
|
|
620
620
|
super({
|
|
621
621
|
id: FIND_IDS.GoToMatchFindAction,
|
|
622
|
-
label: nls.localize2(
|
|
622
|
+
label: nls.localize2(952, "Go to Match..."),
|
|
623
623
|
precondition: CONTEXT_FIND_WIDGET_VISIBLE
|
|
624
624
|
});
|
|
625
625
|
this._highlightDecorations = [];
|
|
@@ -634,14 +634,14 @@ export class MoveToMatchFindAction extends EditorAction {
|
|
|
634
634
|
const notificationService = accessor.get(INotificationService);
|
|
635
635
|
notificationService.notify({
|
|
636
636
|
severity: Severity.Warning,
|
|
637
|
-
message: nls.localize(
|
|
637
|
+
message: nls.localize(942, "No matches. Try searching for something else.")
|
|
638
638
|
});
|
|
639
639
|
return;
|
|
640
640
|
}
|
|
641
641
|
const quickInputService = accessor.get(IQuickInputService);
|
|
642
642
|
const disposables = new DisposableStore();
|
|
643
643
|
const inputBox = disposables.add(quickInputService.createInputBox());
|
|
644
|
-
inputBox.placeholder = nls.localize(
|
|
644
|
+
inputBox.placeholder = nls.localize(943, "Type a number to go to a specific match (between 1 and {0})", matchesCount);
|
|
645
645
|
const toFindMatchIndex = (value) => {
|
|
646
646
|
const index = parseInt(value);
|
|
647
647
|
if (isNaN(index)) {
|
|
@@ -668,7 +668,7 @@ export class MoveToMatchFindAction extends EditorAction {
|
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
else {
|
|
671
|
-
inputBox.validationMessage = nls.localize(
|
|
671
|
+
inputBox.validationMessage = nls.localize(944, "Please type a number between 1 and {0}", controller.getState().matchesCount);
|
|
672
672
|
this.clearDecorations(editor);
|
|
673
673
|
}
|
|
674
674
|
};
|
|
@@ -682,7 +682,7 @@ export class MoveToMatchFindAction extends EditorAction {
|
|
|
682
682
|
inputBox.hide();
|
|
683
683
|
}
|
|
684
684
|
else {
|
|
685
|
-
inputBox.validationMessage = nls.localize(
|
|
685
|
+
inputBox.validationMessage = nls.localize(945, "Please type a number between 1 and {0}", controller.getState().matchesCount);
|
|
686
686
|
}
|
|
687
687
|
}));
|
|
688
688
|
disposables.add(inputBox.onDidHide(() => {
|
|
@@ -750,7 +750,7 @@ export class NextSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
750
750
|
constructor() {
|
|
751
751
|
super({
|
|
752
752
|
id: FIND_IDS.NextSelectionMatchFindAction,
|
|
753
|
-
label: nls.localize2(
|
|
753
|
+
label: nls.localize2(953, "Find Next Selection"),
|
|
754
754
|
precondition: undefined,
|
|
755
755
|
kbOpts: {
|
|
756
756
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -767,7 +767,7 @@ export class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
767
767
|
constructor() {
|
|
768
768
|
super({
|
|
769
769
|
id: FIND_IDS.PreviousSelectionMatchFindAction,
|
|
770
|
-
label: nls.localize2(
|
|
770
|
+
label: nls.localize2(954, "Find Previous Selection"),
|
|
771
771
|
precondition: undefined,
|
|
772
772
|
kbOpts: {
|
|
773
773
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -782,7 +782,7 @@ export class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
782
782
|
}
|
|
783
783
|
export const StartFindReplaceAction = registerMultiEditorAction(new MultiEditorAction({
|
|
784
784
|
id: FIND_IDS.StartFindReplaceAction,
|
|
785
|
-
label: nls.localize2(
|
|
785
|
+
label: nls.localize2(955, "Replace"),
|
|
786
786
|
precondition: ContextKeyExpr.or(EditorContextKeys.focus, ContextKeyExpr.has('editorIsOpen')),
|
|
787
787
|
kbOpts: {
|
|
788
788
|
kbExpr: null,
|
|
@@ -793,7 +793,7 @@ export const StartFindReplaceAction = registerMultiEditorAction(new MultiEditorA
|
|
|
793
793
|
menuOpts: {
|
|
794
794
|
menuId: MenuId.MenubarEditMenu,
|
|
795
795
|
group: '3_find',
|
|
796
|
-
title: nls.localize(
|
|
796
|
+
title: nls.localize(946, "&&Replace"),
|
|
797
797
|
order: 2
|
|
798
798
|
}
|
|
799
799
|
}));
|
|
@@ -26,28 +26,28 @@ import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
|
26
26
|
import { isHighContrast } from '../../../../platform/theme/common/theme.js';
|
|
27
27
|
import { assertReturnsDefined } from '../../../../base/common/types.js';
|
|
28
28
|
import { defaultInputBoxStyles, defaultToggleStyles } from '../../../../platform/theme/browser/defaultStyles.js';
|
|
29
|
-
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, nls.localize(
|
|
30
|
-
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, nls.localize(
|
|
31
|
-
export const findSelectionIcon = registerIcon('find-selection', Codicon.selection, nls.localize(
|
|
32
|
-
export const findReplaceIcon = registerIcon('find-replace', Codicon.replace, nls.localize(
|
|
33
|
-
export const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, nls.localize(
|
|
34
|
-
export const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, nls.localize(
|
|
35
|
-
export const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, nls.localize(
|
|
36
|
-
const NLS_FIND_DIALOG_LABEL = nls.localize(
|
|
37
|
-
const NLS_FIND_INPUT_LABEL = nls.localize(
|
|
38
|
-
const NLS_FIND_INPUT_PLACEHOLDER = nls.localize(
|
|
39
|
-
const NLS_PREVIOUS_MATCH_BTN_LABEL = nls.localize(
|
|
40
|
-
const NLS_NEXT_MATCH_BTN_LABEL = nls.localize(
|
|
41
|
-
const NLS_TOGGLE_SELECTION_FIND_TITLE = nls.localize(
|
|
42
|
-
const NLS_CLOSE_BTN_LABEL = nls.localize(
|
|
43
|
-
const NLS_REPLACE_INPUT_LABEL = nls.localize(
|
|
44
|
-
const NLS_REPLACE_INPUT_PLACEHOLDER = nls.localize(
|
|
45
|
-
const NLS_REPLACE_BTN_LABEL = nls.localize(
|
|
46
|
-
const NLS_REPLACE_ALL_BTN_LABEL = nls.localize(
|
|
47
|
-
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = nls.localize(
|
|
48
|
-
const NLS_MATCHES_COUNT_LIMIT_TITLE = nls.localize(
|
|
49
|
-
export const NLS_MATCHES_LOCATION = nls.localize(
|
|
50
|
-
export const NLS_NO_RESULTS = nls.localize(
|
|
29
|
+
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, nls.localize(956, 'Icon to indicate that the editor find widget is collapsed.'));
|
|
30
|
+
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, nls.localize(957, 'Icon to indicate that the editor find widget is expanded.'));
|
|
31
|
+
export const findSelectionIcon = registerIcon('find-selection', Codicon.selection, nls.localize(958, 'Icon for \'Find in Selection\' in the editor find widget.'));
|
|
32
|
+
export const findReplaceIcon = registerIcon('find-replace', Codicon.replace, nls.localize(959, 'Icon for \'Replace\' in the editor find widget.'));
|
|
33
|
+
export const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, nls.localize(960, 'Icon for \'Replace All\' in the editor find widget.'));
|
|
34
|
+
export const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, nls.localize(961, 'Icon for \'Find Previous\' in the editor find widget.'));
|
|
35
|
+
export const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, nls.localize(962, 'Icon for \'Find Next\' in the editor find widget.'));
|
|
36
|
+
const NLS_FIND_DIALOG_LABEL = nls.localize(963, "Find / Replace");
|
|
37
|
+
const NLS_FIND_INPUT_LABEL = nls.localize(964, "Find");
|
|
38
|
+
const NLS_FIND_INPUT_PLACEHOLDER = nls.localize(965, "Find");
|
|
39
|
+
const NLS_PREVIOUS_MATCH_BTN_LABEL = nls.localize(966, "Previous Match");
|
|
40
|
+
const NLS_NEXT_MATCH_BTN_LABEL = nls.localize(967, "Next Match");
|
|
41
|
+
const NLS_TOGGLE_SELECTION_FIND_TITLE = nls.localize(968, "Find in Selection");
|
|
42
|
+
const NLS_CLOSE_BTN_LABEL = nls.localize(969, "Close");
|
|
43
|
+
const NLS_REPLACE_INPUT_LABEL = nls.localize(970, "Replace");
|
|
44
|
+
const NLS_REPLACE_INPUT_PLACEHOLDER = nls.localize(971, "Replace");
|
|
45
|
+
const NLS_REPLACE_BTN_LABEL = nls.localize(972, "Replace");
|
|
46
|
+
const NLS_REPLACE_ALL_BTN_LABEL = nls.localize(973, "Replace All");
|
|
47
|
+
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = nls.localize(974, "Toggle Replace");
|
|
48
|
+
const NLS_MATCHES_COUNT_LIMIT_TITLE = nls.localize(975, "Only the first {0} results are highlighted, but all find operations work on the entire text.", MATCHES_LIMIT);
|
|
49
|
+
export const NLS_MATCHES_LOCATION = nls.localize(976, "{0} of {1}");
|
|
50
|
+
export const NLS_NO_RESULTS = nls.localize(977, "No results");
|
|
51
51
|
const FIND_WIDGET_INITIAL_WIDTH = 419;
|
|
52
52
|
const PART_WIDTH = 275;
|
|
53
53
|
const FIND_INPUT_AREA_WIDTH = PART_WIDTH - 54;
|
|
@@ -324,11 +324,11 @@ export class FindWidget extends Widget {
|
|
|
324
324
|
_getAriaLabel(label, currentMatch, searchString) {
|
|
325
325
|
if (label === NLS_NO_RESULTS) {
|
|
326
326
|
return searchString === ''
|
|
327
|
-
? nls.localize(
|
|
328
|
-
: nls.localize(
|
|
327
|
+
? nls.localize(978, "{0} found", label)
|
|
328
|
+
: nls.localize(979, "{0} found for '{1}'", label, searchString);
|
|
329
329
|
}
|
|
330
330
|
if (currentMatch) {
|
|
331
|
-
const ariaLabel = nls.localize(
|
|
331
|
+
const ariaLabel = nls.localize(980, "{0} found for '{1}', at {2}", label, searchString, currentMatch.startLineNumber + ':' + currentMatch.startColumn);
|
|
332
332
|
const model = this._codeEditor.getModel();
|
|
333
333
|
if (model && (currentMatch.startLineNumber <= model.getLineCount()) && (currentMatch.startLineNumber >= 1)) {
|
|
334
334
|
const lineContent = model.getLineContent(currentMatch.startLineNumber);
|
|
@@ -336,7 +336,7 @@ export class FindWidget extends Widget {
|
|
|
336
336
|
}
|
|
337
337
|
return ariaLabel;
|
|
338
338
|
}
|
|
339
|
-
return nls.localize(
|
|
339
|
+
return nls.localize(981, "{0} found for '{1}'", label, searchString);
|
|
340
340
|
}
|
|
341
341
|
/**
|
|
342
342
|
* If 'selection find' is ON we should not disable the button (its function is to cancel 'selection find').
|
|
@@ -508,7 +508,7 @@ class UnfoldAction extends FoldingAction {
|
|
|
508
508
|
constructor() {
|
|
509
509
|
super({
|
|
510
510
|
id: 'editor.unfold',
|
|
511
|
-
label: nls.localize2(
|
|
511
|
+
label: nls.localize2(982, "Unfold"),
|
|
512
512
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
513
513
|
kbOpts: {
|
|
514
514
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -569,7 +569,7 @@ class UnFoldRecursivelyAction extends FoldingAction {
|
|
|
569
569
|
constructor() {
|
|
570
570
|
super({
|
|
571
571
|
id: 'editor.unfoldRecursively',
|
|
572
|
-
label: nls.localize2(
|
|
572
|
+
label: nls.localize2(983, "Unfold Recursively"),
|
|
573
573
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
574
574
|
kbOpts: {
|
|
575
575
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -586,7 +586,7 @@ class FoldAction extends FoldingAction {
|
|
|
586
586
|
constructor() {
|
|
587
587
|
super({
|
|
588
588
|
id: 'editor.fold',
|
|
589
|
-
label: nls.localize2(
|
|
589
|
+
label: nls.localize2(984, "Fold"),
|
|
590
590
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
591
591
|
kbOpts: {
|
|
592
592
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -653,7 +653,7 @@ class ToggleFoldAction extends FoldingAction {
|
|
|
653
653
|
constructor() {
|
|
654
654
|
super({
|
|
655
655
|
id: 'editor.toggleFold',
|
|
656
|
-
label: nls.localize2(
|
|
656
|
+
label: nls.localize2(985, "Toggle Fold"),
|
|
657
657
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
658
658
|
kbOpts: {
|
|
659
659
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -671,7 +671,7 @@ class FoldRecursivelyAction extends FoldingAction {
|
|
|
671
671
|
constructor() {
|
|
672
672
|
super({
|
|
673
673
|
id: 'editor.foldRecursively',
|
|
674
|
-
label: nls.localize2(
|
|
674
|
+
label: nls.localize2(986, "Fold Recursively"),
|
|
675
675
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
676
676
|
kbOpts: {
|
|
677
677
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -689,7 +689,7 @@ class ToggleFoldRecursivelyAction extends FoldingAction {
|
|
|
689
689
|
constructor() {
|
|
690
690
|
super({
|
|
691
691
|
id: 'editor.toggleFoldRecursively',
|
|
692
|
-
label: nls.localize2(
|
|
692
|
+
label: nls.localize2(987, "Toggle Fold Recursively"),
|
|
693
693
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
694
694
|
kbOpts: {
|
|
695
695
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -707,7 +707,7 @@ class FoldAllBlockCommentsAction extends FoldingAction {
|
|
|
707
707
|
constructor() {
|
|
708
708
|
super({
|
|
709
709
|
id: 'editor.foldAllBlockComments',
|
|
710
|
-
label: nls.localize2(
|
|
710
|
+
label: nls.localize2(988, "Fold All Block Comments"),
|
|
711
711
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
712
712
|
kbOpts: {
|
|
713
713
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -737,7 +737,7 @@ class FoldAllRegionsAction extends FoldingAction {
|
|
|
737
737
|
constructor() {
|
|
738
738
|
super({
|
|
739
739
|
id: 'editor.foldAllMarkerRegions',
|
|
740
|
-
label: nls.localize2(
|
|
740
|
+
label: nls.localize2(989, "Fold All Regions"),
|
|
741
741
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
742
742
|
kbOpts: {
|
|
743
743
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -767,7 +767,7 @@ class UnfoldAllRegionsAction extends FoldingAction {
|
|
|
767
767
|
constructor() {
|
|
768
768
|
super({
|
|
769
769
|
id: 'editor.unfoldAllMarkerRegions',
|
|
770
|
-
label: nls.localize2(
|
|
770
|
+
label: nls.localize2(990, "Unfold All Regions"),
|
|
771
771
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
772
772
|
kbOpts: {
|
|
773
773
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -797,7 +797,7 @@ class FoldAllExceptAction extends FoldingAction {
|
|
|
797
797
|
constructor() {
|
|
798
798
|
super({
|
|
799
799
|
id: 'editor.foldAllExcept',
|
|
800
|
-
label: nls.localize2(
|
|
800
|
+
label: nls.localize2(991, "Fold All Except Selected"),
|
|
801
801
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
802
802
|
kbOpts: {
|
|
803
803
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -815,7 +815,7 @@ class UnfoldAllExceptAction extends FoldingAction {
|
|
|
815
815
|
constructor() {
|
|
816
816
|
super({
|
|
817
817
|
id: 'editor.unfoldAllExcept',
|
|
818
|
-
label: nls.localize2(
|
|
818
|
+
label: nls.localize2(992, "Unfold All Except Selected"),
|
|
819
819
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
820
820
|
kbOpts: {
|
|
821
821
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -833,7 +833,7 @@ class FoldAllAction extends FoldingAction {
|
|
|
833
833
|
constructor() {
|
|
834
834
|
super({
|
|
835
835
|
id: 'editor.foldAll',
|
|
836
|
-
label: nls.localize2(
|
|
836
|
+
label: nls.localize2(993, "Fold All"),
|
|
837
837
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
838
838
|
kbOpts: {
|
|
839
839
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -850,7 +850,7 @@ class UnfoldAllAction extends FoldingAction {
|
|
|
850
850
|
constructor() {
|
|
851
851
|
super({
|
|
852
852
|
id: 'editor.unfoldAll',
|
|
853
|
-
label: nls.localize2(
|
|
853
|
+
label: nls.localize2(994, "Unfold All"),
|
|
854
854
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
855
855
|
kbOpts: {
|
|
856
856
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -878,7 +878,7 @@ class GotoParentFoldAction extends FoldingAction {
|
|
|
878
878
|
constructor() {
|
|
879
879
|
super({
|
|
880
880
|
id: 'editor.gotoParentFold',
|
|
881
|
-
label: nls.localize2(
|
|
881
|
+
label: nls.localize2(995, "Go to Parent Fold"),
|
|
882
882
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
883
883
|
kbOpts: {
|
|
884
884
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -906,7 +906,7 @@ class GotoPreviousFoldAction extends FoldingAction {
|
|
|
906
906
|
constructor() {
|
|
907
907
|
super({
|
|
908
908
|
id: 'editor.gotoPreviousFold',
|
|
909
|
-
label: nls.localize2(
|
|
909
|
+
label: nls.localize2(996, "Go to Previous Folding Range"),
|
|
910
910
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
911
911
|
kbOpts: {
|
|
912
912
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -934,7 +934,7 @@ class GotoNextFoldAction extends FoldingAction {
|
|
|
934
934
|
constructor() {
|
|
935
935
|
super({
|
|
936
936
|
id: 'editor.gotoNextFold',
|
|
937
|
-
label: nls.localize2(
|
|
937
|
+
label: nls.localize2(997, "Go to Next Folding Range"),
|
|
938
938
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
939
939
|
kbOpts: {
|
|
940
940
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -961,7 +961,7 @@ class FoldRangeFromSelectionAction extends FoldingAction {
|
|
|
961
961
|
constructor() {
|
|
962
962
|
super({
|
|
963
963
|
id: 'editor.createFoldingRangeFromSelection',
|
|
964
|
-
label: nls.localize2(
|
|
964
|
+
label: nls.localize2(998, "Create Folding Range from Selection"),
|
|
965
965
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
966
966
|
kbOpts: {
|
|
967
967
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -1009,7 +1009,7 @@ class RemoveFoldRangeFromSelectionAction extends FoldingAction {
|
|
|
1009
1009
|
constructor() {
|
|
1010
1010
|
super({
|
|
1011
1011
|
id: 'editor.removeManualFoldingRanges',
|
|
1012
|
-
label: nls.localize2(
|
|
1012
|
+
label: nls.localize2(999, "Remove Manual Folding Ranges"),
|
|
1013
1013
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
1014
1014
|
kbOpts: {
|
|
1015
1015
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -1035,7 +1035,7 @@ class ToggleImportFoldAction extends FoldingAction {
|
|
|
1035
1035
|
constructor() {
|
|
1036
1036
|
super({
|
|
1037
1037
|
id: 'editor.toggleImportFold',
|
|
1038
|
-
label: nls.localize2(
|
|
1038
|
+
label: nls.localize2(1000, "Toggle Import Fold"),
|
|
1039
1039
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
1040
1040
|
kbOpts: {
|
|
1041
1041
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -1078,7 +1078,7 @@ registerEditorAction(ToggleImportFoldAction);
|
|
|
1078
1078
|
for (let i = 1; i <= 7; i++) {
|
|
1079
1079
|
registerInstantiatedEditorAction(new FoldLevelAction({
|
|
1080
1080
|
id: FoldLevelAction.ID(i),
|
|
1081
|
-
label: nls.localize2(
|
|
1081
|
+
label: nls.localize2(1001, "Fold Level {0}", i),
|
|
1082
1082
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
1083
1083
|
kbOpts: {
|
|
1084
1084
|
kbExpr: EditorContextKeys.editorTextFocus,
|