monaco-editor-core 0.58.0 → 0.59.0-dev-20261124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/nls.keys.json +1 -1
- package/esm/nls.messages.cs.js +2 -2
- package/esm/nls.messages.de.js +2 -2
- package/esm/nls.messages.es.js +2 -2
- package/esm/nls.messages.fr.js +2 -2
- package/esm/nls.messages.it.js +2 -2
- package/esm/nls.messages.ja.js +2 -2
- package/esm/nls.messages.js +1 -1
- package/esm/nls.messages.json +1 -1
- package/esm/nls.messages.ko.js +2 -2
- package/esm/nls.messages.pl.js +2 -2
- package/esm/nls.messages.pt-br.js +2 -2
- package/esm/nls.messages.ru.js +2 -2
- package/esm/nls.messages.tr.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +2 -0
- package/esm/vs/base/browser/ui/selectBox/selectBox.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js +3 -0
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBoxNative.js +4 -2
- package/esm/vs/base/browser/ui/selectBox/selectBoxNative.js.map +1 -1
- package/esm/vs/base/browser/ui/tree/abstractTree.js +27 -1
- package/esm/vs/base/browser/ui/tree/abstractTree.js.map +1 -1
- package/esm/vs/base/common/cancellation.js +3 -1
- package/esm/vs/base/common/cancellation.js.map +1 -1
- package/esm/vs/editor/browser/controller/mouseHandler.js +8 -1
- package/esm/vs/editor/browser/controller/mouseHandler.js.map +1 -1
- package/esm/vs/editor/browser/controller/mouseTarget.js +15 -6
- package/esm/vs/editor/browser/controller/mouseTarget.js.map +1 -1
- package/esm/vs/editor/browser/view.js +3 -2
- package/esm/vs/editor/browser/view.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +12 -8
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js +7 -11
- package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js.map +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +246 -238
- package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
- package/esm/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/esm/vs/editor/common/editorContextKeys.js +53 -53
- package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
- package/esm/vs/editor/common/languages.js +56 -56
- package/esm/vs/editor/common/model/editStack.js +1 -1
- package/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +3 -1
- package/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js.map +1 -1
- package/esm/vs/editor/common/model/textModel.js +1 -0
- package/esm/vs/editor/common/model/textModel.js.map +1 -1
- package/esm/vs/editor/common/model.js.map +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +11 -11
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +13 -13
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js.map +1 -1
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +17 -17
- package/esm/vs/editor/contrib/find/browser/findWidget.js +29 -29
- package/esm/vs/editor/contrib/folding/browser/folding.css +15 -0
- package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidget.js +0 -5
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidget.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +0 -3
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/hover.css +6 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverTypes.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +19 -39
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +7 -7
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/esm/vs/editor/contrib/indentation/common/indentation.js +14 -3
- package/esm/vs/editor/contrib/indentation/common/indentation.js.map +1 -1
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +3 -3
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/esm/vs/editor/contrib/links/browser/links.js +11 -10
- package/esm/vs/editor/contrib/links/browser/links.js.map +1 -1
- package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +12 -12
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
- package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggestModel.js +93 -38
- package/esm/vs/editor/contrib/suggest/browser/suggestModel.js.map +1 -1
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +3 -3
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/esm/vs/editor/editor.api.d.ts +5 -0
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +68 -68
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +30 -31
- package/esm/vs/platform/actionWidget/browser/actionList.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.css +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +12 -12
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- package/esm/vs/platform/actions/common/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationModels.js +15 -3
- package/esm/vs/platform/configuration/common/configurationModels.js.map +1 -1
- package/esm/vs/platform/configuration/common/configurationRegistry.js +12 -12
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
- package/esm/vs/platform/contextkey/common/contextkeys.js +10 -10
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/hover/browser/hoverWidget.js +1 -1
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/markers/common/markerService.js +2 -2
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +19 -19
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/confettiColors.js +6 -6
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +48 -48
- package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
- package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +10 -10
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/monaco.d.ts +5 -0
- package/package.json +3 -3
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
outline-color: var(--vscode-contrastActiveBorder, transparent);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
.action-widget .monaco-list.mouse-navigation .monaco-list-row.action.focused:is([aria-expanded='true'], [aria-pressed='true']):not(.option-disabled) {
|
|
124
|
+
.action-widget .monaco-list.mouse-navigation .monaco-list-row.action.focused:is(.panel-anchor, [aria-expanded='true'], [aria-pressed='true']):not(.option-disabled) {
|
|
125
125
|
outline-style: solid;
|
|
126
126
|
}
|
|
127
127
|
|
|
@@ -26,12 +26,12 @@ import { registerSingleton } from '../../instantiation/common/extensions.js';
|
|
|
26
26
|
import { createDecorator, IInstantiationService } from '../../instantiation/common/instantiation.js';
|
|
27
27
|
import { inputActiveOptionBackground, registerColor } from '../../theme/common/colorRegistry.js';
|
|
28
28
|
import { ACTION_WIDGET_ANIMATED_CLASS, ACTION_WIDGET_DROPDOWN_MOTION_CLASS } from './actionWidgetMotion.js';
|
|
29
|
-
registerColor('actionBar.toggledBackground', inputActiveOptionBackground, localize(
|
|
29
|
+
registerColor('actionBar.toggledBackground', inputActiveOptionBackground, localize(1756, 'Background color for toggled action items in action bar.'));
|
|
30
30
|
const ACTION_WIDGET_CLOSE_START_OPACITY_VARIABLE = '--action-widget-close-start-opacity';
|
|
31
31
|
const ACTION_WIDGET_CLOSE_START_TRANSFORM_VARIABLE = '--action-widget-close-start-transform';
|
|
32
32
|
const ActionWidgetContextKeys = {
|
|
33
|
-
Visible: new RawContextKey('codeActionMenuVisible', false, localize(
|
|
34
|
-
FilterFocused: new RawContextKey('codeActionMenuFilterFocused', false, localize(
|
|
33
|
+
Visible: new RawContextKey('codeActionMenuVisible', false, localize(1757, "Whether the action widget list is visible")),
|
|
34
|
+
FilterFocused: new RawContextKey('codeActionMenuFilterFocused', false, localize(1758, "Whether the action widget filter input is focused")),
|
|
35
35
|
};
|
|
36
36
|
export const IActionWidgetService = createDecorator('actionWidgetService');
|
|
37
37
|
let ActionWidgetService = class ActionWidgetService extends Disposable {
|
|
@@ -245,7 +245,7 @@ registerAction2(class extends Action2 {
|
|
|
245
245
|
constructor() {
|
|
246
246
|
super({
|
|
247
247
|
id: 'hideCodeActionWidget',
|
|
248
|
-
title: localize2(
|
|
248
|
+
title: localize2(1759, "Hide action widget"),
|
|
249
249
|
precondition: ActionWidgetContextKeys.Visible,
|
|
250
250
|
keybinding: {
|
|
251
251
|
weight,
|
|
@@ -262,7 +262,7 @@ registerAction2(class extends Action2 {
|
|
|
262
262
|
constructor() {
|
|
263
263
|
super({
|
|
264
264
|
id: 'clearFilterCodeActionWidget',
|
|
265
|
-
title: localize2(
|
|
265
|
+
title: localize2(1760, "Clear action widget filter"),
|
|
266
266
|
precondition: ContextKeyExpr.and(ActionWidgetContextKeys.Visible, ActionWidgetContextKeys.FilterFocused),
|
|
267
267
|
keybinding: {
|
|
268
268
|
weight: weight + 1,
|
|
@@ -283,7 +283,7 @@ registerAction2(class extends Action2 {
|
|
|
283
283
|
constructor() {
|
|
284
284
|
super({
|
|
285
285
|
id: 'selectPrevCodeAction',
|
|
286
|
-
title: localize2(
|
|
286
|
+
title: localize2(1761, "Select previous action"),
|
|
287
287
|
precondition: ActionWidgetContextKeys.Visible,
|
|
288
288
|
keybinding: {
|
|
289
289
|
weight,
|
|
@@ -304,7 +304,7 @@ registerAction2(class extends Action2 {
|
|
|
304
304
|
constructor() {
|
|
305
305
|
super({
|
|
306
306
|
id: 'selectNextCodeAction',
|
|
307
|
-
title: localize2(
|
|
307
|
+
title: localize2(1762, "Select next action"),
|
|
308
308
|
precondition: ActionWidgetContextKeys.Visible,
|
|
309
309
|
keybinding: {
|
|
310
310
|
weight,
|
|
@@ -325,7 +325,7 @@ registerAction2(class extends Action2 {
|
|
|
325
325
|
constructor() {
|
|
326
326
|
super({
|
|
327
327
|
id: 'collapseSectionCodeAction',
|
|
328
|
-
title: localize2(
|
|
328
|
+
title: localize2(1763, "Collapse section"),
|
|
329
329
|
precondition: ContextKeyExpr.and(ActionWidgetContextKeys.Visible, ActionWidgetContextKeys.FilterFocused.negate()),
|
|
330
330
|
keybinding: {
|
|
331
331
|
weight,
|
|
@@ -344,7 +344,7 @@ registerAction2(class extends Action2 {
|
|
|
344
344
|
constructor() {
|
|
345
345
|
super({
|
|
346
346
|
id: 'expandSectionCodeAction',
|
|
347
|
-
title: localize2(
|
|
347
|
+
title: localize2(1764, "Expand section"),
|
|
348
348
|
precondition: ContextKeyExpr.and(ActionWidgetContextKeys.Visible, ActionWidgetContextKeys.FilterFocused.negate()),
|
|
349
349
|
keybinding: {
|
|
350
350
|
weight,
|
|
@@ -363,7 +363,7 @@ registerAction2(class extends Action2 {
|
|
|
363
363
|
constructor() {
|
|
364
364
|
super({
|
|
365
365
|
id: 'toggleSectionCodeAction',
|
|
366
|
-
title: localize2(
|
|
366
|
+
title: localize2(1765, "Toggle section"),
|
|
367
367
|
precondition: ContextKeyExpr.and(ActionWidgetContextKeys.Visible, ActionWidgetContextKeys.FilterFocused.negate()),
|
|
368
368
|
keybinding: {
|
|
369
369
|
weight,
|
|
@@ -384,7 +384,7 @@ registerAction2(class extends Action2 {
|
|
|
384
384
|
constructor() {
|
|
385
385
|
super({
|
|
386
386
|
id: acceptSelectedActionCommand,
|
|
387
|
-
title: localize2(
|
|
387
|
+
title: localize2(1766, "Accept selected action"),
|
|
388
388
|
precondition: ActionWidgetContextKeys.Visible,
|
|
389
389
|
keybinding: {
|
|
390
390
|
weight,
|
|
@@ -404,7 +404,7 @@ registerAction2(class extends Action2 {
|
|
|
404
404
|
constructor() {
|
|
405
405
|
super({
|
|
406
406
|
id: previewSelectedActionCommand,
|
|
407
|
-
title: localize2(
|
|
407
|
+
title: localize2(1767, "Preview selected action"),
|
|
408
408
|
precondition: ActionWidgetContextKeys.Visible,
|
|
409
409
|
keybinding: {
|
|
410
410
|
weight,
|
|
@@ -202,7 +202,7 @@ let MenuEntryActionViewItem = class MenuEntryActionViewItem extends ActionViewIt
|
|
|
202
202
|
if (!this._wantsAltCommand && this._menuItemAction.alt?.enabled) {
|
|
203
203
|
const altTooltip = this._menuItemAction.alt.tooltip || this._menuItemAction.alt.label;
|
|
204
204
|
const altTitleSection = this._keybindingService.appendKeybinding(altTooltip, this._menuItemAction.alt.id, this._contextKeyService);
|
|
205
|
-
title = localize(
|
|
205
|
+
title = localize(1736, "{0}\n[{1}] {2}", title, UILabelProvider.modifierLabels[OS].altKey, altTitleSection);
|
|
206
206
|
}
|
|
207
207
|
return title;
|
|
208
208
|
}
|
|
@@ -277,10 +277,10 @@ export class TextOnlyMenuEntryActionViewItem extends MenuEntryActionViewItem {
|
|
|
277
277
|
if (this.label) {
|
|
278
278
|
const kb2 = TextOnlyMenuEntryActionViewItem._symbolPrintEnter(kb);
|
|
279
279
|
if (this._options?.conversational) {
|
|
280
|
-
this.label.textContent = localize(
|
|
280
|
+
this.label.textContent = localize(1737, '{1} to {0}', this._action.label, kb2);
|
|
281
281
|
}
|
|
282
282
|
else {
|
|
283
|
-
this.label.textContent = localize(
|
|
283
|
+
this.label.textContent = localize(1738, '{0} ({1})', this._action.label, kb2);
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -195,7 +195,7 @@ let WorkbenchToolBar = class WorkbenchToolBar extends ToolBar {
|
|
|
195
195
|
else if (!alwaysShown) {
|
|
196
196
|
primaryActions.push(toAction({
|
|
197
197
|
id: 'label',
|
|
198
|
-
label: localize(
|
|
198
|
+
label: localize(1739, "Hide"),
|
|
199
199
|
enabled: false,
|
|
200
200
|
run() { }
|
|
201
201
|
}));
|
|
@@ -211,7 +211,7 @@ let WorkbenchToolBar = class WorkbenchToolBar extends ToolBar {
|
|
|
211
211
|
actions.push(new Separator());
|
|
212
212
|
actions.push(toAction({
|
|
213
213
|
id: 'resetThisMenu',
|
|
214
|
-
label: localize(
|
|
214
|
+
label: localize(1740, "Reset Menu"),
|
|
215
215
|
run: () => this._menuService.resetHiddenStates(menuIds)
|
|
216
216
|
}));
|
|
217
217
|
}
|
|
@@ -416,7 +416,7 @@ function createMenuHide(menu, command, states) {
|
|
|
416
416
|
const title = typeof command.title === 'string' ? command.title : command.title.value;
|
|
417
417
|
const hide = toAction({
|
|
418
418
|
id: `hide/${menu.id}/${id}`,
|
|
419
|
-
label: localize(
|
|
419
|
+
label: localize(1741, 'Hide \'{0}\'', title),
|
|
420
420
|
run() { states.updateHidden(menu, id, true); }
|
|
421
421
|
});
|
|
422
422
|
const toggle = toAction({
|
|
@@ -435,7 +435,7 @@ function createMenuHide(menu, command, states) {
|
|
|
435
435
|
export function createConfigureKeybindingAction(commandService, keybindingService, commandId, when = undefined, enabled = true) {
|
|
436
436
|
return toAction({
|
|
437
437
|
id: `configureKeybinding/${commandId}`,
|
|
438
|
-
label: localize(
|
|
438
|
+
label: localize(1742, "Configure Keybinding"),
|
|
439
439
|
enabled,
|
|
440
440
|
run() {
|
|
441
441
|
// Only set the when clause when there is no keybinding
|
|
@@ -503,6 +503,8 @@ export class Configuration {
|
|
|
503
503
|
this.logService = logService;
|
|
504
504
|
this._workspaceConsolidatedConfiguration = null;
|
|
505
505
|
this._foldersConsolidatedConfigurations = new ResourceMap();
|
|
506
|
+
// Keyed by consolidated model identity, which changes whenever a consolidated cache is invalidated.
|
|
507
|
+
this._policyAppliedConfigurations = new WeakMap();
|
|
506
508
|
this._userConfiguration = null;
|
|
507
509
|
}
|
|
508
510
|
getValue(section, overrides, workspace) {
|
|
@@ -528,7 +530,9 @@ export class Configuration {
|
|
|
528
530
|
memoryConfiguration.setValue(key, value);
|
|
529
531
|
}
|
|
530
532
|
if (!overrides.resource) {
|
|
533
|
+
// The configurations of folders contain the memory configuration too
|
|
531
534
|
this._workspaceConsolidatedConfiguration = null;
|
|
535
|
+
this._foldersConsolidatedConfigurations.clear();
|
|
532
536
|
}
|
|
533
537
|
}
|
|
534
538
|
inspect(key, overrides, workspace) {
|
|
@@ -572,13 +576,21 @@ export class Configuration {
|
|
|
572
576
|
configurationModel = configurationModel.override(overrides.overrideIdentifier);
|
|
573
577
|
}
|
|
574
578
|
if (!this._policyConfiguration.isEmpty() && this._policyConfiguration.getValue(section) !== undefined) {
|
|
579
|
+
configurationModel = this.getPolicyAppliedConfigurationModel(configurationModel);
|
|
580
|
+
}
|
|
581
|
+
return configurationModel;
|
|
582
|
+
}
|
|
583
|
+
getPolicyAppliedConfigurationModel(configurationModel) {
|
|
584
|
+
let policyAppliedConfigurationModel = this._policyAppliedConfigurations.get(configurationModel);
|
|
585
|
+
if (!policyAppliedConfigurationModel) {
|
|
575
586
|
// clone by merging
|
|
576
|
-
|
|
587
|
+
policyAppliedConfigurationModel = configurationModel.merge();
|
|
577
588
|
for (const key of this._policyConfiguration.keys) {
|
|
578
|
-
|
|
589
|
+
policyAppliedConfigurationModel.setValue(key, this._policyConfiguration.getValue(key));
|
|
579
590
|
}
|
|
591
|
+
this._policyAppliedConfigurations.set(configurationModel, policyAppliedConfigurationModel);
|
|
580
592
|
}
|
|
581
|
-
return
|
|
593
|
+
return policyAppliedConfigurationModel;
|
|
582
594
|
}
|
|
583
595
|
getConsolidatedConfigurationModelForResource({ resource }, workspace) {
|
|
584
596
|
let consolidateConfiguration = this.getWorkspaceConsolidatedConfiguration();
|