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.
Files changed (211) hide show
  1. package/esm/nls.keys.json +1 -1
  2. package/esm/nls.messages.cs.js +2 -2
  3. package/esm/nls.messages.de.js +2 -2
  4. package/esm/nls.messages.es.js +2 -2
  5. package/esm/nls.messages.fr.js +2 -2
  6. package/esm/nls.messages.it.js +2 -2
  7. package/esm/nls.messages.ja.js +2 -2
  8. package/esm/nls.messages.js +1 -1
  9. package/esm/nls.messages.json +1 -1
  10. package/esm/nls.messages.ko.js +2 -2
  11. package/esm/nls.messages.pl.js +2 -2
  12. package/esm/nls.messages.pt-br.js +2 -2
  13. package/esm/nls.messages.ru.js +2 -2
  14. package/esm/nls.messages.tr.js +2 -2
  15. package/esm/nls.messages.zh-cn.js +2 -2
  16. package/esm/nls.messages.zh-tw.js +2 -2
  17. package/esm/nls.metadata.json +2 -0
  18. package/esm/vs/base/browser/ui/selectBox/selectBox.js.map +1 -1
  19. package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js +3 -0
  20. package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js.map +1 -1
  21. package/esm/vs/base/browser/ui/selectBox/selectBoxNative.js +4 -2
  22. package/esm/vs/base/browser/ui/selectBox/selectBoxNative.js.map +1 -1
  23. package/esm/vs/base/browser/ui/tree/abstractTree.js +27 -1
  24. package/esm/vs/base/browser/ui/tree/abstractTree.js.map +1 -1
  25. package/esm/vs/base/common/cancellation.js +3 -1
  26. package/esm/vs/base/common/cancellation.js.map +1 -1
  27. package/esm/vs/editor/browser/controller/mouseHandler.js +8 -1
  28. package/esm/vs/editor/browser/controller/mouseHandler.js.map +1 -1
  29. package/esm/vs/editor/browser/controller/mouseTarget.js +15 -6
  30. package/esm/vs/editor/browser/controller/mouseTarget.js.map +1 -1
  31. package/esm/vs/editor/browser/view.js +3 -2
  32. package/esm/vs/editor/browser/view.js.map +1 -1
  33. package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +12 -8
  34. package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js.map +1 -1
  35. package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js +7 -11
  36. package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js.map +1 -1
  37. package/esm/vs/editor/common/config/editorOptions.js +246 -238
  38. package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
  39. package/esm/vs/editor/common/core/editorColorRegistry.js +71 -71
  40. package/esm/vs/editor/common/editorContextKeys.js +53 -53
  41. package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
  42. package/esm/vs/editor/common/languages.js +56 -56
  43. package/esm/vs/editor/common/model/editStack.js +1 -1
  44. package/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +3 -1
  45. package/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js.map +1 -1
  46. package/esm/vs/editor/common/model/textModel.js +1 -0
  47. package/esm/vs/editor/common/model/textModel.js.map +1 -1
  48. package/esm/vs/editor/common/model.js.map +1 -1
  49. package/esm/vs/editor/common/standaloneStrings.js +11 -11
  50. package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  51. package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  52. package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  53. package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  54. package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  55. package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
  56. package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  57. package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
  58. package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  59. package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  60. package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  61. package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  62. package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  63. package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
  64. package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
  65. package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
  66. package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  67. package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
  68. package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +13 -13
  69. package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  70. package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  71. package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
  72. package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  73. package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  74. package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  75. package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js.map +1 -1
  76. package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  77. package/esm/vs/editor/contrib/find/browser/findController.js +17 -17
  78. package/esm/vs/editor/contrib/find/browser/findWidget.js +29 -29
  79. package/esm/vs/editor/contrib/folding/browser/folding.css +15 -0
  80. package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
  81. package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  82. package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  83. package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
  84. package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  85. package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  86. package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
  87. package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  88. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  89. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  90. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  91. package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  92. package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  93. package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  94. package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js +1 -1
  95. package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js.map +1 -1
  96. package/esm/vs/editor/contrib/hover/browser/contentHoverWidget.js +0 -5
  97. package/esm/vs/editor/contrib/hover/browser/contentHoverWidget.js.map +1 -1
  98. package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +0 -3
  99. package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js.map +1 -1
  100. package/esm/vs/editor/contrib/hover/browser/hover.css +6 -2
  101. package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  102. package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
  103. package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
  104. package/esm/vs/editor/contrib/hover/browser/hoverTypes.js.map +1 -1
  105. package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +19 -39
  106. package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
  107. package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +7 -7
  108. package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  109. package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  110. package/esm/vs/editor/contrib/indentation/common/indentation.js +14 -3
  111. package/esm/vs/editor/contrib/indentation/common/indentation.js.map +1 -1
  112. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  113. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
  114. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
  115. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +6 -6
  116. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  117. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +4 -4
  118. package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +2 -2
  119. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
  120. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
  121. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +3 -3
  122. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
  123. package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  124. package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  125. package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
  126. package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  127. package/esm/vs/editor/contrib/links/browser/links.js +11 -10
  128. package/esm/vs/editor/contrib/links/browser/links.js.map +1 -1
  129. package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
  130. package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  131. package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  132. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  133. package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  134. package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  135. package/esm/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
  136. package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +12 -12
  137. package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  138. package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  139. package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
  140. package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
  141. package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  142. package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
  143. package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  144. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  145. package/esm/vs/editor/contrib/suggest/browser/suggest.js +9 -9
  146. package/esm/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
  147. package/esm/vs/editor/contrib/suggest/browser/suggestModel.js +93 -38
  148. package/esm/vs/editor/contrib/suggest/browser/suggestModel.js.map +1 -1
  149. package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
  150. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +3 -3
  151. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  152. package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  153. package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  154. package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  155. package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  156. package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  157. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  158. package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  159. package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  160. package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  161. package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
  162. package/esm/vs/editor/editor.api.d.ts +5 -0
  163. package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +68 -68
  164. package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
  165. package/esm/vs/platform/actionWidget/browser/actionList.js +30 -31
  166. package/esm/vs/platform/actionWidget/browser/actionList.js.map +1 -1
  167. package/esm/vs/platform/actionWidget/browser/actionWidget.css +1 -1
  168. package/esm/vs/platform/actionWidget/browser/actionWidget.js +12 -12
  169. package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
  170. package/esm/vs/platform/actions/browser/toolbar.js +2 -2
  171. package/esm/vs/platform/actions/common/menuService.js +2 -2
  172. package/esm/vs/platform/configuration/common/configurationModels.js +15 -3
  173. package/esm/vs/platform/configuration/common/configurationModels.js.map +1 -1
  174. package/esm/vs/platform/configuration/common/configurationRegistry.js +12 -12
  175. package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  176. package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
  177. package/esm/vs/platform/contextkey/common/contextkeys.js +10 -10
  178. package/esm/vs/platform/contextkey/common/scanner.js +5 -5
  179. package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  180. package/esm/vs/platform/hover/browser/hoverWidget.js +1 -1
  181. package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
  182. package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
  183. package/esm/vs/platform/list/browser/listService.js +27 -27
  184. package/esm/vs/platform/markers/common/markerService.js +2 -2
  185. package/esm/vs/platform/markers/common/markers.js +6 -6
  186. package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
  187. package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
  188. package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
  189. package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
  190. package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
  191. package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
  192. package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  193. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  194. package/esm/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
  195. package/esm/vs/platform/theme/common/colorUtils.js +2 -2
  196. package/esm/vs/platform/theme/common/colors/baseColors.js +19 -19
  197. package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
  198. package/esm/vs/platform/theme/common/colors/confettiColors.js +6 -6
  199. package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
  200. package/esm/vs/platform/theme/common/colors/inputColors.js +48 -48
  201. package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
  202. package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
  203. package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
  204. package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
  205. package/esm/vs/platform/theme/common/colors/quickpickColors.js +10 -10
  206. package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
  207. package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
  208. package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  209. package/esm/vs/platform/workspace/common/workspace.js +1 -1
  210. package/monaco.d.ts +5 -0
  211. 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(1755, 'Background color for toggled action items in action bar.'));
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(1756, "Whether the action widget list is visible")),
34
- FilterFocused: new RawContextKey('codeActionMenuFilterFocused', false, localize(1757, "Whether the action widget filter input is focused")),
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(1758, "Hide action widget"),
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(1759, "Clear action widget filter"),
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(1760, "Select previous action"),
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(1761, "Select next action"),
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(1762, "Collapse section"),
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(1763, "Expand section"),
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(1764, "Toggle section"),
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(1765, "Accept selected action"),
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(1766, "Preview selected action"),
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(1735, "{0}\n[{1}] {2}", title, UILabelProvider.modifierLabels[OS].altKey, altTitleSection);
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(1736, '{1} to {0}', this._action.label, kb2);
280
+ this.label.textContent = localize(1737, '{1} to {0}', this._action.label, kb2);
281
281
  }
282
282
  else {
283
- this.label.textContent = localize(1737, '{0} ({1})', this._action.label, kb2);
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(1738, "Hide"),
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(1739, "Reset Menu"),
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(1740, 'Hide \'{0}\'', title),
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(1741, "Configure Keybinding"),
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
- configurationModel = configurationModel.merge();
587
+ policyAppliedConfigurationModel = configurationModel.merge();
577
588
  for (const key of this._policyConfiguration.keys) {
578
- configurationModel.setValue(key, this._policyConfiguration.getValue(key));
589
+ policyAppliedConfigurationModel.setValue(key, this._policyConfiguration.getValue(key));
579
590
  }
591
+ this._policyAppliedConfigurations.set(configurationModel, policyAppliedConfigurationModel);
580
592
  }
581
- return configurationModel;
593
+ return policyAppliedConfigurationModel;
582
594
  }
583
595
  getConsolidatedConfigurationModelForResource({ resource }, workspace) {
584
596
  let consolidateConfiguration = this.getWorkspaceConsolidatedConfiguration();