@codingame/monaco-vscode-api 15.0.0 → 15.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/missing-services.js +53 -4
- package/package.json +8 -8
- package/services.js +5 -5
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +2 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +125 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +2 -3
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +2 -3
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +2 -3
- package/vscode/src/vs/editor/common/services/semanticTokensStylingService.js +2 -3
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.d.ts +15 -0
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +93 -0
- package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js +2 -3
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +4 -4
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.d.ts +45 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +215 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.service.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.d.ts +26 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +178 -0
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- 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 +24 -24
- 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/inlayHintsController.js +1 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- 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/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/indicatorView.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +18 -18
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- 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.d.ts +6 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -22
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/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/suggestMemory.d.ts +67 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +232 -0
- 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/suggest/browser/wordContextKey.js +1 -1
- 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/editor/standalone/browser/standaloneServices.js +12 -8
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +54 -54
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +255 -13
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +26 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +230 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- 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 +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +94 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +45 -45
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +22 -23
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- 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/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/editorOptions.d.ts +3 -0
- package/vscode/src/vs/workbench/common/editor/editorOptions.js +52 -0
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +141 -141
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.d.ts +13 -0
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +87 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +83 -83
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +12 -12
|
@@ -30,7 +30,7 @@ function announceCursorChange(previousCursorState, cursorState) {
|
|
|
30
30
|
const cursorPositions = ( cursorDiff.map(
|
|
31
31
|
cs => `line ${cs.viewState.position.lineNumber} column ${cs.viewState.position.column}`
|
|
32
32
|
)).join(', ');
|
|
33
|
-
const msg = cursorDiff.length === 1 ? ( localize(
|
|
33
|
+
const msg = cursorDiff.length === 1 ? ( localize(1316, "Cursor added: {0}", cursorPositions)) : ( localize(1317, "Cursors added: {0}", cursorPositions));
|
|
34
34
|
status(msg);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -38,7 +38,7 @@ class InsertCursorAbove extends EditorAction {
|
|
|
38
38
|
constructor() {
|
|
39
39
|
super({
|
|
40
40
|
id: 'editor.action.insertCursorAbove',
|
|
41
|
-
label: ( localize2(
|
|
41
|
+
label: ( localize2(1318, "Add Cursor Above")),
|
|
42
42
|
precondition: undefined,
|
|
43
43
|
kbOpts: {
|
|
44
44
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -52,7 +52,7 @@ class InsertCursorAbove extends EditorAction {
|
|
|
52
52
|
menuOpts: {
|
|
53
53
|
menuId: MenuId.MenubarSelectionMenu,
|
|
54
54
|
group: '3_multi',
|
|
55
|
-
title: ( localize(
|
|
55
|
+
title: ( localize(1319, "&&Add Cursor Above")),
|
|
56
56
|
order: 2
|
|
57
57
|
}
|
|
58
58
|
});
|
|
@@ -80,7 +80,7 @@ class InsertCursorBelow extends EditorAction {
|
|
|
80
80
|
constructor() {
|
|
81
81
|
super({
|
|
82
82
|
id: 'editor.action.insertCursorBelow',
|
|
83
|
-
label: ( localize2(
|
|
83
|
+
label: ( localize2(1320, "Add Cursor Below")),
|
|
84
84
|
precondition: undefined,
|
|
85
85
|
kbOpts: {
|
|
86
86
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -94,7 +94,7 @@ class InsertCursorBelow extends EditorAction {
|
|
|
94
94
|
menuOpts: {
|
|
95
95
|
menuId: MenuId.MenubarSelectionMenu,
|
|
96
96
|
group: '3_multi',
|
|
97
|
-
title: ( localize(
|
|
97
|
+
title: ( localize(1321, "A&&dd Cursor Below")),
|
|
98
98
|
order: 3
|
|
99
99
|
}
|
|
100
100
|
});
|
|
@@ -122,7 +122,7 @@ class InsertCursorAtEndOfEachLineSelected extends EditorAction {
|
|
|
122
122
|
constructor() {
|
|
123
123
|
super({
|
|
124
124
|
id: 'editor.action.insertCursorAtEndOfEachLineSelected',
|
|
125
|
-
label: ( localize2(
|
|
125
|
+
label: ( localize2(1322, "Add Cursors to Line Ends")),
|
|
126
126
|
precondition: undefined,
|
|
127
127
|
kbOpts: {
|
|
128
128
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -132,7 +132,7 @@ class InsertCursorAtEndOfEachLineSelected extends EditorAction {
|
|
|
132
132
|
menuOpts: {
|
|
133
133
|
menuId: MenuId.MenubarSelectionMenu,
|
|
134
134
|
group: '3_multi',
|
|
135
|
-
title: ( localize(
|
|
135
|
+
title: ( localize(1323, "Add C&&ursors to Line Ends")),
|
|
136
136
|
order: 4
|
|
137
137
|
}
|
|
138
138
|
});
|
|
@@ -174,7 +174,7 @@ class InsertCursorAtEndOfLineSelected extends EditorAction {
|
|
|
174
174
|
constructor() {
|
|
175
175
|
super({
|
|
176
176
|
id: 'editor.action.addCursorsToBottom',
|
|
177
|
-
label: ( localize2(
|
|
177
|
+
label: ( localize2(1324, "Add Cursors To Bottom")),
|
|
178
178
|
precondition: undefined
|
|
179
179
|
});
|
|
180
180
|
}
|
|
@@ -200,7 +200,7 @@ class InsertCursorAtTopOfLineSelected extends EditorAction {
|
|
|
200
200
|
constructor() {
|
|
201
201
|
super({
|
|
202
202
|
id: 'editor.action.addCursorsToTop',
|
|
203
|
-
label: ( localize2(
|
|
203
|
+
label: ( localize2(1325, "Add Cursors To Top")),
|
|
204
204
|
precondition: undefined
|
|
205
205
|
});
|
|
206
206
|
}
|
|
@@ -608,7 +608,7 @@ class AddSelectionToNextFindMatchAction extends MultiCursorSelectionControllerAc
|
|
|
608
608
|
constructor() {
|
|
609
609
|
super({
|
|
610
610
|
id: 'editor.action.addSelectionToNextFindMatch',
|
|
611
|
-
label: ( localize2(
|
|
611
|
+
label: ( localize2(1326, "Add Selection To Next Find Match")),
|
|
612
612
|
precondition: undefined,
|
|
613
613
|
kbOpts: {
|
|
614
614
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -618,7 +618,7 @@ class AddSelectionToNextFindMatchAction extends MultiCursorSelectionControllerAc
|
|
|
618
618
|
menuOpts: {
|
|
619
619
|
menuId: MenuId.MenubarSelectionMenu,
|
|
620
620
|
group: '3_multi',
|
|
621
|
-
title: ( localize(
|
|
621
|
+
title: ( localize(1327, "Add &&Next Occurrence")),
|
|
622
622
|
order: 5
|
|
623
623
|
}
|
|
624
624
|
});
|
|
@@ -631,12 +631,12 @@ class AddSelectionToPreviousFindMatchAction extends MultiCursorSelectionControll
|
|
|
631
631
|
constructor() {
|
|
632
632
|
super({
|
|
633
633
|
id: 'editor.action.addSelectionToPreviousFindMatch',
|
|
634
|
-
label: ( localize2(
|
|
634
|
+
label: ( localize2(1328, "Add Selection To Previous Find Match")),
|
|
635
635
|
precondition: undefined,
|
|
636
636
|
menuOpts: {
|
|
637
637
|
menuId: MenuId.MenubarSelectionMenu,
|
|
638
638
|
group: '3_multi',
|
|
639
|
-
title: ( localize(
|
|
639
|
+
title: ( localize(1329, "Add P&&revious Occurrence")),
|
|
640
640
|
order: 6
|
|
641
641
|
}
|
|
642
642
|
});
|
|
@@ -649,7 +649,7 @@ class MoveSelectionToNextFindMatchAction extends MultiCursorSelectionControllerA
|
|
|
649
649
|
constructor() {
|
|
650
650
|
super({
|
|
651
651
|
id: 'editor.action.moveSelectionToNextFindMatch',
|
|
652
|
-
label: ( localize2(
|
|
652
|
+
label: ( localize2(1330, "Move Last Selection To Next Find Match")),
|
|
653
653
|
precondition: undefined,
|
|
654
654
|
kbOpts: {
|
|
655
655
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -666,7 +666,7 @@ class MoveSelectionToPreviousFindMatchAction extends MultiCursorSelectionControl
|
|
|
666
666
|
constructor() {
|
|
667
667
|
super({
|
|
668
668
|
id: 'editor.action.moveSelectionToPreviousFindMatch',
|
|
669
|
-
label: ( localize2(
|
|
669
|
+
label: ( localize2(1331, "Move Last Selection To Previous Find Match")),
|
|
670
670
|
precondition: undefined
|
|
671
671
|
});
|
|
672
672
|
}
|
|
@@ -678,7 +678,7 @@ class SelectHighlightsAction extends MultiCursorSelectionControllerAction {
|
|
|
678
678
|
constructor() {
|
|
679
679
|
super({
|
|
680
680
|
id: 'editor.action.selectHighlights',
|
|
681
|
-
label: ( localize2(
|
|
681
|
+
label: ( localize2(1332, "Select All Occurrences of Find Match")),
|
|
682
682
|
precondition: undefined,
|
|
683
683
|
kbOpts: {
|
|
684
684
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -688,7 +688,7 @@ class SelectHighlightsAction extends MultiCursorSelectionControllerAction {
|
|
|
688
688
|
menuOpts: {
|
|
689
689
|
menuId: MenuId.MenubarSelectionMenu,
|
|
690
690
|
group: '3_multi',
|
|
691
|
-
title: ( localize(
|
|
691
|
+
title: ( localize(1333, "Select All &&Occurrences")),
|
|
692
692
|
order: 7
|
|
693
693
|
}
|
|
694
694
|
});
|
|
@@ -701,7 +701,7 @@ class CompatChangeAll extends MultiCursorSelectionControllerAction {
|
|
|
701
701
|
constructor() {
|
|
702
702
|
super({
|
|
703
703
|
id: 'editor.action.changeAll',
|
|
704
|
-
label: ( localize2(
|
|
704
|
+
label: ( localize2(1334, "Change All Occurrences")),
|
|
705
705
|
precondition: ( ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.editorTextFocus)),
|
|
706
706
|
kbOpts: {
|
|
707
707
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -942,9 +942,9 @@ class FocusNextCursor extends EditorAction {
|
|
|
942
942
|
constructor() {
|
|
943
943
|
super({
|
|
944
944
|
id: 'editor.action.focusNextCursor',
|
|
945
|
-
label: ( localize2(
|
|
945
|
+
label: ( localize2(1335, "Focus Next Cursor")),
|
|
946
946
|
metadata: {
|
|
947
|
-
description: ( localize(
|
|
947
|
+
description: ( localize(1336, "Focuses the next cursor")),
|
|
948
948
|
args: [],
|
|
949
949
|
},
|
|
950
950
|
precondition: undefined
|
|
@@ -974,9 +974,9 @@ class FocusPreviousCursor extends EditorAction {
|
|
|
974
974
|
constructor() {
|
|
975
975
|
super({
|
|
976
976
|
id: 'editor.action.focusPreviousCursor',
|
|
977
|
-
label: ( localize2(
|
|
977
|
+
label: ( localize2(1337, "Focus Previous Cursor")),
|
|
978
978
|
metadata: {
|
|
979
|
-
description: ( localize(
|
|
979
|
+
description: ( localize(1338, "Focuses the previous cursor")),
|
|
980
980
|
args: [],
|
|
981
981
|
},
|
|
982
982
|
precondition: undefined
|
|
@@ -60,7 +60,7 @@ class TriggerParameterHintsAction extends EditorAction {
|
|
|
60
60
|
constructor() {
|
|
61
61
|
super({
|
|
62
62
|
id: 'editor.action.triggerParameterHints',
|
|
63
|
-
label: ( localize2(
|
|
63
|
+
label: ( localize2(1339, "Trigger Parameter Hints")),
|
|
64
64
|
precondition: EditorContextKeys.hasSignatureHelpProvider,
|
|
65
65
|
kbOpts: {
|
|
66
66
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -33,8 +33,8 @@ import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
|
33
33
|
|
|
34
34
|
var ParameterHintsWidget_1;
|
|
35
35
|
const $ = $$1;
|
|
36
|
-
const parameterHintsNextIcon = registerIcon('parameter-hints-next', Codicon.chevronDown, ( localize(
|
|
37
|
-
const parameterHintsPreviousIcon = registerIcon('parameter-hints-previous', Codicon.chevronUp, ( localize(
|
|
36
|
+
const parameterHintsNextIcon = registerIcon('parameter-hints-next', Codicon.chevronDown, ( localize(1340, 'Icon for show next parameter hint.')));
|
|
37
|
+
const parameterHintsPreviousIcon = registerIcon('parameter-hints-previous', Codicon.chevronUp, ( localize(1341, 'Icon for show previous parameter hint.')));
|
|
38
38
|
let ParameterHintsWidget = class ParameterHintsWidget extends Disposable {
|
|
39
39
|
static { ParameterHintsWidget_1 = this; }
|
|
40
40
|
static { this.ID = 'editor.widget.parameterHintsWidget'; }
|
|
@@ -204,7 +204,7 @@ let ParameterHintsWidget = class ParameterHintsWidget extends Disposable {
|
|
|
204
204
|
labelToAnnounce += typeof signature.documentation === 'string' ? `, ${signature.documentation}` : `, ${signature.documentation.value}`;
|
|
205
205
|
}
|
|
206
206
|
if (this.announcedLabel !== labelToAnnounce) {
|
|
207
|
-
alert(( localize(
|
|
207
|
+
alert(( localize(1342, "{0}, hint", labelToAnnounce)));
|
|
208
208
|
this.announcedLabel = labelToAnnounce;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
@@ -301,6 +301,6 @@ ParameterHintsWidget = ParameterHintsWidget_1 = ( __decorate([
|
|
|
301
301
|
( __param(3, IOpenerService)),
|
|
302
302
|
( __param(4, ILanguageService))
|
|
303
303
|
], ParameterHintsWidget));
|
|
304
|
-
registerColor('editorHoverWidget.highlightForeground', listHighlightForeground, ( localize(
|
|
304
|
+
registerColor('editorHoverWidget.highlightForeground', listHighlightForeground, ( localize(1343, 'Foreground color of the active item in the parameter hint.')));
|
|
305
305
|
|
|
306
306
|
export { ParameterHintsWidget };
|
|
@@ -5,6 +5,12 @@ import { ICodeEditor } from "../../../browser/editorBrowser.js";
|
|
|
5
5
|
import { IOptions, IStyles, ZoneWidget } from "../../zoneWidget/browser/zoneWidget.js";
|
|
6
6
|
import { RawContextKey } from "../../../../platform/contextkey/common/contextkey.js";
|
|
7
7
|
import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js";
|
|
8
|
+
import { IPeekViewService } from "./peekView.service.js";
|
|
9
|
+
export declare class PeekViewService implements IPeekViewService {
|
|
10
|
+
readonly _serviceBrand: undefined;
|
|
11
|
+
private readonly _widgets;
|
|
12
|
+
addExclusiveWidget(editor: ICodeEditor, widget: PeekViewWidget): void;
|
|
13
|
+
}
|
|
8
14
|
export declare namespace PeekContext {
|
|
9
15
|
const inPeekEditor: RawContextKey<boolean>;
|
|
10
16
|
const notInPeekEditor: import("../../../../platform/contextkey/common/contextkey.js").ContextKeyExpression;
|
|
@@ -17,7 +17,7 @@ import { localize } from '../../../../nls.js';
|
|
|
17
17
|
import { createActionViewItem } from '../../../../platform/actions/browser/menuEntryActionViewItem.js';
|
|
18
18
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
19
19
|
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.service.js';
|
|
20
|
-
import
|
|
20
|
+
import '../../../../platform/instantiation/common/extensions.js';
|
|
21
21
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
22
22
|
import { registerColor } from '../../../../platform/theme/common/colorUtils.js';
|
|
23
23
|
import { contrastBorder, activeContrastBorder } from '../../../../platform/theme/common/colors/baseColors.js';
|
|
@@ -31,9 +31,8 @@ import '../../../../platform/theme/common/colors/miscColors.js';
|
|
|
31
31
|
import '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
32
32
|
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
33
33
|
import { observableCodeEditor } from '../../../browser/observableCodeEditor.js';
|
|
34
|
-
import { IPeekViewService } from './peekView.service.js';
|
|
35
34
|
|
|
36
|
-
|
|
35
|
+
class PeekViewService {
|
|
37
36
|
constructor() {
|
|
38
37
|
this._widgets = ( new Map());
|
|
39
38
|
}
|
|
@@ -52,10 +51,10 @@ registerSingleton(IPeekViewService, class {
|
|
|
52
51
|
};
|
|
53
52
|
this._widgets.set(editor, { widget, listener: widget.onDidClose(remove) });
|
|
54
53
|
}
|
|
55
|
-
}
|
|
54
|
+
}
|
|
56
55
|
var PeekContext;
|
|
57
56
|
(function (PeekContext) {
|
|
58
|
-
PeekContext.inPeekEditor = ( new RawContextKey('inReferenceSearchEditor', true, ( localize(
|
|
57
|
+
PeekContext.inPeekEditor = ( new RawContextKey('inReferenceSearchEditor', true, ( localize(1344, "Whether the current code editor is embedded inside peek"))));
|
|
59
58
|
PeekContext.notInPeekEditor = ( PeekContext.inPeekEditor.toNegated());
|
|
60
59
|
})(PeekContext || (PeekContext = {}));
|
|
61
60
|
let PeekContextController = class PeekContextController {
|
|
@@ -151,7 +150,7 @@ let PeekViewWidget = class PeekViewWidget extends ZoneWidget {
|
|
|
151
150
|
this._actionbarWidget = ( new ActionBar(actionsContainer, actionBarOptions));
|
|
152
151
|
this._disposables.add(this._actionbarWidget);
|
|
153
152
|
if (!noCloseAction) {
|
|
154
|
-
this._actionbarWidget.push(this._disposables.add(( new Action('peekview.close', ( localize(
|
|
153
|
+
this._actionbarWidget.push(this._disposables.add(( new Action('peekview.close', ( localize(1345, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
155
154
|
this.dispose();
|
|
156
155
|
return Promise.resolve();
|
|
157
156
|
}))), { label: false, icon: true });
|
|
@@ -215,26 +214,26 @@ let PeekViewWidget = class PeekViewWidget extends ZoneWidget {
|
|
|
215
214
|
PeekViewWidget = ( __decorate([
|
|
216
215
|
( __param(2, IInstantiationService))
|
|
217
216
|
], PeekViewWidget));
|
|
218
|
-
const peekViewTitleBackground = registerColor('peekViewTitle.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, ( localize(
|
|
219
|
-
const peekViewTitleForeground = registerColor('peekViewTitleLabel.foreground', { dark: Color.white, light: Color.black, hcDark: Color.white, hcLight: editorForeground }, ( localize(
|
|
220
|
-
const peekViewTitleInfoForeground = registerColor('peekViewTitleDescription.foreground', { dark: '#ccccccb3', light: '#616161', hcDark: '#FFFFFF99', hcLight: '#292929' }, ( localize(
|
|
221
|
-
const peekViewBorder = registerColor('peekView.border', { dark: editorInfoForeground, light: editorInfoForeground, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(
|
|
222
|
-
const peekViewResultsBackground = registerColor('peekViewResult.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, ( localize(
|
|
223
|
-
registerColor('peekViewResult.lineForeground', { dark: '#bbbbbb', light: '#646465', hcDark: Color.white, hcLight: editorForeground }, ( localize(
|
|
224
|
-
registerColor('peekViewResult.fileForeground', { dark: Color.white, light: '#1E1E1E', hcDark: Color.white, hcLight: editorForeground }, ( localize(
|
|
217
|
+
const peekViewTitleBackground = registerColor('peekViewTitle.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, ( localize(1346, 'Background color of the peek view title area.')));
|
|
218
|
+
const peekViewTitleForeground = registerColor('peekViewTitleLabel.foreground', { dark: Color.white, light: Color.black, hcDark: Color.white, hcLight: editorForeground }, ( localize(1347, 'Color of the peek view title.')));
|
|
219
|
+
const peekViewTitleInfoForeground = registerColor('peekViewTitleDescription.foreground', { dark: '#ccccccb3', light: '#616161', hcDark: '#FFFFFF99', hcLight: '#292929' }, ( localize(1348, 'Color of the peek view title info.')));
|
|
220
|
+
const peekViewBorder = registerColor('peekView.border', { dark: editorInfoForeground, light: editorInfoForeground, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(1349, 'Color of the peek view borders and arrow.')));
|
|
221
|
+
const peekViewResultsBackground = registerColor('peekViewResult.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, ( localize(1350, 'Background color of the peek view result list.')));
|
|
222
|
+
registerColor('peekViewResult.lineForeground', { dark: '#bbbbbb', light: '#646465', hcDark: Color.white, hcLight: editorForeground }, ( localize(1351, 'Foreground color for line nodes in the peek view result list.')));
|
|
223
|
+
registerColor('peekViewResult.fileForeground', { dark: Color.white, light: '#1E1E1E', hcDark: Color.white, hcLight: editorForeground }, ( localize(1352, 'Foreground color for file nodes in the peek view result list.')));
|
|
225
224
|
registerColor('peekViewResult.selectionBackground', { dark: '#3399ff33', light: '#3399ff33', hcDark: null, hcLight: null }, ( localize(
|
|
226
|
-
|
|
225
|
+
1353,
|
|
227
226
|
'Background color of the selected entry in the peek view result list.'
|
|
228
227
|
)));
|
|
229
228
|
registerColor('peekViewResult.selectionForeground', { dark: Color.white, light: '#6C6C6C', hcDark: Color.white, hcLight: editorForeground }, ( localize(
|
|
230
|
-
|
|
229
|
+
1354,
|
|
231
230
|
'Foreground color of the selected entry in the peek view result list.'
|
|
232
231
|
)));
|
|
233
|
-
const peekViewEditorBackground = registerColor('peekViewEditor.background', { dark: '#001F33', light: '#F2F8FC', hcDark: Color.black, hcLight: Color.white }, ( localize(
|
|
234
|
-
registerColor('peekViewEditorGutter.background', peekViewEditorBackground, ( localize(
|
|
235
|
-
registerColor('peekViewEditorStickyScroll.background', peekViewEditorBackground, ( localize(
|
|
236
|
-
registerColor('peekViewResult.matchHighlightBackground', { dark: '#ea5c004d', light: '#ea5c004d', hcDark: null, hcLight: null }, ( localize(
|
|
237
|
-
const peekViewEditorMatchHighlight = registerColor('peekViewEditor.matchHighlightBackground', { dark: '#ff8f0099', light: '#f5d802de', hcDark: null, hcLight: null }, ( localize(
|
|
238
|
-
registerColor('peekViewEditor.matchHighlightBorder', { dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, ( localize(
|
|
232
|
+
const peekViewEditorBackground = registerColor('peekViewEditor.background', { dark: '#001F33', light: '#F2F8FC', hcDark: Color.black, hcLight: Color.white }, ( localize(1355, 'Background color of the peek view editor.')));
|
|
233
|
+
registerColor('peekViewEditorGutter.background', peekViewEditorBackground, ( localize(1356, 'Background color of the gutter in the peek view editor.')));
|
|
234
|
+
registerColor('peekViewEditorStickyScroll.background', peekViewEditorBackground, ( localize(1357, 'Background color of sticky scroll in the peek view editor.')));
|
|
235
|
+
registerColor('peekViewResult.matchHighlightBackground', { dark: '#ea5c004d', light: '#ea5c004d', hcDark: null, hcLight: null }, ( localize(1358, 'Match highlight color in the peek view result list.')));
|
|
236
|
+
const peekViewEditorMatchHighlight = registerColor('peekViewEditor.matchHighlightBackground', { dark: '#ff8f0099', light: '#f5d802de', hcDark: null, hcLight: null }, ( localize(1359, 'Match highlight color in the peek view editor.')));
|
|
237
|
+
registerColor('peekViewEditor.matchHighlightBorder', { dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, ( localize(1360, 'Match highlight border in the peek view editor.')));
|
|
239
238
|
|
|
240
|
-
export { PeekContext, PeekViewWidget, peekViewBorder, peekViewEditorBackground, peekViewEditorMatchHighlight, peekViewResultsBackground, peekViewTitleBackground, peekViewTitleForeground, peekViewTitleInfoForeground };
|
|
239
|
+
export { PeekContext, PeekViewService, PeekViewWidget, peekViewBorder, peekViewEditorBackground, peekViewEditorMatchHighlight, peekViewResultsBackground, peekViewTitleBackground, peekViewTitleForeground, peekViewTitleInfoForeground };
|
package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js
CHANGED
|
@@ -8,4 +8,4 @@ import { PlaceholderTextContribution } from './placeholderTextContribution.js';
|
|
|
8
8
|
import { wrapInReloadableClass1 } from '../../../../platform/observable/common/wrapInReloadableClass.js';
|
|
9
9
|
|
|
10
10
|
registerEditorContribution(PlaceholderTextContribution.ID, wrapInReloadableClass1(() => PlaceholderTextContribution), EditorContributionInstantiation.Eager);
|
|
11
|
-
registerColor('editor.placeholder.foreground', ghostTextForeground, ( localize(
|
|
11
|
+
registerColor('editor.placeholder.foreground', ghostTextForeground, ( localize(1361, 'Foreground color of the placeholder text in the editor.')));
|
|
@@ -19,10 +19,10 @@ class ReadOnlyMessageController extends Disposable {
|
|
|
19
19
|
let message = this.editor.getOptions().get(EditorOption.readOnlyMessage);
|
|
20
20
|
if (!message) {
|
|
21
21
|
if (this.editor.isSimpleWidget) {
|
|
22
|
-
message = ( new MarkdownString(( localize(
|
|
22
|
+
message = ( new MarkdownString(( localize(1399, "Cannot edit in read-only input"))));
|
|
23
23
|
}
|
|
24
24
|
else {
|
|
25
|
-
message = ( new MarkdownString(( localize(
|
|
25
|
+
message = ( new MarkdownString(( localize(1400, "Cannot edit in read-only editor"))));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
messageController.showMessage(message, this.editor.getPosition());
|
|
@@ -94,7 +94,7 @@ class RenameSkeleton {
|
|
|
94
94
|
}
|
|
95
95
|
const result = await provider.provideRenameEdits(this.model, this.position, newName, token);
|
|
96
96
|
if (!result) {
|
|
97
|
-
return this._provideRenameEdits(newName, i + 1, rejects.concat(( localize(
|
|
97
|
+
return this._provideRenameEdits(newName, i + 1, rejects.concat(( localize(1401, "No result."))), token);
|
|
98
98
|
}
|
|
99
99
|
else if (result.rejectReason) {
|
|
100
100
|
return this._provideRenameEdits(newName, i + 1, rejects.concat(result.rejectReason), token);
|
|
@@ -173,7 +173,7 @@ let RenameController = class RenameController {
|
|
|
173
173
|
else {
|
|
174
174
|
trace('resolve rename location failed', e instanceof Error ? e : JSON.stringify(e, null, '\t'));
|
|
175
175
|
if (typeof e === 'string' || isMarkdownString(e)) {
|
|
176
|
-
MessageController.get(this.editor)?.showMessage(e || ( localize(
|
|
176
|
+
MessageController.get(this.editor)?.showMessage(e || ( localize(1402, "An unknown error occurred while resolving rename location")), position);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
return undefined;
|
|
@@ -248,15 +248,15 @@ let RenameController = class RenameController {
|
|
|
248
248
|
this._bulkEditService.apply(renameResult, {
|
|
249
249
|
editor: this.editor,
|
|
250
250
|
showPreview: inputFieldResult.wantsPreview,
|
|
251
|
-
label: ( localize(
|
|
251
|
+
label: ( localize(1403, "Renaming '{0}' to '{1}'", loc?.text, inputFieldResult.newName)),
|
|
252
252
|
code: 'undoredo.rename',
|
|
253
|
-
quotableLabel: ( localize(
|
|
253
|
+
quotableLabel: ( localize(1404, "Renaming {0} to {1}", loc?.text, inputFieldResult.newName)),
|
|
254
254
|
respectAutoSaveConfig: true
|
|
255
255
|
}).then(result => {
|
|
256
256
|
trace('edits applied');
|
|
257
257
|
if (result.ariaSummary) {
|
|
258
258
|
alert(( localize(
|
|
259
|
-
|
|
259
|
+
1405,
|
|
260
260
|
"Successfully renamed '{0}' to '{1}'. Summary: {2}",
|
|
261
261
|
loc.text,
|
|
262
262
|
inputFieldResult.newName,
|
|
@@ -265,12 +265,12 @@ let RenameController = class RenameController {
|
|
|
265
265
|
}
|
|
266
266
|
}).catch(err => {
|
|
267
267
|
trace(`error when applying edits ${JSON.stringify(err, null, '\t')}`);
|
|
268
|
-
this._notificationService.error(( localize(
|
|
268
|
+
this._notificationService.error(( localize(1406, "Rename failed to apply edits")));
|
|
269
269
|
this._logService.error(err);
|
|
270
270
|
});
|
|
271
271
|
}, err => {
|
|
272
272
|
trace('error when providing rename edits', JSON.stringify(err, null, '\t'));
|
|
273
|
-
this._notificationService.error(( localize(
|
|
273
|
+
this._notificationService.error(( localize(1407, "Rename failed to compute edits")));
|
|
274
274
|
this._logService.error(err);
|
|
275
275
|
}).finally(() => {
|
|
276
276
|
cts2.dispose();
|
|
@@ -326,7 +326,7 @@ class RenameAction extends EditorAction {
|
|
|
326
326
|
constructor() {
|
|
327
327
|
super({
|
|
328
328
|
id: 'editor.action.rename',
|
|
329
|
-
label: ( localize2(
|
|
329
|
+
label: ( localize2(1408, "Rename Symbol")),
|
|
330
330
|
precondition: ( ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasRenameProvider)),
|
|
331
331
|
kbOpts: {
|
|
332
332
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -406,7 +406,7 @@ registerAction2(class FocusNextRenameSuggestion extends Action2 {
|
|
|
406
406
|
super({
|
|
407
407
|
id: 'focusNextRenameSuggestion',
|
|
408
408
|
title: {
|
|
409
|
-
...( localize2(
|
|
409
|
+
...( localize2(1409, "Focus Next Rename Suggestion")),
|
|
410
410
|
},
|
|
411
411
|
precondition: CONTEXT_RENAME_INPUT_VISIBLE,
|
|
412
412
|
keybinding: [
|
|
@@ -434,7 +434,7 @@ registerAction2(class FocusPreviousRenameSuggestion extends Action2 {
|
|
|
434
434
|
super({
|
|
435
435
|
id: 'focusPreviousRenameSuggestion',
|
|
436
436
|
title: {
|
|
437
|
-
...( localize2(
|
|
437
|
+
...( localize2(1410, "Focus Previous Rename Suggestion")),
|
|
438
438
|
},
|
|
439
439
|
precondition: CONTEXT_RENAME_INPUT_VISIBLE,
|
|
440
440
|
keybinding: [
|
|
@@ -477,7 +477,7 @@ registerModelAndPositionCommand('_executePrepareRename', async function (accesso
|
|
|
477
477
|
properties: {
|
|
478
478
|
'editor.rename.enablePreview': {
|
|
479
479
|
scope: ConfigurationScope.LANGUAGE_OVERRIDABLE,
|
|
480
|
-
description: ( localize(
|
|
480
|
+
description: ( localize(1411, "Enable/disable the ability to preview changes before renaming")),
|
|
481
481
|
default: true,
|
|
482
482
|
type: 'boolean'
|
|
483
483
|
}
|
|
@@ -42,7 +42,7 @@ import { quickInputListFocusBackground, quickInputListFocusForeground } from '..
|
|
|
42
42
|
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
43
43
|
import { IThemeService } from '../../../../platform/theme/common/themeService.service.js';
|
|
44
44
|
|
|
45
|
-
const CONTEXT_RENAME_INPUT_VISIBLE = ( new RawContextKey('renameInputVisible', false, ( localize(
|
|
45
|
+
const CONTEXT_RENAME_INPUT_VISIBLE = ( new RawContextKey('renameInputVisible', false, ( localize(1412, "Whether the rename input widget is visible"))));
|
|
46
46
|
let RenameWidget = class RenameWidget {
|
|
47
47
|
constructor(_editor, _acceptKeybindings, _themeService, _keybindingService, contextKeyService, _logService) {
|
|
48
48
|
this._editor = _editor;
|
|
@@ -165,7 +165,7 @@ let RenameWidget = class RenameWidget {
|
|
|
165
165
|
beforeRender() {
|
|
166
166
|
const [accept, preview] = this._acceptKeybindings;
|
|
167
167
|
this._label.innerText = ( localize(
|
|
168
|
-
|
|
168
|
+
1413,
|
|
169
169
|
"{0} to Rename, {1} to Preview",
|
|
170
170
|
this._keybindingService.lookupKeybinding(accept)?.getLabel(),
|
|
171
171
|
this._keybindingService.lookupKeybinding(preview)?.getLabel()
|
|
@@ -461,7 +461,7 @@ class RenameCandidateListView {
|
|
|
461
461
|
this._listWidget.layout(height, width);
|
|
462
462
|
this._listContainer.style.height = `${height}px`;
|
|
463
463
|
this._listContainer.style.width = `${width}px`;
|
|
464
|
-
status(( localize(
|
|
464
|
+
status(( localize(1414, "Received {0} rename suggestions", candidates.length)));
|
|
465
465
|
}
|
|
466
466
|
clearCandidates() {
|
|
467
467
|
this._listContainer.style.height = '0px';
|
|
@@ -600,13 +600,13 @@ class InputWithButton {
|
|
|
600
600
|
this._inputNode.className = 'rename-input';
|
|
601
601
|
this._inputNode.type = 'text';
|
|
602
602
|
this._inputNode.style.border = 'none';
|
|
603
|
-
this._inputNode.setAttribute('aria-label', ( localize(
|
|
603
|
+
this._inputNode.setAttribute('aria-label', ( localize(1415, "Rename input. Type new name and press Enter to commit.")));
|
|
604
604
|
this._domNode.appendChild(this._inputNode);
|
|
605
605
|
this._buttonNode = document.createElement('div');
|
|
606
606
|
this._buttonNode.className = 'rename-suggestions-button';
|
|
607
607
|
this._buttonNode.setAttribute('tabindex', '0');
|
|
608
|
-
this._buttonGenHoverText = ( localize(
|
|
609
|
-
this._buttonCancelHoverText = ( localize(
|
|
608
|
+
this._buttonGenHoverText = ( localize(1416, "Generate new name suggestions"));
|
|
609
|
+
this._buttonCancelHoverText = ( localize(1417, "Cancel"));
|
|
610
610
|
this._buttonHoverContent = this._buttonGenHoverText;
|
|
611
611
|
this._disposables.add(getBaseLayerHoverDelegate().setupDelayedHover(this._buttonNode, () => ({
|
|
612
612
|
content: this._buttonHoverContent,
|
|
@@ -118,7 +118,7 @@ class GrowSelectionAction extends AbstractSmartSelect {
|
|
|
118
118
|
constructor() {
|
|
119
119
|
super(true, {
|
|
120
120
|
id: 'editor.action.smartSelect.expand',
|
|
121
|
-
label: ( localize2(
|
|
121
|
+
label: ( localize2(1418, "Expand Selection")),
|
|
122
122
|
precondition: undefined,
|
|
123
123
|
kbOpts: {
|
|
124
124
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -132,7 +132,7 @@ class GrowSelectionAction extends AbstractSmartSelect {
|
|
|
132
132
|
menuOpts: {
|
|
133
133
|
menuId: MenuId.MenubarSelectionMenu,
|
|
134
134
|
group: '1_basic',
|
|
135
|
-
title: ( localize(
|
|
135
|
+
title: ( localize(1419, "&&Expand Selection")),
|
|
136
136
|
order: 2
|
|
137
137
|
}
|
|
138
138
|
});
|
|
@@ -143,7 +143,7 @@ class ShrinkSelectionAction extends AbstractSmartSelect {
|
|
|
143
143
|
constructor() {
|
|
144
144
|
super(false, {
|
|
145
145
|
id: 'editor.action.smartSelect.shrink',
|
|
146
|
-
label: ( localize2(
|
|
146
|
+
label: ( localize2(1420, "Shrink Selection")),
|
|
147
147
|
precondition: undefined,
|
|
148
148
|
kbOpts: {
|
|
149
149
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -157,7 +157,7 @@ class ShrinkSelectionAction extends AbstractSmartSelect {
|
|
|
157
157
|
menuOpts: {
|
|
158
158
|
menuId: MenuId.MenubarSelectionMenu,
|
|
159
159
|
group: '1_basic',
|
|
160
|
-
title: ( localize(
|
|
160
|
+
title: ( localize(1421, "&&Shrink Selection")),
|
|
161
161
|
order: 3
|
|
162
162
|
}
|
|
163
163
|
});
|
|
@@ -33,9 +33,9 @@ let SnippetController2 = class SnippetController2 {
|
|
|
33
33
|
static get(editor) {
|
|
34
34
|
return editor.getContribution(SnippetController2_1.ID);
|
|
35
35
|
}
|
|
36
|
-
static { this.InSnippetMode = ( new RawContextKey('inSnippetMode', false, ( localize(
|
|
37
|
-
static { this.HasNextTabstop = ( new RawContextKey('hasNextTabstop', false, ( localize(
|
|
38
|
-
static { this.HasPrevTabstop = ( new RawContextKey('hasPrevTabstop', false, ( localize(
|
|
36
|
+
static { this.InSnippetMode = ( new RawContextKey('inSnippetMode', false, ( localize(1422, "Whether the editor in current in snippet mode")))); }
|
|
37
|
+
static { this.HasNextTabstop = ( new RawContextKey('hasNextTabstop', false, ( localize(1423, "Whether there is a next tab stop when in snippet mode")))); }
|
|
38
|
+
static { this.HasPrevTabstop = ( new RawContextKey('hasPrevTabstop', false, ( localize(1424, "Whether there is a previous tab stop when in snippet mode")))); }
|
|
39
39
|
constructor(_editor, _logService, _languageFeaturesService, contextKeyService, _languageConfigurationService) {
|
|
40
40
|
this._editor = _editor;
|
|
41
41
|
this._logService = _logService;
|
|
@@ -124,7 +124,7 @@ let SnippetController2 = class SnippetController2 {
|
|
|
124
124
|
sortText: 'a'.repeat(i + 1),
|
|
125
125
|
range: activeChoice.range,
|
|
126
126
|
filterText: isAnyOfOptions ? `${word}_${option.value}` : undefined,
|
|
127
|
-
command: { id: 'jumpToNextSnippetPlaceholder', title: ( localize(
|
|
127
|
+
command: { id: 'jumpToNextSnippetPlaceholder', title: ( localize(1425, 'Go to next placeholder...')) }
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
return { suggestions };
|
|
@@ -214,10 +214,10 @@ class TimeBasedVariableResolver {
|
|
|
214
214
|
constructor() {
|
|
215
215
|
this._date = ( new Date());
|
|
216
216
|
}
|
|
217
|
-
static { this.dayNames = [( localize(
|
|
218
|
-
static { this.dayNamesShort = [( localize(
|
|
219
|
-
static { this.monthNames = [( localize(
|
|
220
|
-
static { this.monthNamesShort = [( localize(
|
|
217
|
+
static { this.dayNames = [( localize(1426, "Sunday")), ( localize(1427, "Monday")), ( localize(1428, "Tuesday")), ( localize(1429, "Wednesday")), ( localize(1430, "Thursday")), ( localize(1431, "Friday")), ( localize(1432, "Saturday"))]; }
|
|
218
|
+
static { this.dayNamesShort = [( localize(1433, "Sun")), ( localize(1434, "Mon")), ( localize(1435, "Tue")), ( localize(1436, "Wed")), ( localize(1437, "Thu")), ( localize(1438, "Fri")), ( localize(1439, "Sat"))]; }
|
|
219
|
+
static { this.monthNames = [( localize(1440, "January")), ( localize(1441, "February")), ( localize(1442, "March")), ( localize(1443, "April")), ( localize(1444, "May")), ( localize(1445, "June")), ( localize(1446, "July")), ( localize(1447, "August")), ( localize(1448, "September")), ( localize(1449, "October")), ( localize(1450, "November")), ( localize(1451, "December"))]; }
|
|
220
|
+
static { this.monthNamesShort = [( localize(1452, "Jan")), ( localize(1453, "Feb")), ( localize(1454, "Mar")), ( localize(1455, "Apr")), ( localize(1456, "May")), ( localize(1457, "Jun")), ( localize(1458, "Jul")), ( localize(1459, "Aug")), ( localize(1460, "Sep")), ( localize(1461, "Oct")), ( localize(1462, "Nov")), ( localize(1463, "Dec"))]; }
|
|
221
221
|
resolve(variable) {
|
|
222
222
|
const { name } = variable;
|
|
223
223
|
if (name === 'CURRENT_YEAR') {
|
|
@@ -15,20 +15,20 @@ class ToggleStickyScroll extends EditorAction2 {
|
|
|
15
15
|
super({
|
|
16
16
|
id: 'editor.action.toggleStickyScroll',
|
|
17
17
|
title: {
|
|
18
|
-
...( localize2(
|
|
19
|
-
mnemonicTitle: ( localize(
|
|
18
|
+
...( localize2(1464, "Toggle Editor Sticky Scroll")),
|
|
19
|
+
mnemonicTitle: ( localize(1465, "&&Toggle Editor Sticky Scroll")),
|
|
20
20
|
},
|
|
21
21
|
metadata: {
|
|
22
22
|
description: ( localize2(
|
|
23
|
-
|
|
23
|
+
1466,
|
|
24
24
|
"Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport"
|
|
25
25
|
)),
|
|
26
26
|
},
|
|
27
27
|
category: Categories.View,
|
|
28
28
|
toggled: {
|
|
29
29
|
condition: ( ContextKeyExpr.equals('config.editor.stickyScroll.enabled', true)),
|
|
30
|
-
title: ( localize(
|
|
31
|
-
mnemonicTitle: ( localize(
|
|
30
|
+
title: ( localize(1467, "Sticky Scroll")),
|
|
31
|
+
mnemonicTitle: ( localize(1468, "&&Sticky Scroll")),
|
|
32
32
|
},
|
|
33
33
|
menu: [
|
|
34
34
|
{ id: MenuId.CommandPalette },
|
|
@@ -53,8 +53,8 @@ class FocusStickyScroll extends EditorAction2 {
|
|
|
53
53
|
super({
|
|
54
54
|
id: 'editor.action.focusStickyScroll',
|
|
55
55
|
title: {
|
|
56
|
-
...( localize2(
|
|
57
|
-
mnemonicTitle: ( localize(
|
|
56
|
+
...( localize2(1469, "Focus Editor Sticky Scroll")),
|
|
57
|
+
mnemonicTitle: ( localize(1470, "&&Focus Editor Sticky Scroll")),
|
|
58
58
|
},
|
|
59
59
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.has('config.editor.stickyScroll.enabled')), EditorContextKeys.stickyScrollVisible)),
|
|
60
60
|
menu: [
|
|
@@ -70,7 +70,7 @@ class SelectNextStickyScrollLine extends EditorAction2 {
|
|
|
70
70
|
constructor() {
|
|
71
71
|
super({
|
|
72
72
|
id: 'editor.action.selectNextStickyScrollLine',
|
|
73
|
-
title: ( localize2(
|
|
73
|
+
title: ( localize2(1471, "Select the next editor sticky scroll line")),
|
|
74
74
|
precondition: ( EditorContextKeys.stickyScrollFocused.isEqualTo(true)),
|
|
75
75
|
keybinding: {
|
|
76
76
|
weight,
|
|
@@ -86,7 +86,7 @@ class SelectPreviousStickyScrollLine extends EditorAction2 {
|
|
|
86
86
|
constructor() {
|
|
87
87
|
super({
|
|
88
88
|
id: 'editor.action.selectPreviousStickyScrollLine',
|
|
89
|
-
title: ( localize2(
|
|
89
|
+
title: ( localize2(1472, "Select the previous sticky scroll line")),
|
|
90
90
|
precondition: ( EditorContextKeys.stickyScrollFocused.isEqualTo(true)),
|
|
91
91
|
keybinding: {
|
|
92
92
|
weight,
|
|
@@ -102,7 +102,7 @@ class GoToStickyScrollLine extends EditorAction2 {
|
|
|
102
102
|
constructor() {
|
|
103
103
|
super({
|
|
104
104
|
id: 'editor.action.goToFocusedStickyScrollLine',
|
|
105
|
-
title: ( localize2(
|
|
105
|
+
title: ( localize2(1473, "Go to the focused sticky scroll line")),
|
|
106
106
|
precondition: ( EditorContextKeys.stickyScrollFocused.isEqualTo(true)),
|
|
107
107
|
keybinding: {
|
|
108
108
|
weight,
|
|
@@ -118,7 +118,7 @@ class SelectEditor extends EditorAction2 {
|
|
|
118
118
|
constructor() {
|
|
119
119
|
super({
|
|
120
120
|
id: 'editor.action.selectEditor',
|
|
121
|
-
title: ( localize2(
|
|
121
|
+
title: ( localize2(1474, "Select Editor")),
|
|
122
122
|
precondition: ( EditorContextKeys.stickyScrollFocused.isEqualTo(true)),
|
|
123
123
|
keybinding: {
|
|
124
124
|
weight,
|