@codingame/monaco-vscode-api 9.0.2 → 9.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +8 -8
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +50 -50
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +28 -28
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +7 -7
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +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/inlineEdits/browser/commands.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/consts.js +2 -2
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- 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/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/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +19 -19
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- 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/markers/common/markers.js +3 -3
- 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/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +16 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +166 -166
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +14 -14
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
|
@@ -53,7 +53,7 @@ registerSingleton(IPeekViewService, class {
|
|
|
53
53
|
}, InstantiationType.Delayed);
|
|
54
54
|
var PeekContext;
|
|
55
55
|
( ((function(PeekContext) {
|
|
56
|
-
PeekContext.inPeekEditor = ( (new RawContextKey('inReferenceSearchEditor', true, ( localize(
|
|
56
|
+
PeekContext.inPeekEditor = ( (new RawContextKey('inReferenceSearchEditor', true, ( localize(5086, "Whether the current code editor is embedded inside peek")))));
|
|
57
57
|
PeekContext.notInPeekEditor = ( (PeekContext.inPeekEditor.toNegated()));
|
|
58
58
|
})(PeekContext || (PeekContext = {}))));
|
|
59
59
|
let PeekContextController = class PeekContextController {
|
|
@@ -152,7 +152,7 @@ let PeekViewWidget = class PeekViewWidget extends ZoneWidget {
|
|
|
152
152
|
this._actionbarWidget = ( (new ActionBar(actionsContainer, actionBarOptions)));
|
|
153
153
|
this._disposables.add(this._actionbarWidget);
|
|
154
154
|
if (!noCloseAction) {
|
|
155
|
-
this._actionbarWidget.push(( (new Action('peekview.close', ( localize(
|
|
155
|
+
this._actionbarWidget.push(( (new Action('peekview.close', ( localize(5087, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
156
156
|
this.dispose();
|
|
157
157
|
return Promise.resolve();
|
|
158
158
|
}))), { label: false, icon: true });
|
|
@@ -216,25 +216,25 @@ let PeekViewWidget = class PeekViewWidget extends ZoneWidget {
|
|
|
216
216
|
PeekViewWidget = ( (__decorate([
|
|
217
217
|
( (__param(2, IInstantiationService)))
|
|
218
218
|
], PeekViewWidget)));
|
|
219
|
-
const peekViewTitleBackground = registerColor('peekViewTitle.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, ( localize(
|
|
220
|
-
const peekViewTitleForeground = registerColor('peekViewTitleLabel.foreground', { dark: Color.white, light: Color.black, hcDark: Color.white, hcLight: editorForeground }, ( localize(
|
|
221
|
-
const peekViewTitleInfoForeground = registerColor('peekViewTitleDescription.foreground', { dark: '#ccccccb3', light: '#616161', hcDark: '#FFFFFF99', hcLight: '#292929' }, ( localize(
|
|
222
|
-
const peekViewBorder = registerColor('peekView.border', { dark: editorInfoForeground, light: editorInfoForeground, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(
|
|
223
|
-
const peekViewResultsBackground = registerColor('peekViewResult.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, ( localize(
|
|
224
|
-
registerColor('peekViewResult.lineForeground', { dark: '#bbbbbb', light: '#646465', hcDark: Color.white, hcLight: editorForeground }, ( localize(
|
|
225
|
-
registerColor('peekViewResult.fileForeground', { dark: Color.white, light: '#1E1E1E', hcDark: Color.white, hcLight: editorForeground }, ( localize(
|
|
219
|
+
const peekViewTitleBackground = registerColor('peekViewTitle.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, ( localize(5088, 'Background color of the peek view title area.')));
|
|
220
|
+
const peekViewTitleForeground = registerColor('peekViewTitleLabel.foreground', { dark: Color.white, light: Color.black, hcDark: Color.white, hcLight: editorForeground }, ( localize(5089, 'Color of the peek view title.')));
|
|
221
|
+
const peekViewTitleInfoForeground = registerColor('peekViewTitleDescription.foreground', { dark: '#ccccccb3', light: '#616161', hcDark: '#FFFFFF99', hcLight: '#292929' }, ( localize(5090, 'Color of the peek view title info.')));
|
|
222
|
+
const peekViewBorder = registerColor('peekView.border', { dark: editorInfoForeground, light: editorInfoForeground, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(5091, 'Color of the peek view borders and arrow.')));
|
|
223
|
+
const peekViewResultsBackground = registerColor('peekViewResult.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, ( localize(5092, 'Background color of the peek view result list.')));
|
|
224
|
+
registerColor('peekViewResult.lineForeground', { dark: '#bbbbbb', light: '#646465', hcDark: Color.white, hcLight: editorForeground }, ( localize(5093, 'Foreground color for line nodes in the peek view result list.')));
|
|
225
|
+
registerColor('peekViewResult.fileForeground', { dark: Color.white, light: '#1E1E1E', hcDark: Color.white, hcLight: editorForeground }, ( localize(5094, 'Foreground color for file nodes in the peek view result list.')));
|
|
226
226
|
registerColor('peekViewResult.selectionBackground', { dark: '#3399ff33', light: '#3399ff33', hcDark: null, hcLight: null }, ( localize(
|
|
227
|
-
|
|
227
|
+
5095,
|
|
228
228
|
'Background color of the selected entry in the peek view result list.'
|
|
229
229
|
)));
|
|
230
230
|
registerColor('peekViewResult.selectionForeground', { dark: Color.white, light: '#6C6C6C', hcDark: Color.white, hcLight: editorForeground }, ( localize(
|
|
231
|
-
|
|
231
|
+
5096,
|
|
232
232
|
'Foreground color of the selected entry in the peek view result list.'
|
|
233
233
|
)));
|
|
234
|
-
const peekViewEditorBackground = registerColor('peekViewEditor.background', { dark: '#001F33', light: '#F2F8FC', hcDark: Color.black, hcLight: Color.white }, ( localize(
|
|
235
|
-
registerColor('peekViewEditorGutter.background', peekViewEditorBackground, ( localize(
|
|
236
|
-
registerColor('peekViewEditorStickyScroll.background', peekViewEditorBackground, ( localize(
|
|
237
|
-
registerColor('peekViewResult.matchHighlightBackground', { dark: '#ea5c004d', light: '#ea5c004d', hcDark: null, hcLight: null }, ( localize(
|
|
238
|
-
const peekViewEditorMatchHighlight = registerColor('peekViewEditor.matchHighlightBackground', { dark: '#ff8f0099', light: '#f5d802de', hcDark: null, hcLight: null }, ( localize(
|
|
239
|
-
registerColor('peekViewEditor.matchHighlightBorder', { dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, ( localize(
|
|
234
|
+
const peekViewEditorBackground = registerColor('peekViewEditor.background', { dark: '#001F33', light: '#F2F8FC', hcDark: Color.black, hcLight: Color.white }, ( localize(5097, 'Background color of the peek view editor.')));
|
|
235
|
+
registerColor('peekViewEditorGutter.background', peekViewEditorBackground, ( localize(5098, 'Background color of the gutter in the peek view editor.')));
|
|
236
|
+
registerColor('peekViewEditorStickyScroll.background', peekViewEditorBackground, ( localize(5099, 'Background color of sticky scroll in the peek view editor.')));
|
|
237
|
+
registerColor('peekViewResult.matchHighlightBackground', { dark: '#ea5c004d', light: '#ea5c004d', hcDark: null, hcLight: null }, ( localize(5100, 'Match highlight color in the peek view result list.')));
|
|
238
|
+
const peekViewEditorMatchHighlight = registerColor('peekViewEditor.matchHighlightBackground', { dark: '#ff8f0099', light: '#f5d802de', hcDark: null, hcLight: null }, ( localize(5101, 'Match highlight color in the peek view editor.')));
|
|
239
|
+
registerColor('peekViewEditor.matchHighlightBorder', { dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, ( localize(5102, 'Match highlight border in the peek view editor.')));
|
|
240
240
|
export { IPeekViewService, PeekContext, PeekViewWidget, getOuterEditor, peekViewBorder, peekViewEditorBackground, peekViewEditorMatchHighlight, peekViewResultsBackground, peekViewTitleBackground, peekViewTitleForeground, peekViewTitleInfoForeground };
|
package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js
CHANGED
|
@@ -6,4 +6,4 @@ import { registerColor } from '../../../../platform/theme/common/colorUtils.js';
|
|
|
6
6
|
import { PlaceholderTextContribution } from './placeholderTextContribution.js';
|
|
7
7
|
import { wrapInReloadableClass1 } from '../../../../platform/observable/common/wrapInReloadableClass.js';
|
|
8
8
|
registerEditorContribution(PlaceholderTextContribution.ID, wrapInReloadableClass1(() => PlaceholderTextContribution), EditorContributionInstantiation.Eager);
|
|
9
|
-
registerColor('editor.placeholder.foreground', ghostTextForeground, ( localize(
|
|
9
|
+
registerColor('editor.placeholder.foreground', ghostTextForeground, ( localize(1551, 'Foreground color of the placeholder text in the editor.')));
|
|
@@ -17,10 +17,10 @@ class ReadOnlyMessageController extends Disposable {
|
|
|
17
17
|
let message = this.editor.getOptions().get(EditorOption.readOnlyMessage);
|
|
18
18
|
if (!message) {
|
|
19
19
|
if (this.editor.isSimpleWidget) {
|
|
20
|
-
message = ( (new MarkdownString(( localize(
|
|
20
|
+
message = ( (new MarkdownString(( localize(1616, "Cannot edit in read-only input")))));
|
|
21
21
|
}
|
|
22
22
|
else {
|
|
23
|
-
message = ( (new MarkdownString(( localize(
|
|
23
|
+
message = ( (new MarkdownString(( localize(1617, "Cannot edit in read-only editor")))));
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
messageController.showMessage(message, this.editor.getPosition());
|
|
@@ -92,7 +92,7 @@ class RenameSkeleton {
|
|
|
92
92
|
}
|
|
93
93
|
const result = await provider.provideRenameEdits(this.model, this.position, newName, token);
|
|
94
94
|
if (!result) {
|
|
95
|
-
return this._provideRenameEdits(newName, i + 1, rejects.concat(( localize(
|
|
95
|
+
return this._provideRenameEdits(newName, i + 1, rejects.concat(( localize(1552, "No result."))), token);
|
|
96
96
|
}
|
|
97
97
|
else if (result.rejectReason) {
|
|
98
98
|
return this._provideRenameEdits(newName, i + 1, rejects.concat(result.rejectReason), token);
|
|
@@ -171,7 +171,7 @@ let RenameController = class RenameController {
|
|
|
171
171
|
else {
|
|
172
172
|
trace('resolve rename location failed', e instanceof Error ? e : JSON.stringify(e, null, '\t'));
|
|
173
173
|
if (typeof e === 'string' || isMarkdownString(e)) {
|
|
174
|
-
MessageController.get(this.editor)?.showMessage(e || ( localize(
|
|
174
|
+
MessageController.get(this.editor)?.showMessage(e || ( localize(1553, "An unknown error occurred while resolving rename location")), position);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
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(1554, "Renaming '{0}' to '{1}'", loc?.text, inputFieldResult.newName)),
|
|
252
252
|
code: 'undoredo.rename',
|
|
253
|
-
quotableLabel: ( localize(
|
|
253
|
+
quotableLabel: ( localize(1555, "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
|
+
1556,
|
|
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(1557, "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(1558, "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: ( localize(
|
|
329
|
+
label: ( localize(1559, "Rename Symbol")),
|
|
330
330
|
alias: 'Rename Symbol',
|
|
331
331
|
precondition: ( (ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasRenameProvider))),
|
|
332
332
|
kbOpts: {
|
|
@@ -410,7 +410,7 @@ registerAction2(class FocusNextRenameSuggestion extends Action2 {
|
|
|
410
410
|
super({
|
|
411
411
|
id: 'focusNextRenameSuggestion',
|
|
412
412
|
title: {
|
|
413
|
-
...( localize2(
|
|
413
|
+
...( localize2(1560, "Focus Next Rename Suggestion")),
|
|
414
414
|
},
|
|
415
415
|
precondition: CONTEXT_RENAME_INPUT_VISIBLE,
|
|
416
416
|
keybinding: [
|
|
@@ -438,7 +438,7 @@ registerAction2(class FocusPreviousRenameSuggestion extends Action2 {
|
|
|
438
438
|
super({
|
|
439
439
|
id: 'focusPreviousRenameSuggestion',
|
|
440
440
|
title: {
|
|
441
|
-
...( localize2(
|
|
441
|
+
...( localize2(1561, "Focus Previous Rename Suggestion")),
|
|
442
442
|
},
|
|
443
443
|
precondition: CONTEXT_RENAME_INPUT_VISIBLE,
|
|
444
444
|
keybinding: [
|
|
@@ -481,7 +481,7 @@ registerModelAndPositionCommand('_executePrepareRename', async function (accesso
|
|
|
481
481
|
properties: {
|
|
482
482
|
'editor.rename.enablePreview': {
|
|
483
483
|
scope: ConfigurationScope.LANGUAGE_OVERRIDABLE,
|
|
484
|
-
description: ( localize(
|
|
484
|
+
description: ( localize(1562, "Enable/disable the ability to preview changes before renaming")),
|
|
485
485
|
default: true,
|
|
486
486
|
type: 'boolean'
|
|
487
487
|
}
|
|
@@ -41,7 +41,7 @@ import '../../../../platform/theme/common/colors/miscColors.js';
|
|
|
41
41
|
import { quickInputListFocusForeground, quickInputListFocusBackground } from '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
42
42
|
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
43
43
|
import { IThemeService } from '../../../../platform/theme/common/themeService.service.js';
|
|
44
|
-
const CONTEXT_RENAME_INPUT_VISIBLE = ( (new RawContextKey('renameInputVisible', false, ( localize(
|
|
44
|
+
const CONTEXT_RENAME_INPUT_VISIBLE = ( (new RawContextKey('renameInputVisible', false, ( localize(5182, "Whether the rename input widget is visible")))));
|
|
45
45
|
let RenameWidget = class RenameWidget {
|
|
46
46
|
constructor(_editor, _acceptKeybindings, _themeService, _keybindingService, contextKeyService, _logService) {
|
|
47
47
|
this._editor = _editor;
|
|
@@ -164,7 +164,7 @@ let RenameWidget = class RenameWidget {
|
|
|
164
164
|
beforeRender() {
|
|
165
165
|
const [accept, preview] = this._acceptKeybindings;
|
|
166
166
|
this._label.innerText = ( localize(
|
|
167
|
-
|
|
167
|
+
5184,
|
|
168
168
|
"{0} to Rename, {1} to Preview",
|
|
169
169
|
this._keybindingService.lookupKeybinding(accept)?.getLabel(),
|
|
170
170
|
this._keybindingService.lookupKeybinding(preview)?.getLabel()
|
|
@@ -460,7 +460,7 @@ class RenameCandidateListView {
|
|
|
460
460
|
this._listWidget.layout(height, width);
|
|
461
461
|
this._listContainer.style.height = `${height}px`;
|
|
462
462
|
this._listContainer.style.width = `${width}px`;
|
|
463
|
-
status(( localize(
|
|
463
|
+
status(( localize(5185, "Received {0} rename suggestions", candidates.length)));
|
|
464
464
|
}
|
|
465
465
|
clearCandidates() {
|
|
466
466
|
this._listContainer.style.height = '0px';
|
|
@@ -602,13 +602,13 @@ class InputWithButton {
|
|
|
602
602
|
this._inputNode.className = 'rename-input';
|
|
603
603
|
this._inputNode.type = 'text';
|
|
604
604
|
this._inputNode.style.border = 'none';
|
|
605
|
-
this._inputNode.setAttribute('aria-label', ( localize(
|
|
605
|
+
this._inputNode.setAttribute('aria-label', ( localize(5186, "Rename input. Type new name and press Enter to commit.")));
|
|
606
606
|
this._domNode.appendChild(this._inputNode);
|
|
607
607
|
this._buttonNode = document.createElement('div');
|
|
608
608
|
this._buttonNode.className = 'rename-suggestions-button';
|
|
609
609
|
this._buttonNode.setAttribute('tabindex', '0');
|
|
610
|
-
this._buttonGenHoverText = ( localize(
|
|
611
|
-
this._buttonCancelHoverText = ( localize(
|
|
610
|
+
this._buttonGenHoverText = ( localize(5187, "Generate new name suggestions"));
|
|
611
|
+
this._buttonCancelHoverText = ( localize(5188, "Cancel"));
|
|
612
612
|
this._buttonHover = getBaseLayerHoverDelegate().setupManagedHover(getDefaultHoverDelegate('element'), this._buttonNode, this._buttonGenHoverText);
|
|
613
613
|
this._disposables.add(this._buttonHover);
|
|
614
614
|
this._domNode.appendChild(this._buttonNode);
|
|
@@ -116,7 +116,7 @@ class GrowSelectionAction extends AbstractSmartSelect {
|
|
|
116
116
|
constructor() {
|
|
117
117
|
super(true, {
|
|
118
118
|
id: 'editor.action.smartSelect.expand',
|
|
119
|
-
label: ( localize(
|
|
119
|
+
label: ( localize(1563, "Expand Selection")),
|
|
120
120
|
alias: 'Expand Selection',
|
|
121
121
|
precondition: undefined,
|
|
122
122
|
kbOpts: {
|
|
@@ -131,7 +131,7 @@ class GrowSelectionAction extends AbstractSmartSelect {
|
|
|
131
131
|
menuOpts: {
|
|
132
132
|
menuId: MenuId.MenubarSelectionMenu,
|
|
133
133
|
group: '1_basic',
|
|
134
|
-
title: ( localize(
|
|
134
|
+
title: ( localize(1564, "&&Expand Selection")),
|
|
135
135
|
order: 2
|
|
136
136
|
}
|
|
137
137
|
});
|
|
@@ -142,7 +142,7 @@ class ShrinkSelectionAction extends AbstractSmartSelect {
|
|
|
142
142
|
constructor() {
|
|
143
143
|
super(false, {
|
|
144
144
|
id: 'editor.action.smartSelect.shrink',
|
|
145
|
-
label: ( localize(
|
|
145
|
+
label: ( localize(1565, "Shrink Selection")),
|
|
146
146
|
alias: 'Shrink Selection',
|
|
147
147
|
precondition: undefined,
|
|
148
148
|
kbOpts: {
|
|
@@ -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(1566, "&&Shrink Selection")),
|
|
161
161
|
order: 3
|
|
162
162
|
}
|
|
163
163
|
});
|
|
@@ -31,9 +31,9 @@ let SnippetController2 = class SnippetController2 {
|
|
|
31
31
|
static get(editor) {
|
|
32
32
|
return editor.getContribution(SnippetController2_1.ID);
|
|
33
33
|
}
|
|
34
|
-
static { this.InSnippetMode = ( (new RawContextKey('inSnippetMode', false, ( localize(
|
|
35
|
-
static { this.HasNextTabstop = ( (new RawContextKey('hasNextTabstop', false, ( localize(
|
|
36
|
-
static { this.HasPrevTabstop = ( (new RawContextKey('hasPrevTabstop', false, ( localize(
|
|
34
|
+
static { this.InSnippetMode = ( (new RawContextKey('inSnippetMode', false, ( localize(1567, "Whether the editor in current in snippet mode"))))); }
|
|
35
|
+
static { this.HasNextTabstop = ( (new RawContextKey('hasNextTabstop', false, ( localize(1568, "Whether there is a next tab stop when in snippet mode"))))); }
|
|
36
|
+
static { this.HasPrevTabstop = ( (new RawContextKey('hasPrevTabstop', false, ( localize(1569, "Whether there is a previous tab stop when in snippet mode"))))); }
|
|
37
37
|
constructor(_editor, _logService, _languageFeaturesService, contextKeyService, _languageConfigurationService) {
|
|
38
38
|
this._editor = _editor;
|
|
39
39
|
this._logService = _logService;
|
|
@@ -122,7 +122,7 @@ let SnippetController2 = class SnippetController2 {
|
|
|
122
122
|
sortText: 'a'.repeat(i + 1),
|
|
123
123
|
range: activeChoice.range,
|
|
124
124
|
filterText: isAnyOfOptions ? `${word}_${option.value}` : undefined,
|
|
125
|
-
command: { id: 'jumpToNextSnippetPlaceholder', title: ( localize(
|
|
125
|
+
command: { id: 'jumpToNextSnippetPlaceholder', title: ( localize(1570, 'Go to next placeholder...')) }
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
return { suggestions };
|
|
@@ -212,10 +212,10 @@ class TimeBasedVariableResolver {
|
|
|
212
212
|
constructor() {
|
|
213
213
|
this._date = ( (new Date()));
|
|
214
214
|
}
|
|
215
|
-
static { this.dayNames = [( localize(
|
|
216
|
-
static { this.dayNamesShort = [( localize(
|
|
217
|
-
static { this.monthNames = [( localize(
|
|
218
|
-
static { this.monthNamesShort = [( localize(
|
|
215
|
+
static { this.dayNames = [( localize(9912, "Sunday")), ( localize(9913, "Monday")), ( localize(9914, "Tuesday")), ( localize(9915, "Wednesday")), ( localize(9916, "Thursday")), ( localize(9917, "Friday")), ( localize(9918, "Saturday"))]; }
|
|
216
|
+
static { this.dayNamesShort = [( localize(9919, "Sun")), ( localize(9920, "Mon")), ( localize(9921, "Tue")), ( localize(9922, "Wed")), ( localize(9923, "Thu")), ( localize(9924, "Fri")), ( localize(9925, "Sat"))]; }
|
|
217
|
+
static { this.monthNames = [( localize(9926, "January")), ( localize(9927, "February")), ( localize(9928, "March")), ( localize(9929, "April")), ( localize(9930, "May")), ( localize(9931, "June")), ( localize(9932, "July")), ( localize(9933, "August")), ( localize(9934, "September")), ( localize(9935, "October")), ( localize(9936, "November")), ( localize(9937, "December"))]; }
|
|
218
|
+
static { this.monthNamesShort = [( localize(9938, "Jan")), ( localize(9939, "Feb")), ( localize(9940, "Mar")), ( localize(9941, "Apr")), ( localize(9942, "May")), ( localize(9943, "Jun")), ( localize(9944, "Jul")), ( localize(9945, "Aug")), ( localize(9946, "Sep")), ( localize(9947, "Oct")), ( localize(9948, "Nov")), ( localize(9949, "Dec"))]; }
|
|
219
219
|
resolve(variable) {
|
|
220
220
|
const { name } = variable;
|
|
221
221
|
if (name === 'CURRENT_YEAR') {
|
|
@@ -13,20 +13,20 @@ class ToggleStickyScroll extends Action2 {
|
|
|
13
13
|
super({
|
|
14
14
|
id: 'editor.action.toggleStickyScroll',
|
|
15
15
|
title: {
|
|
16
|
-
...( localize2(
|
|
17
|
-
mnemonicTitle: ( localize(
|
|
16
|
+
...( localize2(5197, "Toggle Editor Sticky Scroll")),
|
|
17
|
+
mnemonicTitle: ( localize(5198, "&&Toggle Editor Sticky Scroll")),
|
|
18
18
|
},
|
|
19
19
|
metadata: {
|
|
20
20
|
description: ( localize2(
|
|
21
|
-
|
|
21
|
+
5199,
|
|
22
22
|
"Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport"
|
|
23
23
|
)),
|
|
24
24
|
},
|
|
25
25
|
category: Categories.View,
|
|
26
26
|
toggled: {
|
|
27
27
|
condition: ( (ContextKeyExpr.equals('config.editor.stickyScroll.enabled', true))),
|
|
28
|
-
title: ( localize(
|
|
29
|
-
mnemonicTitle: ( localize(
|
|
28
|
+
title: ( localize(5200, "Sticky Scroll")),
|
|
29
|
+
mnemonicTitle: ( localize(5201, "&&Sticky Scroll")),
|
|
30
30
|
},
|
|
31
31
|
menu: [
|
|
32
32
|
{ id: MenuId.CommandPalette },
|
|
@@ -47,8 +47,8 @@ class FocusStickyScroll extends EditorAction2 {
|
|
|
47
47
|
super({
|
|
48
48
|
id: 'editor.action.focusStickyScroll',
|
|
49
49
|
title: {
|
|
50
|
-
...( localize2(
|
|
51
|
-
mnemonicTitle: ( localize(
|
|
50
|
+
...( localize2(5202, "Focus on the editor sticky scroll")),
|
|
51
|
+
mnemonicTitle: ( localize(5203, "&&Focus Sticky Scroll")),
|
|
52
52
|
},
|
|
53
53
|
precondition: ( (ContextKeyExpr.and(
|
|
54
54
|
(ContextKeyExpr.has('config.editor.stickyScroll.enabled')),
|
|
@@ -67,7 +67,7 @@ class SelectNextStickyScrollLine extends EditorAction2 {
|
|
|
67
67
|
constructor() {
|
|
68
68
|
super({
|
|
69
69
|
id: 'editor.action.selectNextStickyScrollLine',
|
|
70
|
-
title: ( localize2(
|
|
70
|
+
title: ( localize2(5204, "Select the next editor sticky scroll line")),
|
|
71
71
|
precondition: ( (EditorContextKeys.stickyScrollFocused.isEqualTo(true))),
|
|
72
72
|
keybinding: {
|
|
73
73
|
weight,
|
|
@@ -83,7 +83,7 @@ class SelectPreviousStickyScrollLine extends EditorAction2 {
|
|
|
83
83
|
constructor() {
|
|
84
84
|
super({
|
|
85
85
|
id: 'editor.action.selectPreviousStickyScrollLine',
|
|
86
|
-
title: ( localize2(
|
|
86
|
+
title: ( localize2(5205, "Select the previous sticky scroll line")),
|
|
87
87
|
precondition: ( (EditorContextKeys.stickyScrollFocused.isEqualTo(true))),
|
|
88
88
|
keybinding: {
|
|
89
89
|
weight,
|
|
@@ -99,7 +99,7 @@ class GoToStickyScrollLine extends EditorAction2 {
|
|
|
99
99
|
constructor() {
|
|
100
100
|
super({
|
|
101
101
|
id: 'editor.action.goToFocusedStickyScrollLine',
|
|
102
|
-
title: ( localize2(
|
|
102
|
+
title: ( localize2(5206, "Go to the focused sticky scroll line")),
|
|
103
103
|
precondition: ( (EditorContextKeys.stickyScrollFocused.isEqualTo(true))),
|
|
104
104
|
keybinding: {
|
|
105
105
|
weight,
|
|
@@ -115,7 +115,7 @@ class SelectEditor extends EditorAction2 {
|
|
|
115
115
|
constructor() {
|
|
116
116
|
super({
|
|
117
117
|
id: 'editor.action.selectEditor',
|
|
118
|
-
title: ( localize2(
|
|
118
|
+
title: ( localize2(5207, "Select Editor")),
|
|
119
119
|
precondition: ( (EditorContextKeys.stickyScrollFocused.isEqualTo(true))),
|
|
120
120
|
keybinding: {
|
|
121
121
|
weight,
|
|
@@ -19,21 +19,21 @@ import { historyNavigationVisible } from '../../../../platform/history/browser/c
|
|
|
19
19
|
import { StandardTokenType } from '../../../common/encodedTokenAttributes.js';
|
|
20
20
|
const Context = {
|
|
21
21
|
Visible: historyNavigationVisible,
|
|
22
|
-
HasFocusedSuggestion: ( (new RawContextKey('suggestWidgetHasFocusedSuggestion', false, ( localize(
|
|
23
|
-
DetailsVisible: ( (new RawContextKey('suggestWidgetDetailsVisible', false, ( localize(
|
|
24
|
-
MultipleSuggestions: ( (new RawContextKey('suggestWidgetMultipleSuggestions', false, ( localize(
|
|
22
|
+
HasFocusedSuggestion: ( (new RawContextKey('suggestWidgetHasFocusedSuggestion', false, ( localize(5189, "Whether any suggestion is focused"))))),
|
|
23
|
+
DetailsVisible: ( (new RawContextKey('suggestWidgetDetailsVisible', false, ( localize(5190, "Whether suggestion details are visible"))))),
|
|
24
|
+
MultipleSuggestions: ( (new RawContextKey('suggestWidgetMultipleSuggestions', false, ( localize(5191, "Whether there are multiple suggestions to pick from"))))),
|
|
25
25
|
MakesTextEdit: ( (new RawContextKey('suggestionMakesTextEdit', true, ( localize(
|
|
26
|
-
|
|
26
|
+
5192,
|
|
27
27
|
"Whether inserting the current suggestion yields in a change or has everything already been typed"
|
|
28
28
|
))))),
|
|
29
|
-
AcceptSuggestionsOnEnter: ( (new RawContextKey('acceptSuggestionOnEnter', true, ( localize(
|
|
30
|
-
HasInsertAndReplaceRange: ( (new RawContextKey('suggestionHasInsertAndReplaceRange', false, ( localize(
|
|
29
|
+
AcceptSuggestionsOnEnter: ( (new RawContextKey('acceptSuggestionOnEnter', true, ( localize(5193, "Whether suggestions are inserted when pressing Enter"))))),
|
|
30
|
+
HasInsertAndReplaceRange: ( (new RawContextKey('suggestionHasInsertAndReplaceRange', false, ( localize(5194, "Whether the current suggestion has insert and replace behaviour"))))),
|
|
31
31
|
InsertMode: ( (new RawContextKey(
|
|
32
32
|
'suggestionInsertMode',
|
|
33
33
|
undefined,
|
|
34
|
-
{ type: 'string', description: ( localize(
|
|
34
|
+
{ type: 'string', description: ( localize(5195, "Whether the default behaviour is to insert or replace")) }
|
|
35
35
|
))),
|
|
36
|
-
CanResolve: ( (new RawContextKey('suggestionCanResolve', false, ( localize(
|
|
36
|
+
CanResolve: ( (new RawContextKey('suggestionCanResolve', false, ( localize(5196, "Whether the current suggestion supports to resolve further details"))))),
|
|
37
37
|
};
|
|
38
38
|
const suggestWidgetStatusbarMenu = ( (new MenuId('suggestWidgetStatusBar')));
|
|
39
39
|
class CompletionItem {
|
|
@@ -447,7 +447,7 @@ let SuggestController = class SuggestController {
|
|
|
447
447
|
_alertCompletionItem(item) {
|
|
448
448
|
if (isNonEmptyArray(item.completion.additionalTextEdits)) {
|
|
449
449
|
const msg = ( localize(
|
|
450
|
-
|
|
450
|
+
1572,
|
|
451
451
|
"Accepting '{0}' made {1} additional edits",
|
|
452
452
|
item.textLabel,
|
|
453
453
|
item.completion.additionalTextEdits.length
|
|
@@ -624,7 +624,7 @@ class TriggerSuggestAction extends EditorAction {
|
|
|
624
624
|
constructor() {
|
|
625
625
|
super({
|
|
626
626
|
id: TriggerSuggestAction.id,
|
|
627
|
-
label: ( localize(
|
|
627
|
+
label: ( localize(1573, "Trigger Suggest")),
|
|
628
628
|
alias: 'Trigger Suggest',
|
|
629
629
|
precondition: ( (ContextKeyExpr.and(
|
|
630
630
|
EditorContextKeys.writable,
|
|
@@ -680,13 +680,13 @@ registerEditorCommand(( (new SuggestCommand({
|
|
|
680
680
|
}],
|
|
681
681
|
menuOpts: [{
|
|
682
682
|
menuId: suggestWidgetStatusbarMenu,
|
|
683
|
-
title: ( localize(
|
|
683
|
+
title: ( localize(1574, "Insert")),
|
|
684
684
|
group: 'left',
|
|
685
685
|
order: 1,
|
|
686
686
|
when: ( (Context.HasInsertAndReplaceRange.toNegated()))
|
|
687
687
|
}, {
|
|
688
688
|
menuId: suggestWidgetStatusbarMenu,
|
|
689
|
-
title: ( localize(
|
|
689
|
+
title: ( localize(1574, "Insert")),
|
|
690
690
|
group: 'left',
|
|
691
691
|
order: 1,
|
|
692
692
|
when: ( (ContextKeyExpr.and(
|
|
@@ -695,7 +695,7 @@ registerEditorCommand(( (new SuggestCommand({
|
|
|
695
695
|
)))
|
|
696
696
|
}, {
|
|
697
697
|
menuId: suggestWidgetStatusbarMenu,
|
|
698
|
-
title: ( localize(
|
|
698
|
+
title: ( localize(1575, "Replace")),
|
|
699
699
|
group: 'left',
|
|
700
700
|
order: 1,
|
|
701
701
|
when: ( (ContextKeyExpr.and(
|
|
@@ -728,7 +728,7 @@ registerEditorCommand(( (new SuggestCommand({
|
|
|
728
728
|
Context.HasInsertAndReplaceRange,
|
|
729
729
|
(Context.InsertMode.isEqualTo('insert'))
|
|
730
730
|
))),
|
|
731
|
-
title: ( localize(
|
|
731
|
+
title: ( localize(1575, "Replace"))
|
|
732
732
|
}, {
|
|
733
733
|
menuId: suggestWidgetStatusbarMenu,
|
|
734
734
|
group: 'left',
|
|
@@ -737,7 +737,7 @@ registerEditorCommand(( (new SuggestCommand({
|
|
|
737
737
|
Context.HasInsertAndReplaceRange,
|
|
738
738
|
(Context.InsertMode.isEqualTo('replace'))
|
|
739
739
|
))),
|
|
740
|
-
title: ( localize(
|
|
740
|
+
title: ( localize(1574, "Insert"))
|
|
741
741
|
}]
|
|
742
742
|
}))));
|
|
743
743
|
CommandsRegistry.registerCommandAlias('acceptSelectedSuggestionOnEnter', 'acceptSelectedSuggestion');
|
|
@@ -862,13 +862,13 @@ registerEditorCommand(( (new SuggestCommand({
|
|
|
862
862
|
group: 'right',
|
|
863
863
|
order: 1,
|
|
864
864
|
when: ( (ContextKeyExpr.and(Context.DetailsVisible, Context.CanResolve))),
|
|
865
|
-
title: ( localize(
|
|
865
|
+
title: ( localize(1576, "Show Less"))
|
|
866
866
|
}, {
|
|
867
867
|
menuId: suggestWidgetStatusbarMenu,
|
|
868
868
|
group: 'right',
|
|
869
869
|
order: 1,
|
|
870
870
|
when: ( (ContextKeyExpr.and( (Context.DetailsVisible.toNegated()), Context.CanResolve))),
|
|
871
|
-
title: ( localize(
|
|
871
|
+
title: ( localize(1577, "Show More"))
|
|
872
872
|
}]
|
|
873
873
|
}))));
|
|
874
874
|
registerEditorCommand(( (new SuggestCommand({
|
|
@@ -945,7 +945,7 @@ registerEditorAction(class extends EditorAction {
|
|
|
945
945
|
constructor() {
|
|
946
946
|
super({
|
|
947
947
|
id: 'editor.action.resetSuggestSize',
|
|
948
|
-
label: ( localize(
|
|
948
|
+
label: ( localize(1578, "Reset Suggest Widget Size")),
|
|
949
949
|
alias: 'Reset Suggest Widget Size',
|
|
950
950
|
precondition: undefined
|
|
951
951
|
});
|
|
@@ -40,18 +40,18 @@ import { ItemRenderer, getAriaId } from './suggestWidgetRenderer.js';
|
|
|
40
40
|
import { getListStyles } from '../../../../platform/theme/browser/defaultStyles.js';
|
|
41
41
|
import { status } from '../../../../base/browser/ui/aria/aria.js';
|
|
42
42
|
var SuggestWidget_1;
|
|
43
|
-
registerColor('editorSuggestWidget.background', editorWidgetBackground, ( localize(
|
|
44
|
-
registerColor('editorSuggestWidget.border', editorWidgetBorder, ( localize(
|
|
45
|
-
const editorSuggestWidgetForeground = registerColor('editorSuggestWidget.foreground', editorForeground, ( localize(
|
|
46
|
-
registerColor('editorSuggestWidget.selectedForeground', quickInputListFocusForeground, ( localize(
|
|
47
|
-
registerColor('editorSuggestWidget.selectedIconForeground', quickInputListFocusIconForeground, ( localize(
|
|
48
|
-
const editorSuggestWidgetSelectedBackground = registerColor('editorSuggestWidget.selectedBackground', quickInputListFocusBackground, ( localize(
|
|
49
|
-
registerColor('editorSuggestWidget.highlightForeground', listHighlightForeground, ( localize(
|
|
43
|
+
registerColor('editorSuggestWidget.background', editorWidgetBackground, ( localize(5208, 'Background color of the suggest widget.')));
|
|
44
|
+
registerColor('editorSuggestWidget.border', editorWidgetBorder, ( localize(5209, 'Border color of the suggest widget.')));
|
|
45
|
+
const editorSuggestWidgetForeground = registerColor('editorSuggestWidget.foreground', editorForeground, ( localize(5210, 'Foreground color of the suggest widget.')));
|
|
46
|
+
registerColor('editorSuggestWidget.selectedForeground', quickInputListFocusForeground, ( localize(5211, 'Foreground color of the selected entry in the suggest widget.')));
|
|
47
|
+
registerColor('editorSuggestWidget.selectedIconForeground', quickInputListFocusIconForeground, ( localize(5212, 'Icon foreground color of the selected entry in the suggest widget.')));
|
|
48
|
+
const editorSuggestWidgetSelectedBackground = registerColor('editorSuggestWidget.selectedBackground', quickInputListFocusBackground, ( localize(5213, 'Background color of the selected entry in the suggest widget.')));
|
|
49
|
+
registerColor('editorSuggestWidget.highlightForeground', listHighlightForeground, ( localize(5214, 'Color of the match highlights in the suggest widget.')));
|
|
50
50
|
registerColor('editorSuggestWidget.focusHighlightForeground', listFocusHighlightForeground, ( localize(
|
|
51
|
-
|
|
51
|
+
5215,
|
|
52
52
|
'Color of the match highlights in the suggest widget when an item is focused.'
|
|
53
53
|
)));
|
|
54
|
-
registerColor('editorSuggestWidgetStatus.foreground', ( (transparent(editorSuggestWidgetForeground, .5))), ( localize(
|
|
54
|
+
registerColor('editorSuggestWidgetStatus.foreground', ( (transparent(editorSuggestWidgetForeground, .5))), ( localize(5216, 'Foreground color of the suggest widget status.')));
|
|
55
55
|
var State;
|
|
56
56
|
( ((function(State) {
|
|
57
57
|
State[State["Hidden"] = 0] = "Hidden";
|
|
@@ -88,8 +88,8 @@ class PersistedWidgetSize {
|
|
|
88
88
|
}
|
|
89
89
|
let SuggestWidget = class SuggestWidget {
|
|
90
90
|
static { SuggestWidget_1 = this; }
|
|
91
|
-
static { this.LOADING_MESSAGE = ( localize(
|
|
92
|
-
static { this.NO_SUGGESTIONS_MESSAGE = ( localize(
|
|
91
|
+
static { this.LOADING_MESSAGE = ( localize(5217, "Loading...")); }
|
|
92
|
+
static { this.NO_SUGGESTIONS_MESSAGE = ( localize(5218, "No suggestions.")); }
|
|
93
93
|
constructor(editor, _storageService, _contextKeyService, _themeService, instantiationService) {
|
|
94
94
|
this.editor = editor;
|
|
95
95
|
this._storageService = _storageService;
|
|
@@ -173,20 +173,20 @@ let SuggestWidget = class SuggestWidget {
|
|
|
173
173
|
multipleSelectionSupport: false,
|
|
174
174
|
accessibilityProvider: {
|
|
175
175
|
getRole: () => 'option',
|
|
176
|
-
getWidgetAriaLabel: () => ( localize(
|
|
176
|
+
getWidgetAriaLabel: () => ( localize(5219, "Suggest")),
|
|
177
177
|
getWidgetRole: () => 'listbox',
|
|
178
178
|
getAriaLabel: (item) => {
|
|
179
179
|
let label = item.textLabel;
|
|
180
180
|
if (typeof item.completion.label !== 'string') {
|
|
181
181
|
const { detail, description } = item.completion.label;
|
|
182
182
|
if (detail && description) {
|
|
183
|
-
label = ( localize(
|
|
183
|
+
label = ( localize(5220, '{0} {1}, {2}', label, detail, description));
|
|
184
184
|
}
|
|
185
185
|
else if (detail) {
|
|
186
|
-
label = ( localize(
|
|
186
|
+
label = ( localize(5221, '{0} {1}', label, detail));
|
|
187
187
|
}
|
|
188
188
|
else if (description) {
|
|
189
|
-
label = ( localize(
|
|
189
|
+
label = ( localize(5222, '{0}, {1}', label, description));
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
if (!item.isResolved || !this._isDetailsVisible()) {
|
|
@@ -194,7 +194,7 @@ let SuggestWidget = class SuggestWidget {
|
|
|
194
194
|
}
|
|
195
195
|
const { documentation, detail } = item.completion;
|
|
196
196
|
const docs = format('{0}{1}', detail || '', documentation ? (typeof documentation === 'string' ? documentation : documentation.value) : '');
|
|
197
|
-
return ( localize(
|
|
197
|
+
return ( localize(5223, "{0}, docs: {1}", label, docs));
|
|
198
198
|
},
|
|
199
199
|
}
|
|
200
200
|
})));
|
|
@@ -36,7 +36,7 @@ let SuggestDetailsWidget = class SuggestDetailsWidget {
|
|
|
36
36
|
this._disposables.add(this._scrollbar);
|
|
37
37
|
this._header = append(this._body, $('.header'));
|
|
38
38
|
this._close = append(this._header, $('span' + ThemeIcon.asCSSSelector(Codicon.close)));
|
|
39
|
-
this._close.title = ( localize(
|
|
39
|
+
this._close.title = ( localize(9983, "Close"));
|
|
40
40
|
this._type = append(this._header, $('p.type'));
|
|
41
41
|
this._docs = append(this._body, $('p.docs'));
|
|
42
42
|
this._configureFont();
|
|
@@ -80,7 +80,7 @@ let SuggestDetailsWidget = class SuggestDetailsWidget {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
renderLoading() {
|
|
83
|
-
this._type.textContent = ( localize(
|
|
83
|
+
this._type.textContent = ( localize(9984, "Loading..."));
|
|
84
84
|
this._docs.textContent = '';
|
|
85
85
|
this.domNode.classList.remove('no-docs', 'no-type');
|
|
86
86
|
this.layout(this.size.width, this.getLayoutInfo().lineHeight * 2);
|
|
@@ -20,7 +20,7 @@ import { canExpandCompletionItem } from './suggestWidgetDetails.js';
|
|
|
20
20
|
function getAriaId(index) {
|
|
21
21
|
return `suggest-aria-id:${index}`;
|
|
22
22
|
}
|
|
23
|
-
const suggestMoreInfoIcon = registerIcon('suggest-more-info', Codicon.chevronRight, ( localize(
|
|
23
|
+
const suggestMoreInfoIcon = registerIcon('suggest-more-info', Codicon.chevronRight, ( localize(9985, 'Icon for more information in the suggest widget.')));
|
|
24
24
|
const _completionItemColor = new (class ColorExtractor {
|
|
25
25
|
static { this._regexRelaxed = /(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/; }
|
|
26
26
|
static { this._regexStrict = ( (new RegExp(`^${ColorExtractor._regexRelaxed.source}$`, 'i'))); }
|
|
@@ -76,7 +76,7 @@ let ItemRenderer = class ItemRenderer {
|
|
|
76
76
|
const qualifierLabel = append(left, $('span.qualifier-label'));
|
|
77
77
|
const detailsLabel = append(right, $('span.details-label'));
|
|
78
78
|
const readMore = append(right, $('span.readMore' + ThemeIcon.asCSSSelector(suggestMoreInfoIcon)));
|
|
79
|
-
readMore.title = ( localize(
|
|
79
|
+
readMore.title = ( localize(9986, "Read More"));
|
|
80
80
|
const configureFont = () => {
|
|
81
81
|
const options = this._editor.getOptions();
|
|
82
82
|
const fontInfo = options.get(EditorOption.fontInfo);
|