monaco-editor-core 0.55.0-dev-20251008 → 0.55.0-dev-20251009

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 (124) hide show
  1. package/esm/nls.keys.json +1 -1
  2. package/esm/nls.messages.de.js +2 -2
  3. package/esm/nls.messages.es.js +2 -2
  4. package/esm/nls.messages.fr.js +2 -2
  5. package/esm/nls.messages.it.js +2 -2
  6. package/esm/nls.messages.ja.js +2 -2
  7. package/esm/nls.messages.js +1 -1
  8. package/esm/nls.messages.json +1 -1
  9. package/esm/nls.messages.ko.js +2 -2
  10. package/esm/nls.messages.ru.js +2 -2
  11. package/esm/nls.messages.zh-cn.js +2 -2
  12. package/esm/nls.messages.zh-tw.js +2 -2
  13. package/esm/nls.metadata.json +3 -1
  14. package/esm/vs/base/browser/markdownRenderer.js.map +1 -1
  15. package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  16. package/esm/vs/base/browser/ui/toolbar/toolbar.js +4 -1
  17. package/esm/vs/base/browser/ui/toolbar/toolbar.js.map +1 -1
  18. package/esm/vs/base/common/codiconsLibrary.js +9 -1
  19. package/esm/vs/base/common/codiconsLibrary.js.map +1 -1
  20. package/esm/vs/editor/browser/services/hoverService/hoverWidget.js +5 -8
  21. package/esm/vs/editor/browser/services/hoverService/hoverWidget.js.map +1 -1
  22. package/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +36 -31
  23. package/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js.map +1 -1
  24. package/esm/vs/editor/common/core/text/abstractText.js +5 -1
  25. package/esm/vs/editor/common/core/text/abstractText.js.map +1 -1
  26. package/esm/vs/editor/common/model/tokens/treeSitter/tokenStore.js +2 -1
  27. package/esm/vs/editor/common/model/tokens/treeSitter/tokenStore.js.map +1 -1
  28. package/esm/vs/editor/contrib/find/browser/findController.js +54 -61
  29. package/esm/vs/editor/contrib/find/browser/findController.js.map +1 -1
  30. package/esm/vs/editor/contrib/hover/browser/glyphHoverWidget.js +5 -8
  31. package/esm/vs/editor/contrib/hover/browser/glyphHoverWidget.js.map +1 -1
  32. package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +18 -23
  33. package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
  34. package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  35. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +10 -12
  36. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js.map +1 -1
  37. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +9 -13
  38. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js.map +1 -1
  39. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +8 -1
  40. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js.map +1 -1
  41. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
  42. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
  43. package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  44. package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  45. package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
  46. package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  47. package/esm/vs/editor/contrib/links/browser/links.js +10 -10
  48. package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
  49. package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  50. package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  51. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +10 -12
  52. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js.map +1 -1
  53. package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  54. package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  55. package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
  56. package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  57. package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  58. package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
  59. package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
  60. package/esm/vs/editor/contrib/rename/browser/renameWidget.js.map +1 -1
  61. package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  62. package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  63. package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  64. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  65. package/esm/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  66. package/esm/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
  67. package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -24
  68. package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js.map +1 -1
  69. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +15 -18
  70. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js.map +1 -1
  71. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  72. package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  73. package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  74. package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  75. package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  76. package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +7 -6
  77. package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js.map +1 -1
  78. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +29 -32
  79. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js.map +1 -1
  80. package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  81. package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  82. package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  83. package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
  84. package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  85. package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
  86. package/esm/vs/platform/actionWidget/browser/actionList.js +4 -4
  87. package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  88. package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  89. package/esm/vs/platform/actions/browser/toolbar.js +2 -2
  90. package/esm/vs/platform/actions/common/menuService.js +2 -2
  91. package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
  92. package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  93. package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
  94. package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
  95. package/esm/vs/platform/contextkey/common/scanner.js +5 -5
  96. package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  97. package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  98. package/esm/vs/platform/list/browser/listService.js +27 -27
  99. package/esm/vs/platform/markers/common/markerService.js +2 -2
  100. package/esm/vs/platform/markers/common/markers.js +6 -6
  101. package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +7 -7
  102. package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
  103. package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
  104. package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
  105. package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
  106. package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
  107. package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  108. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  109. package/esm/vs/platform/theme/common/colorUtils.js +2 -2
  110. package/esm/vs/platform/theme/common/colors/baseColors.js +17 -17
  111. package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
  112. package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
  113. package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
  114. package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
  115. package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
  116. package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
  117. package/esm/vs/platform/theme/common/colors/miscColors.js +15 -15
  118. package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  119. package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
  120. package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
  121. package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  122. package/esm/vs/platform/workspace/common/workspace.js +1 -1
  123. package/package.json +2 -2
  124. package/version.txt +1 -1
@@ -131,7 +131,7 @@ class GrowSelectionAction extends AbstractSmartSelect {
131
131
  constructor() {
132
132
  super(true, {
133
133
  id: 'editor.action.smartSelect.expand',
134
- label: nls.localize2(1385, "Expand Selection"),
134
+ label: nls.localize2(1386, "Expand Selection"),
135
135
  precondition: undefined,
136
136
  kbOpts: {
137
137
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -145,7 +145,7 @@ class GrowSelectionAction extends AbstractSmartSelect {
145
145
  menuOpts: {
146
146
  menuId: MenuId.MenubarSelectionMenu,
147
147
  group: '1_basic',
148
- title: nls.localize(1383, "&&Expand Selection"),
148
+ title: nls.localize(1384, "&&Expand Selection"),
149
149
  order: 2
150
150
  }
151
151
  });
@@ -157,7 +157,7 @@ class ShrinkSelectionAction extends AbstractSmartSelect {
157
157
  constructor() {
158
158
  super(false, {
159
159
  id: 'editor.action.smartSelect.shrink',
160
- label: nls.localize2(1386, "Shrink Selection"),
160
+ label: nls.localize2(1387, "Shrink Selection"),
161
161
  precondition: undefined,
162
162
  kbOpts: {
163
163
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -171,7 +171,7 @@ class ShrinkSelectionAction extends AbstractSmartSelect {
171
171
  menuOpts: {
172
172
  menuId: MenuId.MenubarSelectionMenu,
173
173
  group: '1_basic',
174
- title: nls.localize(1384, "&&Shrink Selection"),
174
+ title: nls.localize(1385, "&&Shrink Selection"),
175
175
  order: 3
176
176
  }
177
177
  });
@@ -40,9 +40,9 @@ let SnippetController2 = class SnippetController2 {
40
40
  static get(editor) {
41
41
  return editor.getContribution(SnippetController2_1.ID);
42
42
  }
43
- static { this.InSnippetMode = new RawContextKey('inSnippetMode', false, localize(1387, "Whether the editor in current in snippet mode")); }
44
- static { this.HasNextTabstop = new RawContextKey('hasNextTabstop', false, localize(1388, "Whether there is a next tab stop when in snippet mode")); }
45
- static { this.HasPrevTabstop = new RawContextKey('hasPrevTabstop', false, localize(1389, "Whether there is a previous tab stop when in snippet mode")); }
43
+ static { this.InSnippetMode = new RawContextKey('inSnippetMode', false, localize(1388, "Whether the editor in current in snippet mode")); }
44
+ static { this.HasNextTabstop = new RawContextKey('hasNextTabstop', false, localize(1389, "Whether there is a next tab stop when in snippet mode")); }
45
+ static { this.HasPrevTabstop = new RawContextKey('hasPrevTabstop', false, localize(1390, "Whether there is a previous tab stop when in snippet mode")); }
46
46
  constructor(_editor, _logService, _languageFeaturesService, contextKeyService, _languageConfigurationService) {
47
47
  this._editor = _editor;
48
48
  this._logService = _logService;
@@ -128,7 +128,7 @@ let SnippetController2 = class SnippetController2 {
128
128
  sortText: 'a'.repeat(i + 1),
129
129
  range: activeChoice.range,
130
130
  filterText: isAnyOfOptions ? `${word}_${option.value}` : undefined,
131
- command: { id: 'jumpToNextSnippetPlaceholder', title: localize(1390, 'Go to next placeholder...') }
131
+ command: { id: 'jumpToNextSnippetPlaceholder', title: localize(1391, 'Go to next placeholder...') }
132
132
  });
133
133
  }
134
134
  return { suggestions };
@@ -238,10 +238,10 @@ export class TimeBasedVariableResolver {
238
238
  constructor() {
239
239
  this._date = new Date();
240
240
  }
241
- static { this.dayNames = [nls.localize(1391, "Sunday"), nls.localize(1392, "Monday"), nls.localize(1393, "Tuesday"), nls.localize(1394, "Wednesday"), nls.localize(1395, "Thursday"), nls.localize(1396, "Friday"), nls.localize(1397, "Saturday")]; }
242
- static { this.dayNamesShort = [nls.localize(1398, "Sun"), nls.localize(1399, "Mon"), nls.localize(1400, "Tue"), nls.localize(1401, "Wed"), nls.localize(1402, "Thu"), nls.localize(1403, "Fri"), nls.localize(1404, "Sat")]; }
243
- static { this.monthNames = [nls.localize(1405, "January"), nls.localize(1406, "February"), nls.localize(1407, "March"), nls.localize(1408, "April"), nls.localize(1409, "May"), nls.localize(1410, "June"), nls.localize(1411, "July"), nls.localize(1412, "August"), nls.localize(1413, "September"), nls.localize(1414, "October"), nls.localize(1415, "November"), nls.localize(1416, "December")]; }
244
- static { this.monthNamesShort = [nls.localize(1417, "Jan"), nls.localize(1418, "Feb"), nls.localize(1419, "Mar"), nls.localize(1420, "Apr"), nls.localize(1421, "May"), nls.localize(1422, "Jun"), nls.localize(1423, "Jul"), nls.localize(1424, "Aug"), nls.localize(1425, "Sep"), nls.localize(1426, "Oct"), nls.localize(1427, "Nov"), nls.localize(1428, "Dec")]; }
241
+ static { this.dayNames = [nls.localize(1392, "Sunday"), nls.localize(1393, "Monday"), nls.localize(1394, "Tuesday"), nls.localize(1395, "Wednesday"), nls.localize(1396, "Thursday"), nls.localize(1397, "Friday"), nls.localize(1398, "Saturday")]; }
242
+ static { this.dayNamesShort = [nls.localize(1399, "Sun"), nls.localize(1400, "Mon"), nls.localize(1401, "Tue"), nls.localize(1402, "Wed"), nls.localize(1403, "Thu"), nls.localize(1404, "Fri"), nls.localize(1405, "Sat")]; }
243
+ static { this.monthNames = [nls.localize(1406, "January"), nls.localize(1407, "February"), nls.localize(1408, "March"), nls.localize(1409, "April"), nls.localize(1410, "May"), nls.localize(1411, "June"), nls.localize(1412, "July"), nls.localize(1413, "August"), nls.localize(1414, "September"), nls.localize(1415, "October"), nls.localize(1416, "November"), nls.localize(1417, "December")]; }
244
+ static { this.monthNamesShort = [nls.localize(1418, "Jan"), nls.localize(1419, "Feb"), nls.localize(1420, "Mar"), nls.localize(1421, "Apr"), nls.localize(1422, "May"), nls.localize(1423, "Jun"), nls.localize(1424, "Jul"), nls.localize(1425, "Aug"), nls.localize(1426, "Sep"), nls.localize(1427, "Oct"), nls.localize(1428, "Nov"), nls.localize(1429, "Dec")]; }
245
245
  resolve(variable) {
246
246
  const { name } = variable;
247
247
  if (name === 'CURRENT_YEAR') {
@@ -15,17 +15,17 @@ export class ToggleStickyScroll extends EditorAction2 {
15
15
  super({
16
16
  id: 'editor.action.toggleStickyScroll',
17
17
  title: {
18
- ...localize2(1433, "Toggle Editor Sticky Scroll"),
19
- mnemonicTitle: localize(1429, "&&Toggle Editor Sticky Scroll"),
18
+ ...localize2(1434, "Toggle Editor Sticky Scroll"),
19
+ mnemonicTitle: localize(1430, "&&Toggle Editor Sticky Scroll"),
20
20
  },
21
21
  metadata: {
22
- description: localize2(1434, "Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport"),
22
+ description: localize2(1435, "Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport"),
23
23
  },
24
24
  category: Categories.View,
25
25
  toggled: {
26
26
  condition: ContextKeyExpr.equals('config.editor.stickyScroll.enabled', true),
27
- title: localize(1430, "Sticky Scroll"),
28
- mnemonicTitle: localize(1431, "&&Sticky Scroll"),
27
+ title: localize(1431, "Sticky Scroll"),
28
+ mnemonicTitle: localize(1432, "&&Sticky Scroll"),
29
29
  },
30
30
  menu: [
31
31
  { id: MenuId.CommandPalette },
@@ -50,8 +50,8 @@ export class FocusStickyScroll extends EditorAction2 {
50
50
  super({
51
51
  id: 'editor.action.focusStickyScroll',
52
52
  title: {
53
- ...localize2(1435, "Focus Editor Sticky Scroll"),
54
- mnemonicTitle: localize(1432, "&&Focus Editor Sticky Scroll"),
53
+ ...localize2(1436, "Focus Editor Sticky Scroll"),
54
+ mnemonicTitle: localize(1433, "&&Focus Editor Sticky Scroll"),
55
55
  },
56
56
  precondition: ContextKeyExpr.and(ContextKeyExpr.has('config.editor.stickyScroll.enabled'), EditorContextKeys.stickyScrollVisible),
57
57
  menu: [
@@ -67,7 +67,7 @@ export class SelectNextStickyScrollLine extends EditorAction2 {
67
67
  constructor() {
68
68
  super({
69
69
  id: 'editor.action.selectNextStickyScrollLine',
70
- title: localize2(1436, "Select the next editor sticky scroll line"),
70
+ title: localize2(1437, "Select the next editor sticky scroll line"),
71
71
  precondition: EditorContextKeys.stickyScrollFocused.isEqualTo(true),
72
72
  keybinding: {
73
73
  weight,
@@ -83,7 +83,7 @@ export class SelectPreviousStickyScrollLine extends EditorAction2 {
83
83
  constructor() {
84
84
  super({
85
85
  id: 'editor.action.selectPreviousStickyScrollLine',
86
- title: localize2(1437, "Select the previous sticky scroll line"),
86
+ title: localize2(1438, "Select the previous sticky scroll line"),
87
87
  precondition: EditorContextKeys.stickyScrollFocused.isEqualTo(true),
88
88
  keybinding: {
89
89
  weight,
@@ -99,7 +99,7 @@ export class GoToStickyScrollLine extends EditorAction2 {
99
99
  constructor() {
100
100
  super({
101
101
  id: 'editor.action.goToFocusedStickyScrollLine',
102
- title: localize2(1438, "Go to the focused sticky scroll line"),
102
+ title: localize2(1439, "Go to the focused sticky scroll line"),
103
103
  precondition: EditorContextKeys.stickyScrollFocused.isEqualTo(true),
104
104
  keybinding: {
105
105
  weight,
@@ -115,7 +115,7 @@ export class SelectEditor extends EditorAction2 {
115
115
  constructor() {
116
116
  super({
117
117
  id: 'editor.action.selectEditor',
118
- title: localize2(1439, "Select Editor"),
118
+ title: localize2(1440, "Select Editor"),
119
119
  precondition: EditorContextKeys.stickyScrollFocused.isEqualTo(true),
120
120
  keybinding: {
121
121
  weight,
@@ -21,14 +21,14 @@ import { ILanguageFeaturesService } from '../../../common/services/languageFeatu
21
21
  import { historyNavigationVisible } from '../../../../platform/history/browser/contextScopedHistoryWidget.js';
22
22
  export const Context = {
23
23
  Visible: historyNavigationVisible,
24
- HasFocusedSuggestion: new RawContextKey('suggestWidgetHasFocusedSuggestion', false, localize(1440, "Whether any suggestion is focused")),
25
- DetailsVisible: new RawContextKey('suggestWidgetDetailsVisible', false, localize(1441, "Whether suggestion details are visible")),
26
- MultipleSuggestions: new RawContextKey('suggestWidgetMultipleSuggestions', false, localize(1442, "Whether there are multiple suggestions to pick from")),
27
- MakesTextEdit: new RawContextKey('suggestionMakesTextEdit', true, localize(1443, "Whether inserting the current suggestion yields in a change or has everything already been typed")),
28
- AcceptSuggestionsOnEnter: new RawContextKey('acceptSuggestionOnEnter', true, localize(1444, "Whether suggestions are inserted when pressing Enter")),
29
- HasInsertAndReplaceRange: new RawContextKey('suggestionHasInsertAndReplaceRange', false, localize(1445, "Whether the current suggestion has insert and replace behaviour")),
30
- InsertMode: new RawContextKey('suggestionInsertMode', undefined, { type: 'string', description: localize(1446, "Whether the default behaviour is to insert or replace") }),
31
- CanResolve: new RawContextKey('suggestionCanResolve', false, localize(1447, "Whether the current suggestion supports to resolve further details")),
24
+ HasFocusedSuggestion: new RawContextKey('suggestWidgetHasFocusedSuggestion', false, localize(1441, "Whether any suggestion is focused")),
25
+ DetailsVisible: new RawContextKey('suggestWidgetDetailsVisible', false, localize(1442, "Whether suggestion details are visible")),
26
+ MultipleSuggestions: new RawContextKey('suggestWidgetMultipleSuggestions', false, localize(1443, "Whether there are multiple suggestions to pick from")),
27
+ MakesTextEdit: new RawContextKey('suggestionMakesTextEdit', true, localize(1444, "Whether inserting the current suggestion yields in a change or has everything already been typed")),
28
+ AcceptSuggestionsOnEnter: new RawContextKey('acceptSuggestionOnEnter', true, localize(1445, "Whether suggestions are inserted when pressing Enter")),
29
+ HasInsertAndReplaceRange: new RawContextKey('suggestionHasInsertAndReplaceRange', false, localize(1446, "Whether the current suggestion has insert and replace behaviour")),
30
+ InsertMode: new RawContextKey('suggestionInsertMode', undefined, { type: 'string', description: localize(1447, "Whether the default behaviour is to insert or replace") }),
31
+ CanResolve: new RawContextKey('suggestionCanResolve', false, localize(1448, "Whether the current suggestion supports to resolve further details")),
32
32
  };
33
33
  export const suggestWidgetStatusbarMenu = new MenuId('suggestWidgetStatusBar');
34
34
  export class CompletionItem {
@@ -482,7 +482,7 @@ let SuggestController = class SuggestController {
482
482
  }
483
483
  _alertCompletionItem(item) {
484
484
  if (isNonEmptyArray(item.completion.additionalTextEdits)) {
485
- const msg = nls.localize(1448, "Accepting '{0}' made {1} additional edits", item.textLabel, item.completion.additionalTextEdits.length);
485
+ const msg = nls.localize(1449, "Accepting '{0}' made {1} additional edits", item.textLabel, item.completion.additionalTextEdits.length);
486
486
  alert(msg);
487
487
  }
488
488
  }
@@ -669,7 +669,7 @@ export class TriggerSuggestAction extends EditorAction {
669
669
  constructor() {
670
670
  super({
671
671
  id: TriggerSuggestAction.id,
672
- label: nls.localize2(1456, "Trigger Suggest"),
672
+ label: nls.localize2(1457, "Trigger Suggest"),
673
673
  precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCompletionItemProvider, SuggestContext.Visible.toNegated()),
674
674
  kbOpts: {
675
675
  kbExpr: EditorContextKeys.textInputFocus,
@@ -717,19 +717,19 @@ registerEditorCommand(new SuggestCommand({
717
717
  }],
718
718
  menuOpts: [{
719
719
  menuId: suggestWidgetStatusbarMenu,
720
- title: nls.localize(1449, "Insert"),
720
+ title: nls.localize(1450, "Insert"),
721
721
  group: 'left',
722
722
  order: 1,
723
723
  when: SuggestContext.HasInsertAndReplaceRange.toNegated()
724
724
  }, {
725
725
  menuId: suggestWidgetStatusbarMenu,
726
- title: nls.localize(1450, "Insert"),
726
+ title: nls.localize(1451, "Insert"),
727
727
  group: 'left',
728
728
  order: 1,
729
729
  when: ContextKeyExpr.and(SuggestContext.HasInsertAndReplaceRange, SuggestContext.InsertMode.isEqualTo('insert'))
730
730
  }, {
731
731
  menuId: suggestWidgetStatusbarMenu,
732
- title: nls.localize(1451, "Replace"),
732
+ title: nls.localize(1452, "Replace"),
733
733
  group: 'left',
734
734
  order: 1,
735
735
  when: ContextKeyExpr.and(SuggestContext.HasInsertAndReplaceRange, SuggestContext.InsertMode.isEqualTo('replace'))
@@ -752,13 +752,13 @@ registerEditorCommand(new SuggestCommand({
752
752
  group: 'left',
753
753
  order: 2,
754
754
  when: ContextKeyExpr.and(SuggestContext.HasInsertAndReplaceRange, SuggestContext.InsertMode.isEqualTo('insert')),
755
- title: nls.localize(1452, "Replace")
755
+ title: nls.localize(1453, "Replace")
756
756
  }, {
757
757
  menuId: suggestWidgetStatusbarMenu,
758
758
  group: 'left',
759
759
  order: 2,
760
760
  when: ContextKeyExpr.and(SuggestContext.HasInsertAndReplaceRange, SuggestContext.InsertMode.isEqualTo('replace')),
761
- title: nls.localize(1453, "Insert")
761
+ title: nls.localize(1454, "Insert")
762
762
  }]
763
763
  }));
764
764
  // continue to support the old command
@@ -866,13 +866,13 @@ registerEditorCommand(new SuggestCommand({
866
866
  group: 'right',
867
867
  order: 1,
868
868
  when: ContextKeyExpr.and(SuggestContext.DetailsVisible, SuggestContext.CanResolve),
869
- title: nls.localize(1454, "Show Less")
869
+ title: nls.localize(1455, "Show Less")
870
870
  }, {
871
871
  menuId: suggestWidgetStatusbarMenu,
872
872
  group: 'right',
873
873
  order: 1,
874
874
  when: ContextKeyExpr.and(SuggestContext.DetailsVisible.toNegated(), SuggestContext.CanResolve),
875
- title: nls.localize(1455, "Show More")
875
+ title: nls.localize(1456, "Show More")
876
876
  }]
877
877
  }));
878
878
  registerEditorCommand(new SuggestCommand({
@@ -931,7 +931,7 @@ registerEditorAction(class extends EditorAction {
931
931
  constructor() {
932
932
  super({
933
933
  id: 'editor.action.resetSuggestSize',
934
- label: nls.localize2(1457, "Reset Suggest Widget Size"),
934
+ label: nls.localize2(1458, "Reset Suggest Widget Size"),
935
935
  precondition: undefined
936
936
  });
937
937
  }
@@ -30,7 +30,6 @@ import { IContextKeyService } from '../../../../platform/contextkey/common/conte
30
30
  import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
31
31
  import { IStorageService } from '../../../../platform/storage/common/storage.js';
32
32
  import { activeContrastBorder, editorForeground, editorWidgetBackground, editorWidgetBorder, listFocusHighlightForeground, listHighlightForeground, quickInputListFocusBackground, quickInputListFocusForeground, quickInputListFocusIconForeground, registerColor, transparent } from '../../../../platform/theme/common/colorRegistry.js';
33
- import { isHighContrast } from '../../../../platform/theme/common/theme.js';
34
33
  import { IThemeService } from '../../../../platform/theme/common/themeService.js';
35
34
  import { ResizableHTMLElement } from '../../../../base/browser/ui/resizable/resizable.js';
36
35
  import { Context as SuggestContext, suggestWidgetStatusbarMenu } from './suggest.js';
@@ -43,15 +42,15 @@ import { isWindows } from '../../../../base/common/platform.js';
43
42
  /**
44
43
  * Suggest widget colors
45
44
  */
46
- registerColor('editorSuggestWidget.background', editorWidgetBackground, nls.localize(1458, 'Background color of the suggest widget.'));
47
- registerColor('editorSuggestWidget.border', editorWidgetBorder, nls.localize(1459, 'Border color of the suggest widget.'));
48
- export const editorSuggestWidgetForeground = registerColor('editorSuggestWidget.foreground', editorForeground, nls.localize(1460, 'Foreground color of the suggest widget.'));
49
- registerColor('editorSuggestWidget.selectedForeground', quickInputListFocusForeground, nls.localize(1461, 'Foreground color of the selected entry in the suggest widget.'));
50
- registerColor('editorSuggestWidget.selectedIconForeground', quickInputListFocusIconForeground, nls.localize(1462, 'Icon foreground color of the selected entry in the suggest widget.'));
51
- export const editorSuggestWidgetSelectedBackground = registerColor('editorSuggestWidget.selectedBackground', quickInputListFocusBackground, nls.localize(1463, 'Background color of the selected entry in the suggest widget.'));
52
- registerColor('editorSuggestWidget.highlightForeground', listHighlightForeground, nls.localize(1464, 'Color of the match highlights in the suggest widget.'));
53
- registerColor('editorSuggestWidget.focusHighlightForeground', listFocusHighlightForeground, nls.localize(1465, 'Color of the match highlights in the suggest widget when an item is focused.'));
54
- registerColor('editorSuggestWidgetStatus.foreground', transparent(editorSuggestWidgetForeground, .5), nls.localize(1466, 'Foreground color of the suggest widget status.'));
45
+ registerColor('editorSuggestWidget.background', editorWidgetBackground, nls.localize(1459, 'Background color of the suggest widget.'));
46
+ registerColor('editorSuggestWidget.border', editorWidgetBorder, nls.localize(1460, 'Border color of the suggest widget.'));
47
+ export const editorSuggestWidgetForeground = registerColor('editorSuggestWidget.foreground', editorForeground, nls.localize(1461, 'Foreground color of the suggest widget.'));
48
+ registerColor('editorSuggestWidget.selectedForeground', quickInputListFocusForeground, nls.localize(1462, 'Foreground color of the selected entry in the suggest widget.'));
49
+ registerColor('editorSuggestWidget.selectedIconForeground', quickInputListFocusIconForeground, nls.localize(1463, 'Icon foreground color of the selected entry in the suggest widget.'));
50
+ export const editorSuggestWidgetSelectedBackground = registerColor('editorSuggestWidget.selectedBackground', quickInputListFocusBackground, nls.localize(1464, 'Background color of the selected entry in the suggest widget.'));
51
+ registerColor('editorSuggestWidget.highlightForeground', listHighlightForeground, nls.localize(1465, 'Color of the match highlights in the suggest widget.'));
52
+ registerColor('editorSuggestWidget.focusHighlightForeground', listFocusHighlightForeground, nls.localize(1466, 'Color of the match highlights in the suggest widget when an item is focused.'));
53
+ registerColor('editorSuggestWidgetStatus.foreground', transparent(editorSuggestWidgetForeground, .5), nls.localize(1467, 'Foreground color of the suggest widget status.'));
55
54
  class PersistedWidgetSize {
56
55
  constructor(_service, editor) {
57
56
  this._service = _service;
@@ -79,8 +78,8 @@ class PersistedWidgetSize {
79
78
  }
80
79
  let SuggestWidget = class SuggestWidget {
81
80
  static { SuggestWidget_1 = this; }
82
- static { this.LOADING_MESSAGE = nls.localize(1467, "Loading..."); }
83
- static { this.NO_SUGGESTIONS_MESSAGE = nls.localize(1468, "No suggestions."); }
81
+ static { this.LOADING_MESSAGE = nls.localize(1468, "Loading..."); }
82
+ static { this.NO_SUGGESTIONS_MESSAGE = nls.localize(1469, "No suggestions."); }
84
83
  constructor(editor, _storageService, _contextKeyService, _themeService, instantiationService) {
85
84
  this.editor = editor;
86
85
  this._storageService = _storageService;
@@ -167,7 +166,7 @@ let SuggestWidget = class SuggestWidget {
167
166
  multipleSelectionSupport: false,
168
167
  accessibilityProvider: {
169
168
  getRole: () => isWindows ? 'listitem' : 'option',
170
- getWidgetAriaLabel: () => nls.localize(1469, "Suggest"),
169
+ getWidgetAriaLabel: () => nls.localize(1470, "Suggest"),
171
170
  getWidgetRole: () => 'listbox',
172
171
  getAriaLabel: (item) => {
173
172
  let label = item.textLabel;
@@ -175,24 +174,24 @@ let SuggestWidget = class SuggestWidget {
175
174
  if (typeof item.completion.label !== 'string') {
176
175
  const { detail, description } = item.completion.label;
177
176
  if (detail && description) {
178
- label = nls.localize(1470, '{0} {1}, {2}, {3}', label, detail, description, kindLabel);
177
+ label = nls.localize(1471, '{0} {1}, {2}, {3}', label, detail, description, kindLabel);
179
178
  }
180
179
  else if (detail) {
181
- label = nls.localize(1471, '{0} {1}, {2}', label, detail, kindLabel);
180
+ label = nls.localize(1472, '{0} {1}, {2}', label, detail, kindLabel);
182
181
  }
183
182
  else if (description) {
184
- label = nls.localize(1472, '{0}, {1}, {2}', label, description, kindLabel);
183
+ label = nls.localize(1473, '{0}, {1}, {2}', label, description, kindLabel);
185
184
  }
186
185
  }
187
186
  else {
188
- label = nls.localize(1473, '{0}, {1}', label, kindLabel);
187
+ label = nls.localize(1474, '{0}, {1}', label, kindLabel);
189
188
  }
190
189
  if (!item.isResolved || !this._isDetailsVisible()) {
191
190
  return label;
192
191
  }
193
192
  const { documentation, detail } = item.completion;
194
193
  const docs = strings.format('{0}{1}', detail || '', documentation ? (typeof documentation === 'string' ? documentation : documentation.value) : '');
195
- return nls.localize(1474, "{0}, docs: {1}", label, docs);
194
+ return nls.localize(1475, "{0}, docs: {1}", label, docs);
196
195
  },
197
196
  }
198
197
  });
@@ -203,8 +202,6 @@ let SuggestWidget = class SuggestWidget {
203
202
  this._status = instantiationService.createInstance(SuggestWidgetStatus, this.element.domNode, suggestWidgetStatusbarMenu);
204
203
  const applyStatusBarStyle = () => this.element.domNode.classList.toggle('with-status-bar', this.editor.getOption(134 /* EditorOption.suggest */).showStatusBar);
205
204
  applyStatusBarStyle();
206
- this._disposables.add(_themeService.onDidColorThemeChange(t => this._onThemeChange(t)));
207
- this._onThemeChange(_themeService.getColorTheme());
208
205
  this._disposables.add(this._list.onMouseDown(e => this._onListMouseDownOrTap(e)));
209
206
  this._disposables.add(this._list.onTap(e => this._onListMouseDownOrTap(e)));
210
207
  this._disposables.add(this._list.onDidChangeSelection(e => this._onListSelection(e)));
@@ -279,9 +276,6 @@ let SuggestWidget = class SuggestWidget {
279
276
  this.editor.focus();
280
277
  }
281
278
  }
282
- _onThemeChange(theme) {
283
- this._details.widget.borderWidth = isHighContrast(theme.type) ? 2 : 1;
284
- }
285
279
  _onListFocus(e) {
286
280
  if (this._ignoreFocusEvents) {
287
281
  return;
@@ -775,7 +769,7 @@ let SuggestWidget = class SuggestWidget {
775
769
  const fontInfo = this.editor.getOption(59 /* EditorOption.fontInfo */);
776
770
  const itemHeight = clamp(this.editor.getOption(136 /* EditorOption.suggestLineHeight */) || fontInfo.lineHeight, 8, 1000);
777
771
  const statusBarHeight = !this.editor.getOption(134 /* EditorOption.suggest */).showStatusBar || this._state === 2 /* State.Empty */ || this._state === 1 /* State.Loading */ ? 0 : itemHeight;
778
- const borderWidth = this._details.widget.borderWidth;
772
+ const borderWidth = this._details.widget.getLayoutInfo().borderWidth;
779
773
  const borderHeight = 2 * borderWidth;
780
774
  return {
781
775
  itemHeight,