monaco-editor-core 0.55.0-dev-20251106 → 0.55.0-rc
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 +0 -6
- package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/copySelection.js +24 -83
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/copySelection.js.map +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js.map +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +13 -17
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js.map +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +81 -9
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js.map +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/esm/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/esm/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/esm/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/esm/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +1 -1
- package/esm/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js.map +1 -1
- package/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/esm/vs/editor/common/config/editorConfigurationSchema.js +54 -54
- package/esm/vs/editor/common/config/editorOptions.js +407 -407
- package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
- package/esm/vs/editor/common/core/editorColorRegistry.js +68 -68
- package/esm/vs/editor/common/editorContextKeys.js +47 -47
- package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
- package/esm/vs/editor/common/languages.js +56 -56
- package/esm/vs/editor/common/model/editStack.js +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +10 -10
- package/esm/vs/editor/common/textModelEditSource.js +2 -2
- package/esm/vs/editor/common/textModelEditSource.js.map +1 -1
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +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/format.js +3 -7
- package/esm/vs/editor/contrib/format/browser/format.js.map +1 -1
- 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/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- 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 +2 -2
- 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 +10 -10
- 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 +24 -24
- 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/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 +29 -29
- package/esm/vs/platform/list/browser/listService.js.map +1 -1
- 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
- package/version.txt +1 -1
|
@@ -8,63 +8,63 @@ import { localize } from '../../../../../../nls.js';
|
|
|
8
8
|
import { buttonBackground, buttonForeground, buttonSecondaryBackground, buttonSecondaryForeground, diffInserted, diffInsertedLine, diffRemoved, editorBackground } from '../../../../../../platform/theme/common/colorRegistry.js';
|
|
9
9
|
import { darken, registerColor, transparent } from '../../../../../../platform/theme/common/colorUtils.js';
|
|
10
10
|
import { InlineEditTabAction } from './inlineEditsViewInterface.js';
|
|
11
|
-
export const originalBackgroundColor = registerColor('inlineEdit.originalBackground', transparent(diffRemoved, 0.2), localize(
|
|
12
|
-
export const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(
|
|
13
|
-
export const originalChangedLineBackgroundColor = registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(
|
|
14
|
-
export const originalChangedTextOverlayColor = registerColor('inlineEdit.originalChangedTextBackground', transparent(diffRemoved, 0.8), localize(
|
|
11
|
+
export const originalBackgroundColor = registerColor('inlineEdit.originalBackground', transparent(diffRemoved, 0.2), localize(1220, 'Background color for the original text in inline edits.'), true);
|
|
12
|
+
export const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(1221, 'Background color for the modified text in inline edits.'), true);
|
|
13
|
+
export const originalChangedLineBackgroundColor = registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(1222, 'Background color for the changed lines in the original text of inline edits.'), true);
|
|
14
|
+
export const originalChangedTextOverlayColor = registerColor('inlineEdit.originalChangedTextBackground', transparent(diffRemoved, 0.8), localize(1223, 'Overlay color for the changed text in the original text of inline edits.'), true);
|
|
15
15
|
export const modifiedChangedLineBackgroundColor = registerColor('inlineEdit.modifiedChangedLineBackground', {
|
|
16
16
|
light: transparent(diffInsertedLine, 0.7),
|
|
17
17
|
dark: transparent(diffInsertedLine, 0.7),
|
|
18
18
|
hcDark: diffInsertedLine,
|
|
19
19
|
hcLight: diffInsertedLine
|
|
20
|
-
}, localize(
|
|
21
|
-
export const modifiedChangedTextOverlayColor = registerColor('inlineEdit.modifiedChangedTextBackground', transparent(diffInserted, 0.7), localize(
|
|
20
|
+
}, localize(1224, 'Background color for the changed lines in the modified text of inline edits.'), true);
|
|
21
|
+
export const modifiedChangedTextOverlayColor = registerColor('inlineEdit.modifiedChangedTextBackground', transparent(diffInserted, 0.7), localize(1225, 'Overlay color for the changed text in the modified text of inline edits.'), true);
|
|
22
22
|
// ------- GUTTER INDICATOR -------
|
|
23
|
-
export const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, localize(
|
|
24
|
-
export const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(
|
|
23
|
+
export const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, localize(1226, 'Foreground color for the primary inline edit gutter indicator.'));
|
|
24
|
+
export const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(1227, 'Border color for the primary inline edit gutter indicator.'));
|
|
25
25
|
export const inlineEditIndicatorPrimaryBackground = registerColor('inlineEdit.gutterIndicator.primaryBackground', {
|
|
26
26
|
light: transparent(inlineEditIndicatorPrimaryBorder, 0.5),
|
|
27
27
|
dark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),
|
|
28
28
|
hcDark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),
|
|
29
29
|
hcLight: transparent(inlineEditIndicatorPrimaryBorder, 0.5),
|
|
30
|
-
}, localize(
|
|
31
|
-
export const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(
|
|
32
|
-
export const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(
|
|
33
|
-
export const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(
|
|
34
|
-
export const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(
|
|
35
|
-
export const inlineEditIndicatorsuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(
|
|
36
|
-
export const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorsuccessfulBorder, localize(
|
|
30
|
+
}, localize(1228, 'Background color for the primary inline edit gutter indicator.'));
|
|
31
|
+
export const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(1229, 'Foreground color for the secondary inline edit gutter indicator.'));
|
|
32
|
+
export const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(1230, 'Border color for the secondary inline edit gutter indicator.'));
|
|
33
|
+
export const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(1231, 'Background color for the secondary inline edit gutter indicator.'));
|
|
34
|
+
export const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(1232, 'Foreground color for the successful inline edit gutter indicator.'));
|
|
35
|
+
export const inlineEditIndicatorsuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(1233, 'Border color for the successful inline edit gutter indicator.'));
|
|
36
|
+
export const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorsuccessfulBorder, localize(1234, 'Background color for the successful inline edit gutter indicator.'));
|
|
37
37
|
export const inlineEditIndicatorBackground = registerColor('inlineEdit.gutterIndicator.background', {
|
|
38
38
|
hcDark: transparent('tab.inactiveBackground', 0.5),
|
|
39
39
|
hcLight: transparent('tab.inactiveBackground', 0.5),
|
|
40
40
|
dark: transparent('tab.inactiveBackground', 0.5),
|
|
41
41
|
light: '#5f5f5f18',
|
|
42
|
-
}, localize(
|
|
42
|
+
}, localize(1235, 'Background color for the inline edit gutter indicator.'));
|
|
43
43
|
// ------- BORDER COLORS -------
|
|
44
44
|
const originalBorder = registerColor('inlineEdit.originalBorder', {
|
|
45
45
|
light: diffRemoved,
|
|
46
46
|
dark: diffRemoved,
|
|
47
47
|
hcDark: diffRemoved,
|
|
48
48
|
hcLight: diffRemoved
|
|
49
|
-
}, localize(
|
|
49
|
+
}, localize(1236, 'Border color for the original text in inline edits.'));
|
|
50
50
|
const modifiedBorder = registerColor('inlineEdit.modifiedBorder', {
|
|
51
51
|
light: darken(diffInserted, 0.6),
|
|
52
52
|
dark: diffInserted,
|
|
53
53
|
hcDark: diffInserted,
|
|
54
54
|
hcLight: diffInserted
|
|
55
|
-
}, localize(
|
|
55
|
+
}, localize(1237, 'Border color for the modified text in inline edits.'));
|
|
56
56
|
const tabWillAcceptModifiedBorder = registerColor('inlineEdit.tabWillAcceptModifiedBorder', {
|
|
57
57
|
light: darken(modifiedBorder, 0),
|
|
58
58
|
dark: darken(modifiedBorder, 0),
|
|
59
59
|
hcDark: darken(modifiedBorder, 0),
|
|
60
60
|
hcLight: darken(modifiedBorder, 0)
|
|
61
|
-
}, localize(
|
|
61
|
+
}, localize(1238, 'Modified border color for the inline edits widget when tab will accept it.'));
|
|
62
62
|
const tabWillAcceptOriginalBorder = registerColor('inlineEdit.tabWillAcceptOriginalBorder', {
|
|
63
63
|
light: darken(originalBorder, 0),
|
|
64
64
|
dark: darken(originalBorder, 0),
|
|
65
65
|
hcDark: darken(originalBorder, 0),
|
|
66
66
|
hcLight: darken(originalBorder, 0)
|
|
67
|
-
}, localize(
|
|
67
|
+
}, localize(1239, 'Original border color for the inline edits widget over the original text when tab will accept it.'));
|
|
68
68
|
export function getModifiedBorderColor(tabAction) {
|
|
69
69
|
return tabAction.map(a => a === InlineEditTabAction.Accept ? tabWillAcceptModifiedBorder : modifiedBorder);
|
|
70
70
|
}
|
|
@@ -11,7 +11,7 @@ export class InsertFinalNewLineAction extends EditorAction {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
id: InsertFinalNewLineAction.ID,
|
|
14
|
-
label: nls.localize2(
|
|
14
|
+
label: nls.localize2(1242, "Insert Final New Line"),
|
|
15
15
|
precondition: EditorContextKeys.writable
|
|
16
16
|
});
|
|
17
17
|
}
|
|
@@ -10,7 +10,7 @@ export class ExpandLineSelectionAction extends EditorAction {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super({
|
|
12
12
|
id: 'expandLineSelection',
|
|
13
|
-
label: nls.localize2(
|
|
13
|
+
label: nls.localize2(1243, "Expand Line Selection"),
|
|
14
14
|
precondition: undefined,
|
|
15
15
|
kbOpts: {
|
|
16
16
|
weight: 0 /* KeybindingWeight.EditorCore */,
|
|
@@ -63,7 +63,7 @@ class CopyLinesUpAction extends AbstractCopyLinesAction {
|
|
|
63
63
|
constructor() {
|
|
64
64
|
super(false, {
|
|
65
65
|
id: 'editor.action.copyLinesUpAction',
|
|
66
|
-
label: nls.localize2(
|
|
66
|
+
label: nls.localize2(1249, "Copy Line Up"),
|
|
67
67
|
precondition: EditorContextKeys.writable,
|
|
68
68
|
kbOpts: {
|
|
69
69
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -74,7 +74,7 @@ class CopyLinesUpAction extends AbstractCopyLinesAction {
|
|
|
74
74
|
menuOpts: {
|
|
75
75
|
menuId: MenuId.MenubarSelectionMenu,
|
|
76
76
|
group: '2_line',
|
|
77
|
-
title: nls.localize(
|
|
77
|
+
title: nls.localize(1244, "&&Copy Line Up"),
|
|
78
78
|
order: 1
|
|
79
79
|
},
|
|
80
80
|
canTriggerInlineEdits: true,
|
|
@@ -85,7 +85,7 @@ class CopyLinesDownAction extends AbstractCopyLinesAction {
|
|
|
85
85
|
constructor() {
|
|
86
86
|
super(true, {
|
|
87
87
|
id: 'editor.action.copyLinesDownAction',
|
|
88
|
-
label: nls.localize2(
|
|
88
|
+
label: nls.localize2(1250, "Copy Line Down"),
|
|
89
89
|
precondition: EditorContextKeys.writable,
|
|
90
90
|
kbOpts: {
|
|
91
91
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -96,7 +96,7 @@ class CopyLinesDownAction extends AbstractCopyLinesAction {
|
|
|
96
96
|
menuOpts: {
|
|
97
97
|
menuId: MenuId.MenubarSelectionMenu,
|
|
98
98
|
group: '2_line',
|
|
99
|
-
title: nls.localize(
|
|
99
|
+
title: nls.localize(1245, "Co&&py Line Down"),
|
|
100
100
|
order: 2
|
|
101
101
|
},
|
|
102
102
|
canTriggerInlineEdits: true,
|
|
@@ -107,12 +107,12 @@ export class DuplicateSelectionAction extends EditorAction {
|
|
|
107
107
|
constructor() {
|
|
108
108
|
super({
|
|
109
109
|
id: 'editor.action.duplicateSelection',
|
|
110
|
-
label: nls.localize2(
|
|
110
|
+
label: nls.localize2(1251, "Duplicate Selection"),
|
|
111
111
|
precondition: EditorContextKeys.writable,
|
|
112
112
|
menuOpts: {
|
|
113
113
|
menuId: MenuId.MenubarSelectionMenu,
|
|
114
114
|
group: '2_line',
|
|
115
|
-
title: nls.localize(
|
|
115
|
+
title: nls.localize(1246, "&&Duplicate Selection"),
|
|
116
116
|
order: 5
|
|
117
117
|
},
|
|
118
118
|
canTriggerInlineEdits: true,
|
|
@@ -162,7 +162,7 @@ class MoveLinesUpAction extends AbstractMoveLinesAction {
|
|
|
162
162
|
constructor() {
|
|
163
163
|
super(false, {
|
|
164
164
|
id: 'editor.action.moveLinesUpAction',
|
|
165
|
-
label: nls.localize2(
|
|
165
|
+
label: nls.localize2(1252, "Move Line Up"),
|
|
166
166
|
precondition: EditorContextKeys.writable,
|
|
167
167
|
kbOpts: {
|
|
168
168
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -173,7 +173,7 @@ class MoveLinesUpAction extends AbstractMoveLinesAction {
|
|
|
173
173
|
menuOpts: {
|
|
174
174
|
menuId: MenuId.MenubarSelectionMenu,
|
|
175
175
|
group: '2_line',
|
|
176
|
-
title: nls.localize(
|
|
176
|
+
title: nls.localize(1247, "Mo&&ve Line Up"),
|
|
177
177
|
order: 3
|
|
178
178
|
},
|
|
179
179
|
canTriggerInlineEdits: true,
|
|
@@ -184,7 +184,7 @@ class MoveLinesDownAction extends AbstractMoveLinesAction {
|
|
|
184
184
|
constructor() {
|
|
185
185
|
super(true, {
|
|
186
186
|
id: 'editor.action.moveLinesDownAction',
|
|
187
|
-
label: nls.localize2(
|
|
187
|
+
label: nls.localize2(1253, "Move Line Down"),
|
|
188
188
|
precondition: EditorContextKeys.writable,
|
|
189
189
|
kbOpts: {
|
|
190
190
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -195,7 +195,7 @@ class MoveLinesDownAction extends AbstractMoveLinesAction {
|
|
|
195
195
|
menuOpts: {
|
|
196
196
|
menuId: MenuId.MenubarSelectionMenu,
|
|
197
197
|
group: '2_line',
|
|
198
|
-
title: nls.localize(
|
|
198
|
+
title: nls.localize(1248, "Move &&Line Down"),
|
|
199
199
|
order: 4
|
|
200
200
|
},
|
|
201
201
|
canTriggerInlineEdits: true,
|
|
@@ -235,7 +235,7 @@ export class SortLinesAscendingAction extends AbstractSortLinesAction {
|
|
|
235
235
|
constructor() {
|
|
236
236
|
super(false, {
|
|
237
237
|
id: 'editor.action.sortLinesAscending',
|
|
238
|
-
label: nls.localize2(
|
|
238
|
+
label: nls.localize2(1254, "Sort Lines Ascending"),
|
|
239
239
|
precondition: EditorContextKeys.writable,
|
|
240
240
|
canTriggerInlineEdits: true,
|
|
241
241
|
});
|
|
@@ -245,7 +245,7 @@ export class SortLinesDescendingAction extends AbstractSortLinesAction {
|
|
|
245
245
|
constructor() {
|
|
246
246
|
super(true, {
|
|
247
247
|
id: 'editor.action.sortLinesDescending',
|
|
248
|
-
label: nls.localize2(
|
|
248
|
+
label: nls.localize2(1255, "Sort Lines Descending"),
|
|
249
249
|
precondition: EditorContextKeys.writable,
|
|
250
250
|
canTriggerInlineEdits: true,
|
|
251
251
|
});
|
|
@@ -255,7 +255,7 @@ export class DeleteDuplicateLinesAction extends EditorAction {
|
|
|
255
255
|
constructor() {
|
|
256
256
|
super({
|
|
257
257
|
id: 'editor.action.removeDuplicateLines',
|
|
258
|
-
label: nls.localize2(
|
|
258
|
+
label: nls.localize2(1256, "Delete Duplicate Lines"),
|
|
259
259
|
precondition: EditorContextKeys.writable,
|
|
260
260
|
canTriggerInlineEdits: true,
|
|
261
261
|
});
|
|
@@ -305,7 +305,7 @@ export class ReverseLinesAction extends EditorAction {
|
|
|
305
305
|
constructor() {
|
|
306
306
|
super({
|
|
307
307
|
id: 'editor.action.reverseLines',
|
|
308
|
-
label: nls.localize2(
|
|
308
|
+
label: nls.localize2(1257, "Reverse lines"),
|
|
309
309
|
precondition: EditorContextKeys.writable,
|
|
310
310
|
canTriggerInlineEdits: true
|
|
311
311
|
});
|
|
@@ -372,7 +372,7 @@ export class TrimTrailingWhitespaceAction extends EditorAction {
|
|
|
372
372
|
constructor() {
|
|
373
373
|
super({
|
|
374
374
|
id: TrimTrailingWhitespaceAction.ID,
|
|
375
|
-
label: nls.localize2(
|
|
375
|
+
label: nls.localize2(1258, "Trim Trailing Whitespace"),
|
|
376
376
|
precondition: EditorContextKeys.writable,
|
|
377
377
|
kbOpts: {
|
|
378
378
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -406,7 +406,7 @@ export class DeleteLinesAction extends EditorAction {
|
|
|
406
406
|
constructor() {
|
|
407
407
|
super({
|
|
408
408
|
id: 'editor.action.deleteLines',
|
|
409
|
-
label: nls.localize2(
|
|
409
|
+
label: nls.localize2(1259, "Delete Line"),
|
|
410
410
|
precondition: EditorContextKeys.writable,
|
|
411
411
|
kbOpts: {
|
|
412
412
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -495,7 +495,7 @@ export class IndentLinesAction extends EditorAction {
|
|
|
495
495
|
constructor() {
|
|
496
496
|
super({
|
|
497
497
|
id: 'editor.action.indentLines',
|
|
498
|
-
label: nls.localize2(
|
|
498
|
+
label: nls.localize2(1260, "Indent Line"),
|
|
499
499
|
precondition: EditorContextKeys.writable,
|
|
500
500
|
kbOpts: {
|
|
501
501
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -519,7 +519,7 @@ class OutdentLinesAction extends EditorAction {
|
|
|
519
519
|
constructor() {
|
|
520
520
|
super({
|
|
521
521
|
id: 'editor.action.outdentLines',
|
|
522
|
-
label: nls.localize2(
|
|
522
|
+
label: nls.localize2(1261, "Outdent Line"),
|
|
523
523
|
precondition: EditorContextKeys.writable,
|
|
524
524
|
kbOpts: {
|
|
525
525
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -538,7 +538,7 @@ export class InsertLineBeforeAction extends EditorAction {
|
|
|
538
538
|
constructor() {
|
|
539
539
|
super({
|
|
540
540
|
id: InsertLineBeforeAction.ID,
|
|
541
|
-
label: nls.localize2(
|
|
541
|
+
label: nls.localize2(1262, "Insert Line Above"),
|
|
542
542
|
precondition: EditorContextKeys.writable,
|
|
543
543
|
kbOpts: {
|
|
544
544
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -562,7 +562,7 @@ export class InsertLineAfterAction extends EditorAction {
|
|
|
562
562
|
constructor() {
|
|
563
563
|
super({
|
|
564
564
|
id: InsertLineAfterAction.ID,
|
|
565
|
-
label: nls.localize2(
|
|
565
|
+
label: nls.localize2(1263, "Insert Line Below"),
|
|
566
566
|
precondition: EditorContextKeys.writable,
|
|
567
567
|
kbOpts: {
|
|
568
568
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -614,7 +614,7 @@ export class DeleteAllLeftAction extends AbstractDeleteAllToBoundaryAction {
|
|
|
614
614
|
constructor() {
|
|
615
615
|
super({
|
|
616
616
|
id: 'deleteAllLeft',
|
|
617
|
-
label: nls.localize2(
|
|
617
|
+
label: nls.localize2(1264, "Delete All Left"),
|
|
618
618
|
precondition: EditorContextKeys.writable,
|
|
619
619
|
kbOpts: {
|
|
620
620
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -684,7 +684,7 @@ export class DeleteAllRightAction extends AbstractDeleteAllToBoundaryAction {
|
|
|
684
684
|
constructor() {
|
|
685
685
|
super({
|
|
686
686
|
id: 'deleteAllRight',
|
|
687
|
-
label: nls.localize2(
|
|
687
|
+
label: nls.localize2(1265, "Delete All Right"),
|
|
688
688
|
precondition: EditorContextKeys.writable,
|
|
689
689
|
kbOpts: {
|
|
690
690
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -742,7 +742,7 @@ export class JoinLinesAction extends EditorAction {
|
|
|
742
742
|
constructor() {
|
|
743
743
|
super({
|
|
744
744
|
id: 'editor.action.joinLines',
|
|
745
|
-
label: nls.localize2(
|
|
745
|
+
label: nls.localize2(1266, "Join Lines"),
|
|
746
746
|
precondition: EditorContextKeys.writable,
|
|
747
747
|
kbOpts: {
|
|
748
748
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -884,7 +884,7 @@ export class TransposeAction extends EditorAction {
|
|
|
884
884
|
constructor() {
|
|
885
885
|
super({
|
|
886
886
|
id: 'editor.action.transpose',
|
|
887
|
-
label: nls.localize2(
|
|
887
|
+
label: nls.localize2(1267, "Transpose Characters around the Cursor"),
|
|
888
888
|
precondition: EditorContextKeys.writable,
|
|
889
889
|
canTriggerInlineEdits: true,
|
|
890
890
|
});
|
|
@@ -964,7 +964,7 @@ export class UpperCaseAction extends AbstractCaseAction {
|
|
|
964
964
|
constructor() {
|
|
965
965
|
super({
|
|
966
966
|
id: 'editor.action.transformToUppercase',
|
|
967
|
-
label: nls.localize2(
|
|
967
|
+
label: nls.localize2(1268, "Transform to Uppercase"),
|
|
968
968
|
precondition: EditorContextKeys.writable,
|
|
969
969
|
canTriggerInlineEdits: true,
|
|
970
970
|
});
|
|
@@ -977,7 +977,7 @@ export class LowerCaseAction extends AbstractCaseAction {
|
|
|
977
977
|
constructor() {
|
|
978
978
|
super({
|
|
979
979
|
id: 'editor.action.transformToLowercase',
|
|
980
|
-
label: nls.localize2(
|
|
980
|
+
label: nls.localize2(1269, "Transform to Lowercase"),
|
|
981
981
|
precondition: EditorContextKeys.writable,
|
|
982
982
|
canTriggerInlineEdits: true
|
|
983
983
|
});
|
|
@@ -1014,7 +1014,7 @@ export class TitleCaseAction extends AbstractCaseAction {
|
|
|
1014
1014
|
constructor() {
|
|
1015
1015
|
super({
|
|
1016
1016
|
id: 'editor.action.transformToTitlecase',
|
|
1017
|
-
label: nls.localize2(
|
|
1017
|
+
label: nls.localize2(1270, "Transform to Title Case"),
|
|
1018
1018
|
precondition: EditorContextKeys.writable,
|
|
1019
1019
|
canTriggerInlineEdits: true
|
|
1020
1020
|
});
|
|
@@ -1036,7 +1036,7 @@ export class SnakeCaseAction extends AbstractCaseAction {
|
|
|
1036
1036
|
constructor() {
|
|
1037
1037
|
super({
|
|
1038
1038
|
id: 'editor.action.transformToSnakecase',
|
|
1039
|
-
label: nls.localize2(
|
|
1039
|
+
label: nls.localize2(1271, "Transform to Snake Case"),
|
|
1040
1040
|
precondition: EditorContextKeys.writable,
|
|
1041
1041
|
canTriggerInlineEdits: true,
|
|
1042
1042
|
});
|
|
@@ -1061,7 +1061,7 @@ export class CamelCaseAction extends AbstractCaseAction {
|
|
|
1061
1061
|
constructor() {
|
|
1062
1062
|
super({
|
|
1063
1063
|
id: 'editor.action.transformToCamelcase',
|
|
1064
|
-
label: nls.localize2(
|
|
1064
|
+
label: nls.localize2(1272, "Transform to Camel Case"),
|
|
1065
1065
|
precondition: EditorContextKeys.writable,
|
|
1066
1066
|
canTriggerInlineEdits: true
|
|
1067
1067
|
});
|
|
@@ -1086,7 +1086,7 @@ export class PascalCaseAction extends AbstractCaseAction {
|
|
|
1086
1086
|
constructor() {
|
|
1087
1087
|
super({
|
|
1088
1088
|
id: 'editor.action.transformToPascalcase',
|
|
1089
|
-
label: nls.localize2(
|
|
1089
|
+
label: nls.localize2(1273, "Transform to Pascal Case"),
|
|
1090
1090
|
precondition: EditorContextKeys.writable,
|
|
1091
1091
|
canTriggerInlineEdits: true,
|
|
1092
1092
|
});
|
|
@@ -1126,7 +1126,7 @@ export class KebabCaseAction extends AbstractCaseAction {
|
|
|
1126
1126
|
constructor() {
|
|
1127
1127
|
super({
|
|
1128
1128
|
id: 'editor.action.transformToKebabcase',
|
|
1129
|
-
label: nls.localize2(
|
|
1129
|
+
label: nls.localize2(1274, 'Transform to Kebab Case'),
|
|
1130
1130
|
precondition: EditorContextKeys.writable,
|
|
1131
1131
|
canTriggerInlineEdits: true,
|
|
1132
1132
|
});
|
|
@@ -299,7 +299,7 @@ export class LinkedEditingAction extends EditorAction {
|
|
|
299
299
|
constructor() {
|
|
300
300
|
super({
|
|
301
301
|
id: 'editor.action.linkedEditing',
|
|
302
|
-
label: nls.localize2(
|
|
302
|
+
label: nls.localize2(1276, "Start Linked Editing"),
|
|
303
303
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasRenameProvider),
|
|
304
304
|
kbOpts: {
|
|
305
305
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -360,7 +360,7 @@ function getLinkedEditingRanges(providers, model, position, token) {
|
|
|
360
360
|
}
|
|
361
361
|
}), result => !!result && arrays.isNonEmptyArray(result?.ranges));
|
|
362
362
|
}
|
|
363
|
-
export const editorLinkedEditingBackground = registerColor('editor.linkedEditingBackground', { dark: Color.fromHex('#f00').transparent(0.3), light: Color.fromHex('#f00').transparent(0.3), hcDark: Color.fromHex('#f00').transparent(0.3), hcLight: Color.white }, nls.localize(
|
|
363
|
+
export const editorLinkedEditingBackground = registerColor('editor.linkedEditingBackground', { dark: Color.fromHex('#f00').transparent(0.3), light: Color.fromHex('#f00').transparent(0.3), hcDark: Color.fromHex('#f00').transparent(0.3), hcLight: Color.white }, nls.localize(1275, 'Background color when the editor auto renames on type.'));
|
|
364
364
|
registerModelAndPositionCommand('_executeLinkedEditingProvider', (_accessor, model, position) => {
|
|
365
365
|
const { linkedEditingRangeProvider } = _accessor.get(ILanguageFeaturesService);
|
|
366
366
|
return getLinkedEditingRanges(linkedEditingRangeProvider, model, position, CancellationToken.None);
|
|
@@ -220,10 +220,10 @@ let LinkDetector = class LinkDetector extends Disposable {
|
|
|
220
220
|
const messageOrError = err instanceof Error ? err.message : err;
|
|
221
221
|
// different error cases
|
|
222
222
|
if (messageOrError === 'invalid') {
|
|
223
|
-
this.notificationService.warn(nls.localize(
|
|
223
|
+
this.notificationService.warn(nls.localize(1277, 'Failed to open this link because it is not well-formed: {0}', link.url.toString()));
|
|
224
224
|
}
|
|
225
225
|
else if (messageOrError === 'missing') {
|
|
226
|
-
this.notificationService.warn(nls.localize(
|
|
226
|
+
this.notificationService.warn(nls.localize(1278, 'Failed to open this link because its target is missing.'));
|
|
227
227
|
}
|
|
228
228
|
else {
|
|
229
229
|
onUnexpectedError(err);
|
|
@@ -317,15 +317,15 @@ function getHoverMessage(link, useMetaKey) {
|
|
|
317
317
|
const label = link.tooltip
|
|
318
318
|
? link.tooltip
|
|
319
319
|
: executeCmd
|
|
320
|
-
? nls.localize(
|
|
321
|
-
: nls.localize(
|
|
320
|
+
? nls.localize(1279, 'Execute command')
|
|
321
|
+
: nls.localize(1280, 'Follow link');
|
|
322
322
|
const kb = useMetaKey
|
|
323
323
|
? platform.isMacintosh
|
|
324
|
-
? nls.localize(
|
|
325
|
-
: nls.localize(
|
|
324
|
+
? nls.localize(1281, "cmd + click")
|
|
325
|
+
: nls.localize(1282, "ctrl + click")
|
|
326
326
|
: platform.isMacintosh
|
|
327
|
-
? nls.localize(
|
|
328
|
-
: nls.localize(
|
|
327
|
+
? nls.localize(1283, "option + click")
|
|
328
|
+
: nls.localize(1284, "alt + click");
|
|
329
329
|
if (link.url) {
|
|
330
330
|
let nativeLabel = '';
|
|
331
331
|
if (/^command:/i.test(link.url.toString())) {
|
|
@@ -333,7 +333,7 @@ function getHoverMessage(link, useMetaKey) {
|
|
|
333
333
|
const match = link.url.toString().match(/^command:([^?#]+)/);
|
|
334
334
|
if (match) {
|
|
335
335
|
const commandId = match[1];
|
|
336
|
-
nativeLabel = nls.localize(
|
|
336
|
+
nativeLabel = nls.localize(1285, "Execute command {0}", commandId);
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
const hoverMessage = new MarkdownString('', true)
|
|
@@ -349,7 +349,7 @@ class OpenLinkAction extends EditorAction {
|
|
|
349
349
|
constructor() {
|
|
350
350
|
super({
|
|
351
351
|
id: 'editor.action.openLink',
|
|
352
|
-
label: nls.localize2(
|
|
352
|
+
label: nls.localize2(1286, "Open Link"),
|
|
353
353
|
precondition: undefined
|
|
354
354
|
});
|
|
355
355
|
}
|
|
@@ -28,7 +28,7 @@ import * as dom from '../../../../base/browser/dom.js';
|
|
|
28
28
|
let MessageController = class MessageController {
|
|
29
29
|
static { MessageController_1 = this; }
|
|
30
30
|
static { this.ID = 'editor.contrib.messageController'; }
|
|
31
|
-
static { this.MESSAGE_VISIBLE = new RawContextKey('messageVisible', false, nls.localize(
|
|
31
|
+
static { this.MESSAGE_VISIBLE = new RawContextKey('messageVisible', false, nls.localize(1287, 'Whether the editor is currently showing an inline message')); }
|
|
32
32
|
static get(editor) {
|
|
33
33
|
return editor.getContribution(MessageController_1.ID);
|
|
34
34
|
}
|
|
@@ -32,7 +32,7 @@ function announceCursorChange(previousCursorState, cursorState) {
|
|
|
32
32
|
const cursorDiff = cursorState.filter(cs => !previousCursorState.find(pcs => pcs.equals(cs)));
|
|
33
33
|
if (cursorDiff.length >= 1) {
|
|
34
34
|
const cursorPositions = cursorDiff.map(cs => `line ${cs.viewState.position.lineNumber} column ${cs.viewState.position.column}`).join(', ');
|
|
35
|
-
const msg = cursorDiff.length === 1 ? nls.localize(
|
|
35
|
+
const msg = cursorDiff.length === 1 ? nls.localize(1288, "Cursor added: {0}", cursorPositions) : nls.localize(1289, "Cursors added: {0}", cursorPositions);
|
|
36
36
|
status(msg);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -40,7 +40,7 @@ export class InsertCursorAbove extends EditorAction {
|
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: 'editor.action.insertCursorAbove',
|
|
43
|
-
label: nls.localize2(
|
|
43
|
+
label: nls.localize2(1298, "Add Cursor Above"),
|
|
44
44
|
precondition: undefined,
|
|
45
45
|
kbOpts: {
|
|
46
46
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -54,7 +54,7 @@ export class InsertCursorAbove extends EditorAction {
|
|
|
54
54
|
menuOpts: {
|
|
55
55
|
menuId: MenuId.MenubarSelectionMenu,
|
|
56
56
|
group: '3_multi',
|
|
57
|
-
title: nls.localize(
|
|
57
|
+
title: nls.localize(1290, "&&Add Cursor Above"),
|
|
58
58
|
order: 2
|
|
59
59
|
}
|
|
60
60
|
});
|
|
@@ -82,7 +82,7 @@ export class InsertCursorBelow extends EditorAction {
|
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: 'editor.action.insertCursorBelow',
|
|
85
|
-
label: nls.localize2(
|
|
85
|
+
label: nls.localize2(1299, "Add Cursor Below"),
|
|
86
86
|
precondition: undefined,
|
|
87
87
|
kbOpts: {
|
|
88
88
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -96,7 +96,7 @@ export class InsertCursorBelow extends EditorAction {
|
|
|
96
96
|
menuOpts: {
|
|
97
97
|
menuId: MenuId.MenubarSelectionMenu,
|
|
98
98
|
group: '3_multi',
|
|
99
|
-
title: nls.localize(
|
|
99
|
+
title: nls.localize(1291, "A&&dd Cursor Below"),
|
|
100
100
|
order: 3
|
|
101
101
|
}
|
|
102
102
|
});
|
|
@@ -124,7 +124,7 @@ class InsertCursorAtEndOfEachLineSelected extends EditorAction {
|
|
|
124
124
|
constructor() {
|
|
125
125
|
super({
|
|
126
126
|
id: 'editor.action.insertCursorAtEndOfEachLineSelected',
|
|
127
|
-
label: nls.localize2(
|
|
127
|
+
label: nls.localize2(1300, "Add Cursors to Line Ends"),
|
|
128
128
|
precondition: undefined,
|
|
129
129
|
kbOpts: {
|
|
130
130
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -134,7 +134,7 @@ class InsertCursorAtEndOfEachLineSelected extends EditorAction {
|
|
|
134
134
|
menuOpts: {
|
|
135
135
|
menuId: MenuId.MenubarSelectionMenu,
|
|
136
136
|
group: '3_multi',
|
|
137
|
-
title: nls.localize(
|
|
137
|
+
title: nls.localize(1292, "Add C&&ursors to Line Ends"),
|
|
138
138
|
order: 4
|
|
139
139
|
}
|
|
140
140
|
});
|
|
@@ -171,7 +171,7 @@ class InsertCursorAtEndOfLineSelected extends EditorAction {
|
|
|
171
171
|
constructor() {
|
|
172
172
|
super({
|
|
173
173
|
id: 'editor.action.addCursorsToBottom',
|
|
174
|
-
label: nls.localize2(
|
|
174
|
+
label: nls.localize2(1301, "Add Cursors to Bottom"),
|
|
175
175
|
precondition: undefined
|
|
176
176
|
});
|
|
177
177
|
}
|
|
@@ -197,7 +197,7 @@ class InsertCursorAtTopOfLineSelected extends EditorAction {
|
|
|
197
197
|
constructor() {
|
|
198
198
|
super({
|
|
199
199
|
id: 'editor.action.addCursorsToTop',
|
|
200
|
-
label: nls.localize2(
|
|
200
|
+
label: nls.localize2(1302, "Add Cursors to Top"),
|
|
201
201
|
precondition: undefined
|
|
202
202
|
});
|
|
203
203
|
}
|
|
@@ -574,7 +574,7 @@ export class AddSelectionToNextFindMatchAction extends MultiCursorSelectionContr
|
|
|
574
574
|
constructor() {
|
|
575
575
|
super({
|
|
576
576
|
id: 'editor.action.addSelectionToNextFindMatch',
|
|
577
|
-
label: nls.localize2(
|
|
577
|
+
label: nls.localize2(1303, "Add Selection to Next Find Match"),
|
|
578
578
|
precondition: undefined,
|
|
579
579
|
kbOpts: {
|
|
580
580
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -584,7 +584,7 @@ export class AddSelectionToNextFindMatchAction extends MultiCursorSelectionContr
|
|
|
584
584
|
menuOpts: {
|
|
585
585
|
menuId: MenuId.MenubarSelectionMenu,
|
|
586
586
|
group: '3_multi',
|
|
587
|
-
title: nls.localize(
|
|
587
|
+
title: nls.localize(1293, "Add &&Next Occurrence"),
|
|
588
588
|
order: 5
|
|
589
589
|
}
|
|
590
590
|
});
|
|
@@ -597,12 +597,12 @@ export class AddSelectionToPreviousFindMatchAction extends MultiCursorSelectionC
|
|
|
597
597
|
constructor() {
|
|
598
598
|
super({
|
|
599
599
|
id: 'editor.action.addSelectionToPreviousFindMatch',
|
|
600
|
-
label: nls.localize2(
|
|
600
|
+
label: nls.localize2(1304, "Add Selection to Previous Find Match"),
|
|
601
601
|
precondition: undefined,
|
|
602
602
|
menuOpts: {
|
|
603
603
|
menuId: MenuId.MenubarSelectionMenu,
|
|
604
604
|
group: '3_multi',
|
|
605
|
-
title: nls.localize(
|
|
605
|
+
title: nls.localize(1294, "Add P&&revious Occurrence"),
|
|
606
606
|
order: 6
|
|
607
607
|
}
|
|
608
608
|
});
|
|
@@ -615,7 +615,7 @@ export class MoveSelectionToNextFindMatchAction extends MultiCursorSelectionCont
|
|
|
615
615
|
constructor() {
|
|
616
616
|
super({
|
|
617
617
|
id: 'editor.action.moveSelectionToNextFindMatch',
|
|
618
|
-
label: nls.localize2(
|
|
618
|
+
label: nls.localize2(1305, "Move Last Selection to Next Find Match"),
|
|
619
619
|
precondition: undefined,
|
|
620
620
|
kbOpts: {
|
|
621
621
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -632,7 +632,7 @@ export class MoveSelectionToPreviousFindMatchAction extends MultiCursorSelection
|
|
|
632
632
|
constructor() {
|
|
633
633
|
super({
|
|
634
634
|
id: 'editor.action.moveSelectionToPreviousFindMatch',
|
|
635
|
-
label: nls.localize2(
|
|
635
|
+
label: nls.localize2(1306, "Move Last Selection to Previous Find Match"),
|
|
636
636
|
precondition: undefined
|
|
637
637
|
});
|
|
638
638
|
}
|
|
@@ -644,7 +644,7 @@ export class SelectHighlightsAction extends MultiCursorSelectionControllerAction
|
|
|
644
644
|
constructor() {
|
|
645
645
|
super({
|
|
646
646
|
id: 'editor.action.selectHighlights',
|
|
647
|
-
label: nls.localize2(
|
|
647
|
+
label: nls.localize2(1307, "Select All Occurrences of Find Match"),
|
|
648
648
|
precondition: undefined,
|
|
649
649
|
kbOpts: {
|
|
650
650
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -654,7 +654,7 @@ export class SelectHighlightsAction extends MultiCursorSelectionControllerAction
|
|
|
654
654
|
menuOpts: {
|
|
655
655
|
menuId: MenuId.MenubarSelectionMenu,
|
|
656
656
|
group: '3_multi',
|
|
657
|
-
title: nls.localize(
|
|
657
|
+
title: nls.localize(1295, "Select All &&Occurrences"),
|
|
658
658
|
order: 7
|
|
659
659
|
}
|
|
660
660
|
});
|
|
@@ -667,7 +667,7 @@ export class CompatChangeAll extends MultiCursorSelectionControllerAction {
|
|
|
667
667
|
constructor() {
|
|
668
668
|
super({
|
|
669
669
|
id: 'editor.action.changeAll',
|
|
670
|
-
label: nls.localize2(
|
|
670
|
+
label: nls.localize2(1308, "Change All Occurrences"),
|
|
671
671
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.editorTextFocus),
|
|
672
672
|
kbOpts: {
|
|
673
673
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -925,9 +925,9 @@ export class FocusNextCursor extends EditorAction {
|
|
|
925
925
|
constructor() {
|
|
926
926
|
super({
|
|
927
927
|
id: 'editor.action.focusNextCursor',
|
|
928
|
-
label: nls.localize2(
|
|
928
|
+
label: nls.localize2(1309, "Focus Next Cursor"),
|
|
929
929
|
metadata: {
|
|
930
|
-
description: nls.localize(
|
|
930
|
+
description: nls.localize(1296, "Focuses the next cursor"),
|
|
931
931
|
args: [],
|
|
932
932
|
},
|
|
933
933
|
precondition: undefined
|
|
@@ -957,9 +957,9 @@ export class FocusPreviousCursor extends EditorAction {
|
|
|
957
957
|
constructor() {
|
|
958
958
|
super({
|
|
959
959
|
id: 'editor.action.focusPreviousCursor',
|
|
960
|
-
label: nls.localize2(
|
|
960
|
+
label: nls.localize2(1310, "Focus Previous Cursor"),
|
|
961
961
|
metadata: {
|
|
962
|
-
description: nls.localize(
|
|
962
|
+
description: nls.localize(1297, "Focuses the previous cursor"),
|
|
963
963
|
args: [],
|
|
964
964
|
},
|
|
965
965
|
precondition: undefined
|
|
@@ -67,7 +67,7 @@ export class TriggerParameterHintsAction extends EditorAction {
|
|
|
67
67
|
constructor() {
|
|
68
68
|
super({
|
|
69
69
|
id: 'editor.action.triggerParameterHints',
|
|
70
|
-
label: nls.localize2(
|
|
70
|
+
label: nls.localize2(1311, "Trigger Parameter Hints"),
|
|
71
71
|
precondition: EditorContextKeys.hasSignatureHelpProvider,
|
|
72
72
|
kbOpts: {
|
|
73
73
|
kbExpr: EditorContextKeys.editorTextFocus,
|