@codingame/monaco-vscode-api 10.0.1 → 10.1.0
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/api.js +1 -1
- package/missing-services.js +7062 -1575
- package/monaco.d.ts +1 -1
- package/monaco.js +1 -1
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/button/button.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/findinput/findInputToggles.js +3 -3
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +9 -9
- package/vscode/src/vs/base/common/date.js +61 -61
- package/vscode/src/vs/base/common/errorMessage.js +15 -6
- package/vscode/src/vs/base/common/errors.d.ts +3 -1
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
- package/vscode/src/vs/editor/common/config/editorOptions.js +368 -368
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- 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/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.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 +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/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- 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/wordHighlighter/browser/wordHighlighter.js +42 -23
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- 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/contextkeys.js +9 -9
- 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 -11
- 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 +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- 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/quickinput/browser/quickPickPin.js +2 -2
- package/vscode/src/vs/platform/request/common/request.js +14 -14
- 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/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- 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/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/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/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -217
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +10 -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/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- 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/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugExpressionRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +52 -52
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +11 -9
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- 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/inlineChat/browser/inlineChatController.js +6 -6
- 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/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -50
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- 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/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- 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/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- 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/userDataProfile/common/userDataProfile.js +3 -3
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -8,7 +8,7 @@ class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigationQuickA
|
|
|
8
8
|
super({ canAcceptInBackground: true });
|
|
9
9
|
}
|
|
10
10
|
provideWithoutTextEditor(picker) {
|
|
11
|
-
const label = ( localize(
|
|
11
|
+
const label = ( localize(4801, "Open a text editor first to go to a line."));
|
|
12
12
|
picker.items = [{ label }];
|
|
13
13
|
picker.ariaLabel = label;
|
|
14
14
|
return Disposable.None;
|
|
@@ -77,15 +77,15 @@ class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigationQuickA
|
|
|
77
77
|
getPickLabel(editor, lineNumber, column) {
|
|
78
78
|
if (this.isValidLineNumber(editor, lineNumber)) {
|
|
79
79
|
if (this.isValidColumn(editor, lineNumber, column)) {
|
|
80
|
-
return ( localize(
|
|
80
|
+
return ( localize(4802, "Go to line {0} and character {1}.", lineNumber, column));
|
|
81
81
|
}
|
|
82
|
-
return ( localize(
|
|
82
|
+
return ( localize(4803, "Go to line {0}.", lineNumber));
|
|
83
83
|
}
|
|
84
84
|
const position = editor.getPosition() || { lineNumber: 1, column: 1 };
|
|
85
85
|
const lineCount = this.lineCount(editor);
|
|
86
86
|
if (lineCount > 1) {
|
|
87
87
|
return ( localize(
|
|
88
|
-
|
|
88
|
+
4804,
|
|
89
89
|
"Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",
|
|
90
90
|
position.lineNumber,
|
|
91
91
|
position.column,
|
|
@@ -93,7 +93,7 @@ class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigationQuickA
|
|
|
93
93
|
));
|
|
94
94
|
}
|
|
95
95
|
return ( localize(
|
|
96
|
-
|
|
96
|
+
4805,
|
|
97
97
|
"Current Line: {0}, Character: {1}. Type a line number to navigate to.",
|
|
98
98
|
position.lineNumber,
|
|
99
99
|
position.column
|
|
@@ -28,7 +28,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
|
|
|
28
28
|
}
|
|
29
29
|
provideWithoutTextEditor(picker) {
|
|
30
30
|
this.provideLabelPick(picker, ( localize(
|
|
31
|
-
|
|
31
|
+
4806,
|
|
32
32
|
"To go to a symbol, first open a text editor with symbol information."
|
|
33
33
|
)));
|
|
34
34
|
return Disposable.None;
|
|
@@ -46,7 +46,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
|
|
|
46
46
|
}
|
|
47
47
|
doProvideWithoutEditorSymbols(context, model, picker, token) {
|
|
48
48
|
const disposables = ( (new DisposableStore()));
|
|
49
|
-
this.provideLabelPick(picker, ( localize(
|
|
49
|
+
this.provideLabelPick(picker, ( localize(4807, "The active text editor does not provide symbol information.")));
|
|
50
50
|
(async () => {
|
|
51
51
|
const result = await this.waitForLanguageSymbolRegistry(model, disposables);
|
|
52
52
|
if (!result || token.isCancellationRequested) {
|
|
@@ -117,10 +117,10 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
|
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
119
119
|
if (query.original.length > 0) {
|
|
120
|
-
this.provideLabelPick(picker, ( localize(
|
|
120
|
+
this.provideLabelPick(picker, ( localize(4808, "No matching editor symbols")));
|
|
121
121
|
}
|
|
122
122
|
else {
|
|
123
|
-
this.provideLabelPick(picker, ( localize(
|
|
123
|
+
this.provideLabelPick(picker, ( localize(4809, "No editor symbols")));
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -162,7 +162,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
|
|
|
162
162
|
if (openSideBySideDirection) {
|
|
163
163
|
buttons = [{
|
|
164
164
|
iconClass: openSideBySideDirection === 'right' ? ThemeIcon.asClassName(Codicon.splitHorizontal) : ThemeIcon.asClassName(Codicon.splitVertical),
|
|
165
|
-
tooltip: openSideBySideDirection === 'right' ? ( localize(
|
|
165
|
+
tooltip: openSideBySideDirection === 'right' ? ( localize(4810, "Open to the Side")) : ( localize(4811, "Open to the Bottom"))
|
|
166
166
|
}];
|
|
167
167
|
}
|
|
168
168
|
const filteredSymbolPicks = [];
|
|
@@ -262,7 +262,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
|
|
|
262
262
|
}
|
|
263
263
|
else if (sortedFilteredSymbolPicks.length > 0) {
|
|
264
264
|
symbolPicks = [
|
|
265
|
-
{ label: ( localize(
|
|
265
|
+
{ label: ( localize(4812, "symbols ({0})", filteredSymbolPicks.length)), type: 'separator' },
|
|
266
266
|
...sortedFilteredSymbolPicks
|
|
267
267
|
];
|
|
268
268
|
}
|
|
@@ -309,32 +309,32 @@ AbstractGotoSymbolQuickAccessProvider = AbstractGotoSymbolQuickAccessProvider_1
|
|
|
309
309
|
( (__param(0, ILanguageFeaturesService))),
|
|
310
310
|
( (__param(1, IOutlineModelService)))
|
|
311
311
|
], AbstractGotoSymbolQuickAccessProvider)));
|
|
312
|
-
const FALLBACK_NLS_SYMBOL_KIND = ( localize(
|
|
312
|
+
const FALLBACK_NLS_SYMBOL_KIND = ( localize(4813, "properties ({0})"));
|
|
313
313
|
const NLS_SYMBOL_KIND_CACHE = {
|
|
314
|
-
[5 ]: ( localize(
|
|
315
|
-
[11 ]: ( localize(
|
|
316
|
-
[8 ]: ( localize(
|
|
317
|
-
[12 ]: ( localize(
|
|
318
|
-
[4 ]: ( localize(
|
|
319
|
-
[22 ]: ( localize(
|
|
320
|
-
[23 ]: ( localize(
|
|
321
|
-
[24 ]: ( localize(
|
|
322
|
-
[10 ]: ( localize(
|
|
323
|
-
[2 ]: ( localize(
|
|
324
|
-
[3 ]: ( localize(
|
|
325
|
-
[25 ]: ( localize(
|
|
326
|
-
[1 ]: ( localize(
|
|
327
|
-
[6 ]: ( localize(
|
|
328
|
-
[9 ]: ( localize(
|
|
329
|
-
[21 ]: ( localize(
|
|
330
|
-
[14 ]: ( localize(
|
|
331
|
-
[0 ]: ( localize(
|
|
332
|
-
[17 ]: ( localize(
|
|
333
|
-
[15 ]: ( localize(
|
|
334
|
-
[16 ]: ( localize(
|
|
335
|
-
[18 ]: ( localize(
|
|
336
|
-
[19 ]: ( localize(
|
|
337
|
-
[7 ]: ( localize(
|
|
338
|
-
[13 ]: ( localize(
|
|
314
|
+
[5 ]: ( localize(4814, "methods ({0})")),
|
|
315
|
+
[11 ]: ( localize(4815, "functions ({0})")),
|
|
316
|
+
[8 ]: ( localize(4816, "constructors ({0})")),
|
|
317
|
+
[12 ]: ( localize(4817, "variables ({0})")),
|
|
318
|
+
[4 ]: ( localize(4818, "classes ({0})")),
|
|
319
|
+
[22 ]: ( localize(4819, "structs ({0})")),
|
|
320
|
+
[23 ]: ( localize(4820, "events ({0})")),
|
|
321
|
+
[24 ]: ( localize(4821, "operators ({0})")),
|
|
322
|
+
[10 ]: ( localize(4822, "interfaces ({0})")),
|
|
323
|
+
[2 ]: ( localize(4823, "namespaces ({0})")),
|
|
324
|
+
[3 ]: ( localize(4824, "packages ({0})")),
|
|
325
|
+
[25 ]: ( localize(4825, "type parameters ({0})")),
|
|
326
|
+
[1 ]: ( localize(4826, "modules ({0})")),
|
|
327
|
+
[6 ]: ( localize(4813, "properties ({0})")),
|
|
328
|
+
[9 ]: ( localize(4827, "enumerations ({0})")),
|
|
329
|
+
[21 ]: ( localize(4828, "enumeration members ({0})")),
|
|
330
|
+
[14 ]: ( localize(4829, "strings ({0})")),
|
|
331
|
+
[0 ]: ( localize(4830, "files ({0})")),
|
|
332
|
+
[17 ]: ( localize(4831, "arrays ({0})")),
|
|
333
|
+
[15 ]: ( localize(4832, "numbers ({0})")),
|
|
334
|
+
[16 ]: ( localize(4833, "booleans ({0})")),
|
|
335
|
+
[18 ]: ( localize(4834, "objects ({0})")),
|
|
336
|
+
[19 ]: ( localize(4835, "keys ({0})")),
|
|
337
|
+
[7 ]: ( localize(4836, "fields ({0})")),
|
|
338
|
+
[13 ]: ( localize(4837, "constants ({0})"))
|
|
339
339
|
};
|
|
340
340
|
export { AbstractGotoSymbolQuickAccessProvider };
|
|
@@ -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(10004, "Sunday")), ( localize(10005, "Monday")), ( localize(10006, "Tuesday")), ( localize(10007, "Wednesday")), ( localize(10008, "Thursday")), ( localize(10009, "Friday")), ( localize(10010, "Saturday"))]; }
|
|
216
|
+
static { this.dayNamesShort = [( localize(10011, "Sun")), ( localize(10012, "Mon")), ( localize(10013, "Tue")), ( localize(10014, "Wed")), ( localize(10015, "Thu")), ( localize(10016, "Fri")), ( localize(10017, "Sat"))]; }
|
|
217
|
+
static { this.monthNames = [( localize(10018, "January")), ( localize(10019, "February")), ( localize(10020, "March")), ( localize(10021, "April")), ( localize(10022, "May")), ( localize(10023, "June")), ( localize(10024, "July")), ( localize(10025, "August")), ( localize(10026, "September")), ( localize(10027, "October")), ( localize(10028, "November")), ( localize(10029, "December"))]; }
|
|
218
|
+
static { this.monthNamesShort = [( localize(10030, "Jan")), ( localize(10031, "Feb")), ( localize(10032, "Mar")), ( localize(10033, "Apr")), ( localize(10034, "May")), ( localize(10035, "Jun")), ( localize(10036, "Jul")), ( localize(10037, "Aug")), ( localize(10038, "Sep")), ( localize(10039, "Oct")), ( localize(10040, "Nov")), ( localize(10041, "Dec"))]; }
|
|
219
219
|
resolve(variable) {
|
|
220
220
|
const { name } = variable;
|
|
221
221
|
if (name === 'CURRENT_YEAR') {
|
|
@@ -35,7 +35,7 @@ let SuggestDetailsWidget = class SuggestDetailsWidget {
|
|
|
35
35
|
this._disposables.add(this._scrollbar);
|
|
36
36
|
this._header = append(this._body, $('.header'));
|
|
37
37
|
this._close = append(this._header, $('span' + ThemeIcon.asCSSSelector(Codicon.close)));
|
|
38
|
-
this._close.title = ( localize(
|
|
38
|
+
this._close.title = ( localize(10075, "Close"));
|
|
39
39
|
this._close.role = 'button';
|
|
40
40
|
this._close.tabIndex = -1;
|
|
41
41
|
this._type = append(this._header, $('p.type'));
|
|
@@ -81,7 +81,7 @@ let SuggestDetailsWidget = class SuggestDetailsWidget {
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
renderLoading() {
|
|
84
|
-
this._type.textContent = ( localize(
|
|
84
|
+
this._type.textContent = ( localize(10076, "Loading..."));
|
|
85
85
|
this._docs.textContent = '';
|
|
86
86
|
this.domNode.classList.remove('no-docs', 'no-type');
|
|
87
87
|
this.layout(this.size.width, this.getLayoutInfo().lineHeight * 2);
|
|
@@ -19,7 +19,7 @@ import { canExpandCompletionItem } from './suggestWidgetDetails.js';
|
|
|
19
19
|
function getAriaId(index) {
|
|
20
20
|
return `suggest-aria-id:${index}`;
|
|
21
21
|
}
|
|
22
|
-
const suggestMoreInfoIcon = registerIcon('suggest-more-info', Codicon.chevronRight, ( localize(
|
|
22
|
+
const suggestMoreInfoIcon = registerIcon('suggest-more-info', Codicon.chevronRight, ( localize(10077, 'Icon for more information in the suggest widget.')));
|
|
23
23
|
const _completionItemColor = new (class ColorExtractor {
|
|
24
24
|
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*\))/; }
|
|
25
25
|
static { this._regexStrict = ( (new RegExp(`^${ColorExtractor._regexRelaxed.source}$`, 'i'))); }
|
|
@@ -75,7 +75,7 @@ let ItemRenderer = class ItemRenderer {
|
|
|
75
75
|
const qualifierLabel = append(left, $('span.qualifier-label'));
|
|
76
76
|
const detailsLabel = append(right, $('span.details-label'));
|
|
77
77
|
const readMore = append(right, $('span.readMore' + ThemeIcon.asCSSSelector(suggestMoreInfoIcon)));
|
|
78
|
-
readMore.title = ( localize(
|
|
78
|
+
readMore.title = ( localize(10078, "Read More"));
|
|
79
79
|
const configureFont = () => {
|
|
80
80
|
const options = this._editor.getOptions();
|
|
81
81
|
const fontInfo = options.get(52 );
|
|
@@ -12,11 +12,11 @@ import '../../../../platform/theme/common/colors/miscColors.js';
|
|
|
12
12
|
import '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
13
13
|
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
14
14
|
registerColor('symbolIcon.arrayForeground', foreground, ( localize(
|
|
15
|
-
|
|
15
|
+
10042,
|
|
16
16
|
'The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
17
17
|
)));
|
|
18
18
|
registerColor('symbolIcon.booleanForeground', foreground, ( localize(
|
|
19
|
-
|
|
19
|
+
10043,
|
|
20
20
|
'The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
21
21
|
)));
|
|
22
22
|
registerColor('symbolIcon.classForeground', {
|
|
@@ -25,15 +25,15 @@ registerColor('symbolIcon.classForeground', {
|
|
|
25
25
|
hcDark: '#EE9D28',
|
|
26
26
|
hcLight: '#D67E00'
|
|
27
27
|
}, ( localize(
|
|
28
|
-
|
|
28
|
+
10044,
|
|
29
29
|
'The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
30
30
|
)));
|
|
31
31
|
registerColor('symbolIcon.colorForeground', foreground, ( localize(
|
|
32
|
-
|
|
32
|
+
10045,
|
|
33
33
|
'The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
34
34
|
)));
|
|
35
35
|
registerColor('symbolIcon.constantForeground', foreground, ( localize(
|
|
36
|
-
|
|
36
|
+
10046,
|
|
37
37
|
'The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
38
38
|
)));
|
|
39
39
|
registerColor('symbolIcon.constructorForeground', {
|
|
@@ -42,7 +42,7 @@ registerColor('symbolIcon.constructorForeground', {
|
|
|
42
42
|
hcDark: '#B180D7',
|
|
43
43
|
hcLight: '#652D90'
|
|
44
44
|
}, ( localize(
|
|
45
|
-
|
|
45
|
+
10047,
|
|
46
46
|
'The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
47
47
|
)));
|
|
48
48
|
registerColor('symbolIcon.enumeratorForeground', {
|
|
@@ -51,7 +51,7 @@ registerColor('symbolIcon.enumeratorForeground', {
|
|
|
51
51
|
hcDark: '#EE9D28',
|
|
52
52
|
hcLight: '#D67E00'
|
|
53
53
|
}, ( localize(
|
|
54
|
-
|
|
54
|
+
10048,
|
|
55
55
|
'The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
56
56
|
)));
|
|
57
57
|
registerColor('symbolIcon.enumeratorMemberForeground', {
|
|
@@ -60,7 +60,7 @@ registerColor('symbolIcon.enumeratorMemberForeground', {
|
|
|
60
60
|
hcDark: '#75BEFF',
|
|
61
61
|
hcLight: '#007ACC'
|
|
62
62
|
}, ( localize(
|
|
63
|
-
|
|
63
|
+
10049,
|
|
64
64
|
'The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
65
65
|
)));
|
|
66
66
|
registerColor('symbolIcon.eventForeground', {
|
|
@@ -69,7 +69,7 @@ registerColor('symbolIcon.eventForeground', {
|
|
|
69
69
|
hcDark: '#EE9D28',
|
|
70
70
|
hcLight: '#D67E00'
|
|
71
71
|
}, ( localize(
|
|
72
|
-
|
|
72
|
+
10050,
|
|
73
73
|
'The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
74
74
|
)));
|
|
75
75
|
registerColor('symbolIcon.fieldForeground', {
|
|
@@ -78,15 +78,15 @@ registerColor('symbolIcon.fieldForeground', {
|
|
|
78
78
|
hcDark: '#75BEFF',
|
|
79
79
|
hcLight: '#007ACC'
|
|
80
80
|
}, ( localize(
|
|
81
|
-
|
|
81
|
+
10051,
|
|
82
82
|
'The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
83
83
|
)));
|
|
84
84
|
registerColor('symbolIcon.fileForeground', foreground, ( localize(
|
|
85
|
-
|
|
85
|
+
10052,
|
|
86
86
|
'The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
87
87
|
)));
|
|
88
88
|
registerColor('symbolIcon.folderForeground', foreground, ( localize(
|
|
89
|
-
|
|
89
|
+
10053,
|
|
90
90
|
'The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
91
91
|
)));
|
|
92
92
|
registerColor('symbolIcon.functionForeground', {
|
|
@@ -95,7 +95,7 @@ registerColor('symbolIcon.functionForeground', {
|
|
|
95
95
|
hcDark: '#B180D7',
|
|
96
96
|
hcLight: '#652D90'
|
|
97
97
|
}, ( localize(
|
|
98
|
-
|
|
98
|
+
10054,
|
|
99
99
|
'The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
100
100
|
)));
|
|
101
101
|
registerColor('symbolIcon.interfaceForeground', {
|
|
@@ -104,15 +104,15 @@ registerColor('symbolIcon.interfaceForeground', {
|
|
|
104
104
|
hcDark: '#75BEFF',
|
|
105
105
|
hcLight: '#007ACC'
|
|
106
106
|
}, ( localize(
|
|
107
|
-
|
|
107
|
+
10055,
|
|
108
108
|
'The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
109
109
|
)));
|
|
110
110
|
registerColor('symbolIcon.keyForeground', foreground, ( localize(
|
|
111
|
-
|
|
111
|
+
10056,
|
|
112
112
|
'The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
113
113
|
)));
|
|
114
114
|
registerColor('symbolIcon.keywordForeground', foreground, ( localize(
|
|
115
|
-
|
|
115
|
+
10057,
|
|
116
116
|
'The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
117
117
|
)));
|
|
118
118
|
registerColor('symbolIcon.methodForeground', {
|
|
@@ -121,67 +121,67 @@ registerColor('symbolIcon.methodForeground', {
|
|
|
121
121
|
hcDark: '#B180D7',
|
|
122
122
|
hcLight: '#652D90'
|
|
123
123
|
}, ( localize(
|
|
124
|
-
|
|
124
|
+
10058,
|
|
125
125
|
'The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
126
126
|
)));
|
|
127
127
|
registerColor('symbolIcon.moduleForeground', foreground, ( localize(
|
|
128
|
-
|
|
128
|
+
10059,
|
|
129
129
|
'The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
130
130
|
)));
|
|
131
131
|
registerColor('symbolIcon.namespaceForeground', foreground, ( localize(
|
|
132
|
-
|
|
132
|
+
10060,
|
|
133
133
|
'The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
134
134
|
)));
|
|
135
135
|
registerColor('symbolIcon.nullForeground', foreground, ( localize(
|
|
136
|
-
|
|
136
|
+
10061,
|
|
137
137
|
'The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
138
138
|
)));
|
|
139
139
|
registerColor('symbolIcon.numberForeground', foreground, ( localize(
|
|
140
|
-
|
|
140
|
+
10062,
|
|
141
141
|
'The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
142
142
|
)));
|
|
143
143
|
registerColor('symbolIcon.objectForeground', foreground, ( localize(
|
|
144
|
-
|
|
144
|
+
10063,
|
|
145
145
|
'The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
146
146
|
)));
|
|
147
147
|
registerColor('symbolIcon.operatorForeground', foreground, ( localize(
|
|
148
|
-
|
|
148
|
+
10064,
|
|
149
149
|
'The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
150
150
|
)));
|
|
151
151
|
registerColor('symbolIcon.packageForeground', foreground, ( localize(
|
|
152
|
-
|
|
152
|
+
10065,
|
|
153
153
|
'The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
154
154
|
)));
|
|
155
155
|
registerColor('symbolIcon.propertyForeground', foreground, ( localize(
|
|
156
|
-
|
|
156
|
+
10066,
|
|
157
157
|
'The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
158
158
|
)));
|
|
159
159
|
registerColor('symbolIcon.referenceForeground', foreground, ( localize(
|
|
160
|
-
|
|
160
|
+
10067,
|
|
161
161
|
'The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
162
162
|
)));
|
|
163
163
|
registerColor('symbolIcon.snippetForeground', foreground, ( localize(
|
|
164
|
-
|
|
164
|
+
10068,
|
|
165
165
|
'The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
166
166
|
)));
|
|
167
167
|
registerColor('symbolIcon.stringForeground', foreground, ( localize(
|
|
168
|
-
|
|
168
|
+
10069,
|
|
169
169
|
'The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
170
170
|
)));
|
|
171
171
|
registerColor('symbolIcon.structForeground', foreground, ( localize(
|
|
172
|
-
|
|
172
|
+
10070,
|
|
173
173
|
'The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
174
174
|
)));
|
|
175
175
|
registerColor('symbolIcon.textForeground', foreground, ( localize(
|
|
176
|
-
|
|
176
|
+
10071,
|
|
177
177
|
'The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
178
178
|
)));
|
|
179
179
|
registerColor('symbolIcon.typeParameterForeground', foreground, ( localize(
|
|
180
|
-
|
|
180
|
+
10072,
|
|
181
181
|
'The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
182
182
|
)));
|
|
183
183
|
registerColor('symbolIcon.unitForeground', foreground, ( localize(
|
|
184
|
-
|
|
184
|
+
10073,
|
|
185
185
|
'The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
186
186
|
)));
|
|
187
187
|
registerColor('symbolIcon.variableForeground', {
|
|
@@ -190,6 +190,6 @@ registerColor('symbolIcon.variableForeground', {
|
|
|
190
190
|
hcDark: '#75BEFF',
|
|
191
191
|
hcLight: '#007ACC',
|
|
192
192
|
}, ( localize(
|
|
193
|
-
|
|
193
|
+
10074,
|
|
194
194
|
'The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget.'
|
|
195
195
|
)));
|
|
@@ -10,6 +10,7 @@ import { Schemas, matchesScheme } from '../../../../base/common/network.js';
|
|
|
10
10
|
import { isEqual } from '../../../../base/common/resources.js';
|
|
11
11
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
12
12
|
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.service.js';
|
|
13
|
+
import { ILogService } from '../../../../platform/log/common/log.service.js';
|
|
13
14
|
import { isDiffEditor } from '../../../browser/editorBrowser.js';
|
|
14
15
|
import { registerModelAndPositionCommand, registerEditorContribution, registerEditorAction, EditorAction } from '../../../browser/editorExtensions.js';
|
|
15
16
|
import { ICodeEditorService } from '../../../browser/services/codeEditorService.js';
|
|
@@ -152,7 +153,7 @@ let WordHighlighter = class WordHighlighter {
|
|
|
152
153
|
static { WordHighlighter_1 = this; }
|
|
153
154
|
static { this.storedDecorationIDs = ( (new ResourceMap())); }
|
|
154
155
|
static { this.query = null; }
|
|
155
|
-
constructor(editor, providers, multiProviders, contextKeyService, textModelService, codeEditorService) {
|
|
156
|
+
constructor(editor, providers, multiProviders, contextKeyService, textModelService, codeEditorService, logService) {
|
|
156
157
|
this.toUnhook = ( (new DisposableStore()));
|
|
157
158
|
this.workerRequestTokenId = 0;
|
|
158
159
|
this.workerRequestCompleted = false;
|
|
@@ -165,6 +166,7 @@ let WordHighlighter = class WordHighlighter {
|
|
|
165
166
|
this.multiDocumentProviders = multiProviders;
|
|
166
167
|
this.codeEditorService = codeEditorService;
|
|
167
168
|
this.textModelService = textModelService;
|
|
169
|
+
this.logService = logService;
|
|
168
170
|
this._hasWordHighlights = ctxHasWordHighlights.bindTo(contextKeyService);
|
|
169
171
|
this._ignorePositionChangeEvent = false;
|
|
170
172
|
this.occurrencesHighlight = this.editor.getOption(83 );
|
|
@@ -501,15 +503,22 @@ let WordHighlighter = class WordHighlighter {
|
|
|
501
503
|
return;
|
|
502
504
|
}
|
|
503
505
|
const queryModelRef = await this.textModelService.createModelReference(WordHighlighter_1.query.modelInfo.modelURI);
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
506
|
+
try {
|
|
507
|
+
this.workerRequest = this.computeWithModel(queryModelRef.object.textEditorModel, WordHighlighter_1.query.modelInfo.selection, otherModelsToHighlight);
|
|
508
|
+
this.workerRequest?.result.then(data => {
|
|
509
|
+
if (myRequestId === this.workerRequestTokenId) {
|
|
510
|
+
this.workerRequestCompleted = true;
|
|
511
|
+
this.workerRequestValue = data || [];
|
|
512
|
+
this._beginRenderDecorations();
|
|
513
|
+
}
|
|
514
|
+
}, onUnexpectedError);
|
|
515
|
+
}
|
|
516
|
+
catch (e) {
|
|
517
|
+
this.logService.error('Unexpected error during occurrence request. Log: ', e);
|
|
518
|
+
}
|
|
519
|
+
finally {
|
|
520
|
+
queryModelRef.dispose();
|
|
521
|
+
}
|
|
513
522
|
}
|
|
514
523
|
else if (this.model.uri.scheme === Schemas.vscodeNotebookCell) {
|
|
515
524
|
const myRequestId = ++this.workerRequestTokenId;
|
|
@@ -518,15 +527,22 @@ let WordHighlighter = class WordHighlighter {
|
|
|
518
527
|
return;
|
|
519
528
|
}
|
|
520
529
|
const queryModelRef = await this.textModelService.createModelReference(WordHighlighter_1.query.modelInfo.modelURI);
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
+
try {
|
|
531
|
+
this.workerRequest = this.computeWithModel(queryModelRef.object.textEditorModel, WordHighlighter_1.query.modelInfo.selection, [this.model]);
|
|
532
|
+
this.workerRequest?.result.then(data => {
|
|
533
|
+
if (myRequestId === this.workerRequestTokenId) {
|
|
534
|
+
this.workerRequestCompleted = true;
|
|
535
|
+
this.workerRequestValue = data || [];
|
|
536
|
+
this._beginRenderDecorations(noDelay);
|
|
537
|
+
}
|
|
538
|
+
}, onUnexpectedError);
|
|
539
|
+
}
|
|
540
|
+
catch (e) {
|
|
541
|
+
this.logService.error('Unexpected error during occurrence request. Log: ', e);
|
|
542
|
+
}
|
|
543
|
+
finally {
|
|
544
|
+
queryModelRef.dispose();
|
|
545
|
+
}
|
|
530
546
|
}
|
|
531
547
|
}
|
|
532
548
|
computeWithModel(model, selection, otherModels) {
|
|
@@ -594,7 +610,8 @@ let WordHighlighter = class WordHighlighter {
|
|
|
594
610
|
};
|
|
595
611
|
WordHighlighter = WordHighlighter_1 = ( (__decorate([
|
|
596
612
|
( (__param(4, ITextModelService))),
|
|
597
|
-
( (__param(5, ICodeEditorService)))
|
|
613
|
+
( (__param(5, ICodeEditorService))),
|
|
614
|
+
( (__param(6, ILogService)))
|
|
598
615
|
], WordHighlighter)));
|
|
599
616
|
let WordHighlighterContribution = class WordHighlighterContribution extends Disposable {
|
|
600
617
|
static { WordHighlighterContribution_1 = this; }
|
|
@@ -602,7 +619,7 @@ let WordHighlighterContribution = class WordHighlighterContribution extends Disp
|
|
|
602
619
|
static get(editor) {
|
|
603
620
|
return editor.getContribution(WordHighlighterContribution_1.ID);
|
|
604
621
|
}
|
|
605
|
-
constructor(editor, contextKeyService, languageFeaturesService, codeEditorService, textModelService) {
|
|
622
|
+
constructor(editor, contextKeyService, languageFeaturesService, codeEditorService, textModelService, logService) {
|
|
606
623
|
super();
|
|
607
624
|
this._wordHighlighter = null;
|
|
608
625
|
const createWordHighlighterIfPossible = () => {
|
|
@@ -613,7 +630,8 @@ let WordHighlighterContribution = class WordHighlighterContribution extends Disp
|
|
|
613
630
|
languageFeaturesService.multiDocumentHighlightProvider,
|
|
614
631
|
contextKeyService,
|
|
615
632
|
textModelService,
|
|
616
|
-
codeEditorService
|
|
633
|
+
codeEditorService,
|
|
634
|
+
logService
|
|
617
635
|
)));
|
|
618
636
|
}
|
|
619
637
|
};
|
|
@@ -664,7 +682,8 @@ WordHighlighterContribution = WordHighlighterContribution_1 = ( (__decorate([
|
|
|
664
682
|
( (__param(1, IContextKeyService))),
|
|
665
683
|
( (__param(2, ILanguageFeaturesService))),
|
|
666
684
|
( (__param(3, ICodeEditorService))),
|
|
667
|
-
( (__param(4, ITextModelService)))
|
|
685
|
+
( (__param(4, ITextModelService))),
|
|
686
|
+
( (__param(5, ILogService)))
|
|
668
687
|
], WordHighlighterContribution)));
|
|
669
688
|
class WordHighlightNavigationAction extends EditorAction {
|
|
670
689
|
constructor(next, opts) {
|