@codingame/monaco-vscode-api 15.0.0 → 15.0.2

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 (198) hide show
  1. package/missing-services.js +53 -4
  2. package/package.json +8 -8
  3. package/services.js +5 -5
  4. package/vscode/src/vs/editor/browser/observableCodeEditor.js +1 -1
  5. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +2 -4
  6. package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +125 -0
  7. package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +2 -3
  8. package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +2 -3
  9. package/vscode/src/vs/editor/common/services/languageFeaturesService.js +2 -3
  10. package/vscode/src/vs/editor/common/services/semanticTokensStylingService.js +2 -3
  11. package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.d.ts +15 -0
  12. package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +93 -0
  13. package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js +2 -3
  14. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.d.ts +7 -0
  15. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +4 -4
  16. package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.d.ts +45 -0
  17. package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +215 -0
  18. package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.service.d.ts +1 -1
  19. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.d.ts +26 -0
  20. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +178 -0
  21. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  22. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
  23. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  24. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  25. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
  26. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
  27. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  28. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  29. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  30. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +1 -2
  31. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  32. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +20 -20
  33. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
  34. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
  35. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  36. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
  37. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +5 -5
  38. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/indicatorView.js +3 -3
  39. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +1 -1
  40. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +18 -18
  41. package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  42. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  43. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
  44. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  45. package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
  46. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
  47. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  48. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  49. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  50. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.d.ts +6 -0
  51. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -22
  52. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  53. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  54. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
  55. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
  56. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  57. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  58. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  59. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  60. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  61. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
  62. package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.d.ts +67 -0
  63. package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +232 -0
  64. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
  65. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  66. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  67. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  68. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  69. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  70. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  71. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  72. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  73. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  74. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  75. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
  76. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +12 -8
  77. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +54 -54
  78. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  79. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +255 -13
  80. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +26 -0
  81. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +230 -0
  82. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  83. package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
  84. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  85. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  86. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
  87. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  88. package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
  89. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  90. package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
  91. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  92. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
  93. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  94. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
  95. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
  96. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  97. package/vscode/src/vs/platform/files/common/files.js +6 -6
  98. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  99. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  100. package/vscode/src/vs/platform/list/browser/listService.js +27 -27
  101. package/vscode/src/vs/platform/log/common/log.js +6 -6
  102. package/vscode/src/vs/platform/markers/common/markers.js +6 -6
  103. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
  104. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
  105. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
  106. package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
  107. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  108. package/vscode/src/vs/platform/request/common/request.js +18 -18
  109. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
  110. package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
  111. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
  112. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  113. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +94 -94
  114. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +45 -45
  115. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  116. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
  117. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  118. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
  119. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  120. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  121. package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
  122. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +22 -23
  123. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
  124. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  125. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  126. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  127. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  128. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
  129. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
  130. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  131. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  132. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  133. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
  134. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
  135. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
  136. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  137. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
  138. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
  139. package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
  140. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  141. package/vscode/src/vs/workbench/common/configuration.js +10 -10
  142. package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
  143. package/vscode/src/vs/workbench/common/editor/editorOptions.d.ts +3 -0
  144. package/vscode/src/vs/workbench/common/editor/editorOptions.js +52 -0
  145. package/vscode/src/vs/workbench/common/editor.js +4 -4
  146. package/vscode/src/vs/workbench/common/theme.js +160 -160
  147. package/vscode/src/vs/workbench/common/views.js +4 -4
  148. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +141 -141
  149. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
  150. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +5 -5
  151. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +32 -32
  152. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +3 -3
  153. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
  154. package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +1 -1
  155. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
  156. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  157. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  158. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  159. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  160. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  161. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  162. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
  163. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  164. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  165. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  166. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  167. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
  168. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  169. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
  170. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  171. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  172. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  173. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  174. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  175. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  176. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  177. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  178. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  179. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  180. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  181. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  182. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  183. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
  184. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
  185. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  186. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  187. package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.d.ts +13 -0
  188. package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +87 -0
  189. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  190. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +83 -83
  191. package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
  192. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  193. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  194. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  195. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  196. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
  197. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  198. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +12 -12
@@ -0,0 +1,230 @@
1
+
2
+ import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
3
+ import { addDisposableListener, EventType, trackFocus, $ } from '../../../base/browser/dom.js';
4
+ import { ActionBar } from '../../../base/browser/ui/actionbar/actionbar.js';
5
+ import { KeyMod as KeyMod$1, KeyCode } from '../../../base/common/keyCodes.js';
6
+ import { Disposable, MutableDisposable, DisposableStore } from '../../../base/common/lifecycle.js';
7
+ import './actionWidget.css.js';
8
+ import { localize, localize2 } from '../../../nls.js';
9
+ import { ActionList, acceptSelectedActionCommand, previewSelectedActionCommand } from './actionList.js';
10
+ import { registerAction2, Action2 } from '../../actions/common/actions.js';
11
+ import { RawContextKey } from '../../contextkey/common/contextkey.js';
12
+ import { IContextKeyService } from '../../contextkey/common/contextkey.service.js';
13
+ import { IContextViewService } from '../../contextview/browser/contextView.service.js';
14
+ import '../../instantiation/common/extensions.js';
15
+ import { IInstantiationService } from '../../instantiation/common/instantiation.js';
16
+ import { KeybindingWeight } from '../../keybinding/common/keybindingsRegistry.js';
17
+ import { registerColor } from '../../theme/common/colorUtils.js';
18
+ import '../../theme/common/colors/baseColors.js';
19
+ import '../../theme/common/colors/chartsColors.js';
20
+ import '../../theme/common/colors/editorColors.js';
21
+ import { inputActiveOptionBackground } from '../../theme/common/colors/inputColors.js';
22
+ import '../../theme/common/colors/listColors.js';
23
+ import '../../theme/common/colors/menuColors.js';
24
+ import '../../theme/common/colors/minimapColors.js';
25
+ import '../../theme/common/colors/miscColors.js';
26
+ import '../../theme/common/colors/quickpickColors.js';
27
+ import '../../theme/common/colors/searchColors.js';
28
+ import { IActionWidgetService } from './actionWidget.service.js';
29
+
30
+ registerColor('actionBar.toggledBackground', inputActiveOptionBackground, ( localize(1655, 'Background color for toggled action items in action bar.')));
31
+ const ActionWidgetContextKeys = {
32
+ Visible: ( new RawContextKey('codeActionMenuVisible', false, ( localize(1656, "Whether the action widget list is visible"))))
33
+ };
34
+ let ActionWidgetService = class ActionWidgetService extends Disposable {
35
+ get isVisible() {
36
+ return ActionWidgetContextKeys.Visible.getValue(this._contextKeyService) || false;
37
+ }
38
+ constructor(_contextViewService, _contextKeyService, _instantiationService) {
39
+ super();
40
+ this._contextViewService = _contextViewService;
41
+ this._contextKeyService = _contextKeyService;
42
+ this._instantiationService = _instantiationService;
43
+ this._list = this._register(( new MutableDisposable()));
44
+ }
45
+ show(user, supportsPreview, items, delegate, anchor, container, actionBarActions) {
46
+ const visibleContext = ActionWidgetContextKeys.Visible.bindTo(this._contextKeyService);
47
+ const list = this._instantiationService.createInstance(ActionList, user, supportsPreview, items, delegate);
48
+ this._contextViewService.showContextView({
49
+ getAnchor: () => anchor,
50
+ render: (container) => {
51
+ visibleContext.set(true);
52
+ return this._renderWidget(container, list, actionBarActions ?? []);
53
+ },
54
+ onHide: (didCancel) => {
55
+ visibleContext.reset();
56
+ this._onWidgetClosed(didCancel);
57
+ },
58
+ }, container, false);
59
+ }
60
+ acceptSelected(preview) {
61
+ this._list.value?.acceptSelected(preview);
62
+ }
63
+ focusPrevious() {
64
+ this._list?.value?.focusPrevious();
65
+ }
66
+ focusNext() {
67
+ this._list?.value?.focusNext();
68
+ }
69
+ hide(didCancel) {
70
+ this._list.value?.hide(didCancel);
71
+ this._list.clear();
72
+ }
73
+ clear() {
74
+ this._list.clear();
75
+ }
76
+ _renderWidget(element, list, actionBarActions) {
77
+ const widget = document.createElement('div');
78
+ widget.classList.add('action-widget');
79
+ element.appendChild(widget);
80
+ this._list.value = list;
81
+ if (this._list.value) {
82
+ widget.appendChild(this._list.value.domNode);
83
+ }
84
+ else {
85
+ throw ( new Error('List has no value'));
86
+ }
87
+ const renderDisposables = ( new DisposableStore());
88
+ const menuBlock = document.createElement('div');
89
+ const block = element.appendChild(menuBlock);
90
+ block.classList.add('context-view-block');
91
+ renderDisposables.add(addDisposableListener(block, EventType.MOUSE_DOWN, e => e.stopPropagation()));
92
+ const pointerBlockDiv = document.createElement('div');
93
+ const pointerBlock = element.appendChild(pointerBlockDiv);
94
+ pointerBlock.classList.add('context-view-pointerBlock');
95
+ renderDisposables.add(addDisposableListener(pointerBlock, EventType.POINTER_MOVE, () => pointerBlock.remove()));
96
+ renderDisposables.add(addDisposableListener(pointerBlock, EventType.MOUSE_DOWN, () => pointerBlock.remove()));
97
+ let actionBarWidth = 0;
98
+ if (actionBarActions.length) {
99
+ const actionBar = this._createActionBar('.action-widget-action-bar', actionBarActions);
100
+ if (actionBar) {
101
+ widget.appendChild(actionBar.getContainer().parentElement);
102
+ renderDisposables.add(actionBar);
103
+ actionBarWidth = actionBar.getContainer().offsetWidth;
104
+ }
105
+ }
106
+ const width = this._list.value?.layout(actionBarWidth);
107
+ widget.style.width = `${width}px`;
108
+ const focusTracker = renderDisposables.add(trackFocus(element));
109
+ renderDisposables.add(focusTracker.onDidBlur(() => this.hide(true)));
110
+ return renderDisposables;
111
+ }
112
+ _createActionBar(className, actions) {
113
+ if (!actions.length) {
114
+ return undefined;
115
+ }
116
+ const container = $(className);
117
+ const actionBar = ( new ActionBar(container));
118
+ actionBar.push(actions, { icon: false, label: true });
119
+ return actionBar;
120
+ }
121
+ _onWidgetClosed(didCancel) {
122
+ this._list.value?.hide(didCancel);
123
+ }
124
+ };
125
+ ActionWidgetService = ( __decorate([
126
+ ( __param(0, IContextViewService)),
127
+ ( __param(1, IContextKeyService)),
128
+ ( __param(2, IInstantiationService))
129
+ ], ActionWidgetService));
130
+ const weight = KeybindingWeight.EditorContrib + 1000;
131
+ registerAction2(class extends Action2 {
132
+ constructor() {
133
+ super({
134
+ id: 'hideCodeActionWidget',
135
+ title: ( localize2(1657, "Hide action widget")),
136
+ precondition: ActionWidgetContextKeys.Visible,
137
+ keybinding: {
138
+ weight,
139
+ primary: KeyCode.Escape,
140
+ secondary: [KeyMod$1.Shift | KeyCode.Escape]
141
+ },
142
+ });
143
+ }
144
+ run(accessor) {
145
+ accessor.get(IActionWidgetService).hide(true);
146
+ }
147
+ });
148
+ registerAction2(class extends Action2 {
149
+ constructor() {
150
+ super({
151
+ id: 'selectPrevCodeAction',
152
+ title: ( localize2(1658, "Select previous action")),
153
+ precondition: ActionWidgetContextKeys.Visible,
154
+ keybinding: {
155
+ weight,
156
+ primary: KeyCode.UpArrow,
157
+ secondary: [KeyMod$1.CtrlCmd | KeyCode.UpArrow],
158
+ mac: { primary: KeyCode.UpArrow, secondary: [KeyMod$1.CtrlCmd | KeyCode.UpArrow, KeyMod$1.WinCtrl | KeyCode.KeyP] },
159
+ }
160
+ });
161
+ }
162
+ run(accessor) {
163
+ const widgetService = accessor.get(IActionWidgetService);
164
+ if (widgetService instanceof ActionWidgetService) {
165
+ widgetService.focusPrevious();
166
+ }
167
+ }
168
+ });
169
+ registerAction2(class extends Action2 {
170
+ constructor() {
171
+ super({
172
+ id: 'selectNextCodeAction',
173
+ title: ( localize2(1659, "Select next action")),
174
+ precondition: ActionWidgetContextKeys.Visible,
175
+ keybinding: {
176
+ weight,
177
+ primary: KeyCode.DownArrow,
178
+ secondary: [KeyMod$1.CtrlCmd | KeyCode.DownArrow],
179
+ mac: { primary: KeyCode.DownArrow, secondary: [KeyMod$1.CtrlCmd | KeyCode.DownArrow, KeyMod$1.WinCtrl | KeyCode.KeyN] }
180
+ }
181
+ });
182
+ }
183
+ run(accessor) {
184
+ const widgetService = accessor.get(IActionWidgetService);
185
+ if (widgetService instanceof ActionWidgetService) {
186
+ widgetService.focusNext();
187
+ }
188
+ }
189
+ });
190
+ registerAction2(class extends Action2 {
191
+ constructor() {
192
+ super({
193
+ id: acceptSelectedActionCommand,
194
+ title: ( localize2(1660, "Accept selected action")),
195
+ precondition: ActionWidgetContextKeys.Visible,
196
+ keybinding: {
197
+ weight,
198
+ primary: KeyCode.Enter,
199
+ secondary: [KeyMod$1.CtrlCmd | KeyCode.Period],
200
+ }
201
+ });
202
+ }
203
+ run(accessor) {
204
+ const widgetService = accessor.get(IActionWidgetService);
205
+ if (widgetService instanceof ActionWidgetService) {
206
+ widgetService.acceptSelected();
207
+ }
208
+ }
209
+ });
210
+ registerAction2(class extends Action2 {
211
+ constructor() {
212
+ super({
213
+ id: previewSelectedActionCommand,
214
+ title: ( localize2(1661, "Preview selected action")),
215
+ precondition: ActionWidgetContextKeys.Visible,
216
+ keybinding: {
217
+ weight,
218
+ primary: KeyMod$1.CtrlCmd | KeyCode.Enter,
219
+ }
220
+ });
221
+ }
222
+ run(accessor) {
223
+ const widgetService = accessor.get(IActionWidgetService);
224
+ if (widgetService instanceof ActionWidgetService) {
225
+ widgetService.acceptSelected(true);
226
+ }
227
+ }
228
+ });
229
+
230
+ export { ActionWidgetService };
@@ -184,17 +184,17 @@ let MenuEntryActionViewItem = class MenuEntryActionViewItem extends ActionViewIt
184
184
  const keybindingLabel = keybinding && keybinding.getLabel();
185
185
  const tooltip = this._commandAction.tooltip || this._commandAction.label;
186
186
  let title = keybindingLabel
187
- ? ( localize(1651, "{0} ({1})", tooltip, keybindingLabel))
187
+ ? ( localize(1665, "{0} ({1})", tooltip, keybindingLabel))
188
188
  : tooltip;
189
189
  if (!this._wantsAltCommand && this._menuItemAction.alt?.enabled) {
190
190
  const altTooltip = this._menuItemAction.alt.tooltip || this._menuItemAction.alt.label;
191
191
  const altKeybinding = this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id, this._contextKeyService);
192
192
  const altKeybindingLabel = altKeybinding && altKeybinding.getLabel();
193
193
  const altTitleSection = altKeybindingLabel
194
- ? ( localize(1651, "{0} ({1})", altTooltip, altKeybindingLabel))
194
+ ? ( localize(1665, "{0} ({1})", altTooltip, altKeybindingLabel))
195
195
  : altTooltip;
196
196
  title = ( localize(
197
- 1652,
197
+ 1666,
198
198
  "{0}\n[{1}] {2}",
199
199
  title,
200
200
  UILabelProvider.modifierLabels[OS].altKey,
@@ -270,10 +270,10 @@ class TextOnlyMenuEntryActionViewItem extends MenuEntryActionViewItem {
270
270
  if (this.label) {
271
271
  const kb2 = TextOnlyMenuEntryActionViewItem._symbolPrintEnter(kb);
272
272
  if (this._options?.conversational) {
273
- this.label.textContent = ( localize(1653, '{1} to {0}', this._action.label, kb2));
273
+ this.label.textContent = ( localize(1667, '{1} to {0}', this._action.label, kb2));
274
274
  }
275
275
  else {
276
- this.label.textContent = ( localize(1654, '{0} ({1})', this._action.label, kb2));
276
+ this.label.textContent = ( localize(1668, '{0} ({1})', this._action.label, kb2));
277
277
  }
278
278
  }
279
279
  }
@@ -144,7 +144,7 @@ let WorkbenchToolBar = class WorkbenchToolBar extends ToolBar {
144
144
  else {
145
145
  primaryActions.push(toAction({
146
146
  id: 'label',
147
- label: ( localize(1655, "Hide")),
147
+ label: ( localize(1669, "Hide")),
148
148
  enabled: false,
149
149
  run() { }
150
150
  }));
@@ -158,7 +158,7 @@ let WorkbenchToolBar = class WorkbenchToolBar extends ToolBar {
158
158
  actions.push(( new Separator()));
159
159
  actions.push(toAction({
160
160
  id: 'resetThisMenu',
161
- label: ( localize(1656, "Reset Menu")),
161
+ label: ( localize(1670, "Reset Menu")),
162
162
  run: () => this._menuService.resetHiddenStates(menuIds)
163
163
  }));
164
164
  }
@@ -9,7 +9,7 @@ class MenuHiddenStatesReset extends Action2 {
9
9
  constructor() {
10
10
  super({
11
11
  id: 'menu.resetHiddenStates',
12
- title: ( localize2(1657, "Reset All Menus")),
12
+ title: ( localize2(1671, "Reset All Menus")),
13
13
  category: Categories.View,
14
14
  f1: true
15
15
  });
@@ -408,7 +408,7 @@ function createMenuHide(menu, command, states) {
408
408
  const title = typeof command.title === 'string' ? command.title : command.title.value;
409
409
  const hide = toAction({
410
410
  id: `hide/${menu.id}/${id}`,
411
- label: ( localize(1658, 'Hide \'{0}\'', title)),
411
+ label: ( localize(1672, 'Hide \'{0}\'', title)),
412
412
  run() { states.updateHidden(menu, id, true); }
413
413
  });
414
414
  const toggle = toAction({
@@ -426,7 +426,7 @@ function createMenuHide(menu, command, states) {
426
426
  function createConfigureKeybindingAction(commandService, keybindingService, commandId, when = undefined, enabled = true) {
427
427
  return toAction({
428
428
  id: `configureKeybinding/${commandId}`,
429
- label: ( localize(1659, "Configure Keybinding")),
429
+ label: ( localize(1673, "Configure Keybinding")),
430
430
  enabled,
431
431
  run() {
432
432
  const hasKeybinding = !!keybindingService.lookupKeybinding(commandId);
@@ -46,7 +46,7 @@ class ConfigurationRegistry {
46
46
  this.configurationDefaultsOverrides = ( new Map());
47
47
  this.defaultLanguageConfigurationOverridesNode = {
48
48
  id: 'defaultOverrides',
49
- title: ( localize(1660, "Default Language Configuration Overrides")),
49
+ title: ( localize(1674, "Default Language Configuration Overrides")),
50
50
  properties: {}
51
51
  };
52
52
  this.configurationContributors = [this.defaultLanguageConfigurationOverridesNode];
@@ -194,7 +194,7 @@ class ConfigurationRegistry {
194
194
  type: 'object',
195
195
  default: newDefaultOverride.value,
196
196
  description: ( localize(
197
- 1661,
197
+ 1675,
198
198
  "Configure settings to be overridden for the {0} language.",
199
199
  getLanguageTagSettingPlainKey(key)
200
200
  )),
@@ -460,8 +460,8 @@ class ConfigurationRegistry {
460
460
  const overrideIdentifierProperty = `[${overrideIdentifier}]`;
461
461
  const resourceLanguagePropertiesSchema = {
462
462
  type: 'object',
463
- description: ( localize(1662, "Configure editor settings to be overridden for a language.")),
464
- errorMessage: ( localize(1663, "This setting does not support per-language configuration.")),
463
+ description: ( localize(1676, "Configure editor settings to be overridden for a language.")),
464
+ errorMessage: ( localize(1677, "This setting does not support per-language configuration.")),
465
465
  $ref: resourceLanguageSettingsSchemaId,
466
466
  };
467
467
  this.updatePropertyDefaultValue(overrideIdentifierProperty, resourceLanguagePropertiesSchema);
@@ -477,8 +477,8 @@ class ConfigurationRegistry {
477
477
  registerOverridePropertyPatternKey() {
478
478
  const resourceLanguagePropertiesSchema = {
479
479
  type: 'object',
480
- description: ( localize(1662, "Configure editor settings to be overridden for a language.")),
481
- errorMessage: ( localize(1663, "This setting does not support per-language configuration.")),
480
+ description: ( localize(1676, "Configure editor settings to be overridden for a language.")),
481
+ errorMessage: ( localize(1677, "This setting does not support per-language configuration.")),
482
482
  $ref: resourceLanguageSettingsSchemaId,
483
483
  };
484
484
  allSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
@@ -554,25 +554,25 @@ const configurationRegistry = ( new ConfigurationRegistry());
554
554
  Registry.add(Extensions.Configuration, configurationRegistry);
555
555
  function validateProperty(property, schema) {
556
556
  if (!property.trim()) {
557
- return localize(1664, "Cannot register an empty property");
557
+ return localize(1678, "Cannot register an empty property");
558
558
  }
559
559
  if (OVERRIDE_PROPERTY_REGEX.test(property)) {
560
560
  return localize(
561
- 1665,
561
+ 1679,
562
562
  "Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",
563
563
  property
564
564
  );
565
565
  }
566
566
  if (configurationRegistry.getConfigurationProperties()[property] !== undefined) {
567
567
  return localize(
568
- 1666,
568
+ 1680,
569
569
  "Cannot register '{0}'. This property is already registered.",
570
570
  property
571
571
  );
572
572
  }
573
573
  if (schema.policy?.name && configurationRegistry.getPolicyConfigurations().get(schema.policy?.name) !== undefined) {
574
574
  return localize(
575
- 1667,
575
+ 1681,
576
576
  "Cannot register '{0}'. The associated policy {1} is already registered with {2}.",
577
577
  property,
578
578
  schema.policy?.name,
@@ -487,7 +487,7 @@ CommandsRegistry.registerCommand({
487
487
  return [...RawContextKey.all()].sort((a, b) => a.key.localeCompare(b.key));
488
488
  },
489
489
  metadata: {
490
- description: ( localize(1668, "A command that returns information about context keys")),
490
+ description: ( localize(1682, "A command that returns information about context keys")),
491
491
  args: []
492
492
  }
493
493
  });
@@ -47,17 +47,17 @@ var ContextKeyExprType;
47
47
  const defaultConfig = {
48
48
  regexParsingWithErrorRecovery: true
49
49
  };
50
- const errorEmptyString = ( localize(1669, "Empty context key expression"));
50
+ const errorEmptyString = ( localize(1683, "Empty context key expression"));
51
51
  const hintEmptyString = ( localize(
52
- 1670,
52
+ 1684,
53
53
  "Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."
54
54
  ));
55
- const errorNoInAfterNot = ( localize(1671, "'in' after 'not'."));
56
- const errorClosingParenthesis = ( localize(1672, "closing parenthesis ')'"));
57
- const errorUnexpectedToken = ( localize(1673, "Unexpected token"));
58
- const hintUnexpectedToken = ( localize(1674, "Did you forget to put && or || before the token?"));
59
- const errorUnexpectedEOF = ( localize(1675, "Unexpected end of expression"));
60
- const hintUnexpectedEOF = ( localize(1676, "Did you forget to put a context key?"));
55
+ const errorNoInAfterNot = ( localize(1685, "'in' after 'not'."));
56
+ const errorClosingParenthesis = ( localize(1686, "closing parenthesis ')'"));
57
+ const errorUnexpectedToken = ( localize(1687, "Unexpected token"));
58
+ const hintUnexpectedToken = ( localize(1688, "Did you forget to put && or || before the token?"));
59
+ const errorUnexpectedEOF = ( localize(1689, "Unexpected end of expression"));
60
+ const hintUnexpectedEOF = ( localize(1690, "Did you forget to put a context key?"));
61
61
  class Parser {
62
62
  static { this._parseError = ( new Error()); }
63
63
  get lexingErrors() {
@@ -369,7 +369,7 @@ class Parser {
369
369
  throw this._errExpectedButGot(message, this._peek());
370
370
  }
371
371
  _errExpectedButGot(expected, got, additionalInfo) {
372
- const message = ( localize(1677, "Expected: {0}\nReceived: '{1}'.", expected, Scanner.getLexeme(got)));
372
+ const message = ( localize(1691, "Expected: {0}\nReceived: '{1}'.", expected, Scanner.getLexeme(got)));
373
373
  const offset = got.offset;
374
374
  const lexeme = Scanner.getLexeme(got);
375
375
  this._parsingErrors.push({ message, offset, lexeme, additionalInfo });
@@ -447,8 +447,8 @@ function validateWhenClauses(whenClauses) {
447
447
  if (parser.lexingErrors.length > 0) {
448
448
  return (parser.lexingErrors.map((se) => ({
449
449
  errorMessage: se.additionalInfo ?
450
- ( localize(1678, "Unexpected token. Hint: {0}", se.additionalInfo)) :
451
- ( localize(1679, "Unexpected token.")),
450
+ ( localize(1692, "Unexpected token. Hint: {0}", se.additionalInfo)) :
451
+ ( localize(1693, "Unexpected token.")),
452
452
  offset: se.offset,
453
453
  length: se.lexeme.length,
454
454
  })));
@@ -3,16 +3,16 @@ import { isMacintosh, isLinux, isWindows, isWeb, isIOS, isMobile } from '../../.
3
3
  import { localize } from '../../../nls.js';
4
4
  import { RawContextKey } from './contextkey.js';
5
5
 
6
- const IsMacContext = ( new RawContextKey('isMac', isMacintosh, ( localize(1680, "Whether the operating system is macOS"))));
7
- const IsLinuxContext = ( new RawContextKey('isLinux', isLinux, ( localize(1681, "Whether the operating system is Linux"))));
8
- const IsWindowsContext = ( new RawContextKey('isWindows', isWindows, ( localize(1682, "Whether the operating system is Windows"))));
9
- const IsWebContext = ( new RawContextKey('isWeb', isWeb, ( localize(1683, "Whether the platform is a web browser"))));
10
- const IsMacNativeContext = ( new RawContextKey('isMacNative', isMacintosh && !isWeb, ( localize(1684, "Whether the operating system is macOS on a non-browser platform"))));
11
- const IsIOSContext = ( new RawContextKey('isIOS', isIOS, ( localize(1685, "Whether the operating system is iOS"))));
12
- const IsMobileContext = ( new RawContextKey('isMobile', isMobile, ( localize(1686, "Whether the platform is a mobile web browser"))));
6
+ const IsMacContext = ( new RawContextKey('isMac', isMacintosh, ( localize(1694, "Whether the operating system is macOS"))));
7
+ const IsLinuxContext = ( new RawContextKey('isLinux', isLinux, ( localize(1695, "Whether the operating system is Linux"))));
8
+ const IsWindowsContext = ( new RawContextKey('isWindows', isWindows, ( localize(1696, "Whether the operating system is Windows"))));
9
+ const IsWebContext = ( new RawContextKey('isWeb', isWeb, ( localize(1697, "Whether the platform is a web browser"))));
10
+ const IsMacNativeContext = ( new RawContextKey('isMacNative', isMacintosh && !isWeb, ( localize(1698, "Whether the operating system is macOS on a non-browser platform"))));
11
+ const IsIOSContext = ( new RawContextKey('isIOS', isIOS, ( localize(1699, "Whether the operating system is iOS"))));
12
+ const IsMobileContext = ( new RawContextKey('isMobile', isMobile, ( localize(1700, "Whether the platform is a mobile web browser"))));
13
13
  const IsDevelopmentContext = ( new RawContextKey('isDevelopment', false, true));
14
- const ProductQualityContext = ( new RawContextKey('productQualityType', '', ( localize(1687, "Quality type of VS Code"))));
14
+ const ProductQualityContext = ( new RawContextKey('productQualityType', '', ( localize(1701, "Quality type of VS Code"))));
15
15
  const InputFocusedContextKey = 'inputFocus';
16
- const InputFocusedContext = ( new RawContextKey(InputFocusedContextKey, false, ( localize(1688, "Whether keyboard focus is inside an input box"))));
16
+ const InputFocusedContext = ( new RawContextKey(InputFocusedContextKey, false, ( localize(1702, "Whether keyboard focus is inside an input box"))));
17
17
 
18
18
  export { InputFocusedContext, InputFocusedContextKey, IsDevelopmentContext, IsIOSContext, IsLinuxContext, IsMacContext, IsMacNativeContext, IsMobileContext, IsWebContext, IsWindowsContext, ProductQualityContext };
@@ -30,18 +30,18 @@ var TokenType;
30
30
  function hintDidYouMean(...meant) {
31
31
  switch (meant.length) {
32
32
  case 1:
33
- return localize(1689, "Did you mean {0}?", meant[0]);
33
+ return localize(1703, "Did you mean {0}?", meant[0]);
34
34
  case 2:
35
- return localize(1690, "Did you mean {0} or {1}?", meant[0], meant[1]);
35
+ return localize(1704, "Did you mean {0} or {1}?", meant[0], meant[1]);
36
36
  case 3:
37
- return localize(1691, "Did you mean {0}, {1} or {2}?", meant[0], meant[1], meant[2]);
37
+ return localize(1705, "Did you mean {0}, {1} or {2}?", meant[0], meant[1], meant[2]);
38
38
  default:
39
39
  return undefined;
40
40
  }
41
41
  }
42
- const hintDidYouForgetToOpenOrCloseQuote = ( localize(1692, "Did you forget to open or close the quote?"));
42
+ const hintDidYouForgetToOpenOrCloseQuote = ( localize(1706, "Did you forget to open or close the quote?"));
43
43
  const hintDidYouForgetToEscapeSlash = ( localize(
44
- 1693,
44
+ 1707,
45
45
  "Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/\'."
46
46
  ));
47
47
  class Scanner {
@@ -182,7 +182,7 @@ async function extractFileListData(accessor, files) {
182
182
  if (file) {
183
183
  if (file.size > 100 * ByteSize.MB) {
184
184
  dialogService.warn(( localize(
185
- 1699,
185
+ 1713,
186
186
  "File is too large to open as untitled editor. Please upload it first into the file explorer and then try again."
187
187
  )));
188
188
  continue;
@@ -252,8 +252,8 @@ async function computeSize(location, fileService) {
252
252
  }
253
253
  return stat.size ?? 0;
254
254
  }
255
- const ExtensionsLocalizedLabel = ( localize2(1720, "Extensions"));
256
- const PreferencesLocalizedLabel = ( localize2(1721, 'Preferences'));
255
+ const ExtensionsLocalizedLabel = ( localize2(1734, "Extensions"));
256
+ const PreferencesLocalizedLabel = ( localize2(1735, 'Preferences'));
257
257
  const UseUnpkgResourceApiConfigKey = 'extensions.gallery.useUnpkgResourceApi';
258
258
  const AllowedExtensionsConfigKey = 'extensions.allowed';
259
259
 
@@ -28,7 +28,7 @@ function replaceNLStrings(logger, extensionManifest, messages, originalMessages)
28
28
  const originalMessage = typeof original === 'string' ? original : original?.message;
29
29
  if (!message) {
30
30
  if (!originalMessage) {
31
- logger.warn(`[${extensionManifest.name}]: ${( localize(1753, "Couldn't find message for key {0}.", messageKey))}`);
31
+ logger.warn(`[${extensionManifest.name}]: ${( localize(1767, "Couldn't find message for key {0}.", messageKey))}`);
32
32
  }
33
33
  return;
34
34
  }
@@ -441,7 +441,7 @@ let ExtensionManifestTranslator = class ExtensionManifestTranslator extends Disp
441
441
  const reportErrors = (localized, errors) => {
442
442
  errors.forEach((error) => {
443
443
  this.logService.error(this.formatMessage(extensionLocation, ( localize(
444
- 1754,
444
+ 1768,
445
445
  "Failed to parse {0}: {1}.",
446
446
  localized?.path,
447
447
  getParseErrorMessage(error.error)
@@ -449,7 +449,7 @@ let ExtensionManifestTranslator = class ExtensionManifestTranslator extends Disp
449
449
  });
450
450
  };
451
451
  const reportInvalidFormat = (localized) => {
452
- this.logService.error(this.formatMessage(extensionLocation, ( localize(1755, "Invalid format {0}: JSON object expected.", localized?.path))));
452
+ this.logService.error(this.formatMessage(extensionLocation, ( localize(1769, "Invalid format {0}: JSON object expected.", localized?.path))));
453
453
  };
454
454
  const translationId = `${extensionManifest.publisher}.${extensionManifest.name}`;
455
455
  const translationPath = nlsConfiguration.translations[translationId];
@@ -519,7 +519,7 @@ let ExtensionManifestTranslator = class ExtensionManifestTranslator extends Disp
519
519
  if (errors.length > 0) {
520
520
  errors.forEach((error) => {
521
521
  this.logService.error(this.formatMessage(extensionLocation, ( localize(
522
- 1754,
522
+ 1768,
523
523
  "Failed to parse {0}: {1}.",
524
524
  localizedMessages.default?.path,
525
525
  getParseErrorMessage(error.error)
@@ -529,7 +529,7 @@ let ExtensionManifestTranslator = class ExtensionManifestTranslator extends Disp
529
529
  }
530
530
  else if (getNodeType(localizedMessages) !== 'object') {
531
531
  this.logService.error(this.formatMessage(extensionLocation, ( localize(
532
- 1755,
532
+ 1769,
533
533
  "Invalid format {0}: JSON object expected.",
534
534
  localizedMessages.default?.path
535
535
  ))));
@@ -782,7 +782,7 @@ let ExtensionsScanner = class ExtensionsScanner extends ExtensionManifestTransla
782
782
  }
783
783
  catch (error) {
784
784
  if (toFileOperationResult(error) !== FileOperationResult.FILE_NOT_FOUND) {
785
- this.logService.error(this.formatMessage(extensionLocation, ( localize(1756, "Cannot read file {0}: {1}.", manifestLocation.path, error.message))));
785
+ this.logService.error(this.formatMessage(extensionLocation, ( localize(1770, "Cannot read file {0}: {1}.", manifestLocation.path, error.message))));
786
786
  }
787
787
  throw error;
788
788
  }
@@ -795,7 +795,7 @@ let ExtensionsScanner = class ExtensionsScanner extends ExtensionManifestTransla
795
795
  parse(content, errors);
796
796
  for (const e of errors) {
797
797
  this.logService.error(this.formatMessage(extensionLocation, ( localize(
798
- 1757,
798
+ 1771,
799
799
  "Failed to parse {0}: [{1}, {2}] {3}.",
800
800
  manifestLocation.path,
801
801
  e.offset,
@@ -807,7 +807,7 @@ let ExtensionsScanner = class ExtensionsScanner extends ExtensionManifestTransla
807
807
  }
808
808
  if (getNodeType(manifest) !== 'object') {
809
809
  const errorMessage = this.formatMessage(extensionLocation, ( localize(
810
- 1758,
810
+ 1772,
811
811
  "Invalid manifest file {0}: Not a JSON object.",
812
812
  manifestLocation.path
813
813
  )));