@codingame/monaco-vscode-api 1.83.1 → 1.83.3-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/extensions.d.ts +3 -3
  2. package/extensions.js +31 -33
  3. package/l10n.d.ts +4 -0
  4. package/l10n.js +10 -0
  5. package/missing-services.js +4 -2
  6. package/monaco-editor-treemending.patch +12268 -1070
  7. package/monaco-treemending.js +8 -2
  8. package/package.json +8 -1
  9. package/service-override/extensions.js +2 -2
  10. package/service-override/layout.js +2 -2
  11. package/tools/l10n.js +177 -0
  12. package/tools.js +22 -1
  13. package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
  14. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +2 -2
  15. package/vscode/src/vs/base/common/date.js +55 -55
  16. package/vscode/src/vs/base/common/jsonErrorMessages.js +10 -10
  17. package/vscode/src/vs/base/common/tfIdf.js +137 -0
  18. package/vscode/src/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +23 -0
  19. package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +115 -0
  20. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +112 -0
  21. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +334 -0
  22. package/vscode/src/vs/platform/dialogs/common/dialogs.js +10 -14
  23. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -0
  24. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +2 -2
  25. package/vscode/src/vs/platform/files/common/fileService.js +28 -37
  26. package/vscode/src/vs/platform/files/common/files.js +6 -6
  27. package/vscode/src/vs/platform/files/common/io.js +2 -2
  28. package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +3 -9
  29. package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +300 -0
  30. package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +59 -0
  31. package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +212 -0
  32. package/vscode/src/vs/platform/request/common/request.js +2 -2
  33. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -63
  34. package/vscode/src/vs/platform/workspaces/common/workspaces.js +15 -15
  35. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +13 -32
  36. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
  37. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +50 -52
  38. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +58 -69
  39. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +4 -5
  40. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +38 -50
  41. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +23 -23
  42. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +21 -53
  43. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
  44. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +4 -5
  45. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +6 -2
  46. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +4 -2
  47. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
  48. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -12
  49. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +15 -9
  50. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +16 -20
  51. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +6 -28
  52. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +60 -0
  53. package/vscode/src/vs/workbench/api/common/extHostChat.js +3 -3
  54. package/vscode/src/vs/workbench/api/common/extHostCommands.js +59 -65
  55. package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.js +8 -8
  56. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +2 -6
  57. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  58. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +150 -222
  59. package/vscode/src/vs/workbench/api/common/extHostLogService.js +2 -2
  60. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +3 -3
  61. package/vscode/src/vs/workbench/api/common/extHostProgress.js +2 -6
  62. package/vscode/src/vs/workbench/api/common/extHostSCM.js +54 -58
  63. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +3 -7
  64. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -6
  65. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +2 -6
  66. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +55 -57
  67. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +28 -28
  68. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +265 -277
  69. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +2 -7
  70. package/vscode/src/vs/workbench/api/common/extensionHostMain.js +17 -19
  71. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +9 -34
  72. package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +5 -5
  73. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +898 -68
  74. package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +7 -7
  75. package/vscode/src/vs/workbench/browser/actions/windowActions.js +32 -38
  76. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +103 -13
  77. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +2 -2
  78. package/vscode/src/vs/workbench/browser/editor.js +3 -3
  79. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +12 -27
  80. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +12 -12
  81. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +2 -7
  82. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +4 -7
  83. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +42 -90
  84. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +140 -272
  85. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +115 -148
  86. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +21 -33
  87. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +7 -19
  88. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -26
  89. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +7 -17
  90. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +60 -81
  91. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +27 -33
  92. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -2
  93. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +19 -32
  94. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +2 -2
  95. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +8 -8
  96. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +69 -34
  97. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +58 -34
  98. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +2 -2
  99. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +3 -9
  100. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
  101. package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +7 -11
  102. package/vscode/src/vs/workbench/browser/quickaccess.js +7 -3
  103. package/vscode/src/vs/workbench/browser/workbench.contribution.js +186 -683
  104. package/vscode/src/vs/workbench/common/configuration.js +12 -15
  105. package/vscode/src/vs/workbench/common/contextkeys.js +272 -90
  106. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +2 -2
  107. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +2 -7
  108. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +2 -6
  109. package/vscode/src/vs/workbench/common/editor.js +5 -5
  110. package/vscode/src/vs/workbench/common/theme.js +137 -527
  111. package/vscode/src/vs/workbench/common/views.js +4 -8
  112. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +15 -55
  113. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +3 -8
  114. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +22 -60
  115. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +9 -15
  116. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +18 -48
  117. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +58 -74
  118. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +2 -0
  119. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +5 -10
  120. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +5 -13
  121. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +8 -27
  122. package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +5 -17
  123. package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -15
  124. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +7 -20
  125. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
  126. package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +63 -216
  127. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +4 -7
  128. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +5 -8
  129. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +8 -11
  130. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +5 -15
  131. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +3 -3
  132. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +5 -5
  133. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +3 -6
  134. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +3 -6
  135. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +10 -9
  136. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +6 -15
  137. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +5 -20
  138. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +3 -10
  139. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
  140. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -20
  141. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +9 -3
  142. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +4 -13
  143. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +19 -19
  144. package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +26 -77
  145. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -17
  146. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +31 -40
  147. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +10 -29
  148. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +10 -10
  149. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +8 -8
  150. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +25 -21
  151. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +2 -2
  152. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -4
  153. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +20 -20
  154. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +56 -98
  155. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +2 -2
  156. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +96 -180
  157. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -79
  158. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -15
  159. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -8
  160. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +56 -19
  161. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +76 -230
  162. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -5
  163. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -103
  164. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +228 -99
  165. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  166. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +5 -9
  167. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +5 -5
  168. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +15 -35
  169. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +5 -8
  170. package/vscode/src/vs/workbench/contrib/files/common/files.js +27 -48
  171. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -6
  172. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  173. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +5 -8
  174. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +112 -52
  175. package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +1 -1
  176. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +2 -2
  177. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +30 -96
  178. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +73 -126
  179. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +3 -3
  180. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +42 -0
  181. package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +23 -29
  182. package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +3 -3
  183. package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +13 -16
  184. package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +15 -34
  185. package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +12 -17
  186. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
  187. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +26 -75
  188. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +4 -19
  189. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +4 -4
  190. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +60 -99
  191. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -14
  192. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +26 -13
  193. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +88 -96
  194. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +5 -17
  195. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -28
  196. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +21 -78
  197. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +21 -53
  198. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  199. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +2 -5
  200. package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +113 -348
  201. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +2 -5
  202. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +31 -1
  203. package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +1 -4
  204. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  205. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +2 -2
  206. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +2 -5
  207. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +4 -4
  208. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +27 -29
  209. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +104 -141
  210. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +35 -39
  211. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +25 -25
  212. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +80 -296
  213. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +6 -21
  214. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +3 -6
  215. package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +24 -81
  216. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +2 -2
  217. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +11 -17
  218. package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +30 -32
  219. package/vscode/src/vs/workbench/services/language/common/languageService.js +23 -98
  220. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +83 -95
  221. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -5
  222. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +11 -23
  223. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +32 -32
  224. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +2 -7
  225. package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +2 -2
  226. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +16 -53
  227. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +50 -1
  228. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +25 -99
  229. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +16 -16
  230. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -3
  231. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +15 -3
  232. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +2 -2
  233. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +32 -42
@@ -1,5 +1,5 @@
1
1
  import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
2
- import { localize } from 'monaco-editor/esm/vs/nls.js';
2
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
3
3
  import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
4
4
  import { Disposable, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
5
5
  import { getOrSet, SetMap } from 'monaco-editor/esm/vs/base/common/map.js';
@@ -8,7 +8,7 @@ import { flatten } from 'monaco-editor/esm/vs/base/common/arrays.js';
8
8
  import { mixin } from 'monaco-editor/esm/vs/base/common/objects.js';
9
9
  import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
10
10
  import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
11
- const defaultViewIcon = registerIcon('default-view-icon', Codicon.window, ( localize('defaultViewIcon', 'Default view icon.')));
11
+ const defaultViewIcon = registerIcon('default-view-icon', Codicon.window, localizeWithPath('vs/workbench/common/views', 'defaultViewIcon', 'Default view icon.'));
12
12
  var Extensions;
13
13
  ( (function(Extensions) {
14
14
  Extensions.ViewContainersRegistry = 'workbench.registry.view.containers';
@@ -193,7 +193,7 @@ class ViewsRegistry extends Disposable {
193
193
  }
194
194
  for (const viewDescriptor of viewDescriptors) {
195
195
  if (this.getView(viewDescriptor.id) !== null) {
196
- throw new Error(localize('duplicateId', "A view with id '{0}' is already registered", viewDescriptor.id));
196
+ throw new Error(localizeWithPath('vs/workbench/common/views', 'duplicateId', "A view with id '{0}' is already registered", viewDescriptor.id));
197
197
  }
198
198
  views.push(viewDescriptor);
199
199
  }
@@ -285,11 +285,7 @@ class ResolvableTreeItem {
285
285
  }
286
286
  class NoTreeViewError extends Error {
287
287
  constructor(treeViewId) {
288
- super(( localize(
289
- 'treeView.notRegistered',
290
- 'No tree view with id \'{0}\' registered.',
291
- treeViewId
292
- )));
288
+ super(localizeWithPath('vs/workbench/common/views', 'treeView.notRegistered', 'No tree view with id \'{0}\' registered.', treeViewId));
293
289
  this.name = 'NoTreeViewError';
294
290
  }
295
291
  static is(err) {
@@ -1,4 +1,4 @@
1
- import { localize } from 'monaco-editor/esm/vs/nls.js';
1
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
2
2
  import { Extensions } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
3
3
  import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
4
4
  import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
@@ -17,84 +17,51 @@ const baseProperty = {
17
17
  };
18
18
  const configuration = {
19
19
  id: 'accessibility',
20
- title: ( localize('accessibilityConfigurationTitle', "Accessibility")),
20
+ title: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'accessibilityConfigurationTitle', "Accessibility"),
21
21
  type: 'object',
22
22
  properties: {
23
23
  ["accessibility.verbosity.terminal" ]: {
24
- description: ( localize(
25
- 'verbosity.terminal.description',
26
- 'Provide information about how to access the terminal accessibility help menu when the terminal is focused'
27
- )),
24
+ description: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'verbosity.terminal.description', 'Provide information about how to access the terminal accessibility help menu when the terminal is focused'),
28
25
  ...baseProperty
29
26
  },
30
27
  ["accessibility.verbosity.diffEditor" ]: {
31
- description: ( localize(
32
- 'verbosity.diffEditor.description',
33
- 'Provide information about how to navigate changes in the diff editor when it is focused'
34
- )),
28
+ description: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'verbosity.diffEditor.description', 'Provide information about how to navigate changes in the diff editor when it is focused'),
35
29
  ...baseProperty
36
30
  },
37
31
  ["accessibility.verbosity.panelChat" ]: {
38
- description: ( localize(
39
- 'verbosity.chat.description',
40
- 'Provide information about how to access the chat help menu when the chat input is focused'
41
- )),
32
+ description: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'verbosity.chat.description', 'Provide information about how to access the chat help menu when the chat input is focused'),
42
33
  ...baseProperty
43
34
  },
44
35
  ["accessibility.verbosity.inlineChat" ]: {
45
- description: ( localize(
46
- 'verbosity.interactiveEditor.description',
47
- 'Provide information about how to access the inline editor chat accessibility help menu and alert with hints which describe how to use the feature when the input is focused'
48
- )),
36
+ description: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'verbosity.interactiveEditor.description', 'Provide information about how to access the inline editor chat accessibility help menu and alert with hints which describe how to use the feature when the input is focused'),
49
37
  ...baseProperty
50
38
  },
51
39
  ["accessibility.verbosity.inlineCompletions" ]: {
52
- description: ( localize(
53
- 'verbosity.inlineCompletions.description',
54
- 'Provide information about how to access the inline completions hover and accessible view'
55
- )),
40
+ description: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'verbosity.inlineCompletions.description', 'Provide information about how to access the inline completions hover and accessible view'),
56
41
  ...baseProperty
57
42
  },
58
43
  ["accessibility.verbosity.keybindingsEditor" ]: {
59
- description: ( localize(
60
- 'verbosity.keybindingsEditor.description',
61
- 'Provide information about how to change a keybinding in the keybindings editor when a row is focused'
62
- )),
44
+ description: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'verbosity.keybindingsEditor.description', 'Provide information about how to change a keybinding in the keybindings editor when a row is focused'),
63
45
  ...baseProperty
64
46
  },
65
47
  ["accessibility.verbosity.notebook" ]: {
66
- description: ( localize(
67
- 'verbosity.notebook',
68
- 'Provide information about how to focus the cell container or inner editor when a notebook cell is focused.'
69
- )),
48
+ description: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'verbosity.notebook', 'Provide information about how to focus the cell container or inner editor when a notebook cell is focused.'),
70
49
  ...baseProperty
71
50
  },
72
51
  ["accessibility.verbosity.hover" ]: {
73
- description: ( localize(
74
- 'verbosity.hover',
75
- 'Provide information about how to open the hover in an accessible view.'
76
- )),
52
+ description: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'verbosity.hover', 'Provide information about how to open the hover in an accessible view.'),
77
53
  ...baseProperty
78
54
  },
79
55
  ["accessibility.verbosity.notification" ]: {
80
- description: ( localize(
81
- 'verbosity.notification',
82
- 'Provide information about how to open the notification in an accessible view.'
83
- )),
56
+ description: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'verbosity.notification', 'Provide information about how to open the notification in an accessible view.'),
84
57
  ...baseProperty
85
58
  },
86
59
  ["accessibility.verbosity.emptyEditorHint" ]: {
87
- description: ( localize(
88
- 'verbosity.emptyEditorHint',
89
- 'Provide information about relevant actions in an empty text editor.'
90
- )),
60
+ description: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'verbosity.emptyEditorHint', 'Provide information about relevant actions in an empty text editor.'),
91
61
  ...baseProperty
92
62
  },
93
63
  ["accessibility.verbosity.comments" ]: {
94
- description: ( localize(
95
- 'verbosity.comments',
96
- 'Provide information about actions that can be taken in the comment widget or in a file which contains comments.'
97
- )),
64
+ description: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'verbosity.comments', 'Provide information about actions that can be taken in the comment widget or in a file which contains comments.'),
98
65
  ...baseProperty
99
66
  }
100
67
  }
@@ -106,21 +73,14 @@ function registerAccessibilityConfiguration() {
106
73
  ...workbenchConfigurationNodeBase,
107
74
  properties: {
108
75
  ["accessibility.dimUnfocused.enabled" ]: {
109
- description: ( localize(
110
- 'dimUnfocusedEnabled',
111
- 'Whether to dim unfocused editors and terminals, which makes it more clear where typed input will go to. This works with the majority of editors with the notable exceptions of those that utilize iframes like notebooks and extension webview editors.'
112
- )),
76
+ description: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'dimUnfocusedEnabled', 'Whether to dim unfocused editors and terminals, which makes it more clear where typed input will go to. This works with the majority of editors with the notable exceptions of those that utilize iframes like notebooks and extension webview editors.'),
113
77
  type: 'boolean',
114
78
  default: false,
115
79
  tags: ['accessibility'],
116
80
  scope: 1 ,
117
81
  },
118
82
  ["accessibility.dimUnfocused.opacity" ]: {
119
- markdownDescription: ( localize(
120
- 'dimUnfocusedOpacity',
121
- 'The opacity fraction (0.2 to 1.0) to use for unfocused editors and terminals. This will only take effect when {0} is enabled.',
122
- `\`#${"accessibility.dimUnfocused.enabled" }#\``
123
- )),
83
+ markdownDescription: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityConfiguration', 'dimUnfocusedOpacity', 'The opacity fraction (0.2 to 1.0) to use for unfocused editors and terminals. This will only take effect when {0} is enabled.', `\`#${"accessibility.dimUnfocused.enabled" }#\``),
124
84
  type: 'number',
125
85
  minimum: 0.2 ,
126
86
  maximum: 1 ,
@@ -3,7 +3,7 @@ import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
3
3
  import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
4
4
  import { AccessibilityHelpNLS } from 'monaco-editor/esm/vs/editor/common/standaloneStrings.js';
5
5
  import { ToggleTabFocusModeAction } from 'monaco-editor/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js';
6
- import { localize } from 'monaco-editor/esm/vs/nls.js';
6
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
7
7
  import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
8
8
  import { accessibleViewIsShown } from './accessibilityConfiguration.js';
9
9
  import * as strings from 'monaco-editor/esm/vs/base/common/strings.js';
@@ -202,12 +202,7 @@ class NotificationAccessibleViewContribution extends Disposable {
202
202
  notification.onDidClose(() => accessibleViewService.next());
203
203
  accessibleViewService.show({
204
204
  provideContent: () => {
205
- return notification.source ? ( localize(
206
- 'notification.accessibleViewSrc',
207
- '{0} Source: {1}',
208
- message,
209
- notification.source
210
- )) : ( localize('notification.accessibleView', '{0}', message));
205
+ return notification.source ? localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityContributions', 'notification.accessibleViewSrc', '{0} Source: {1}', message, notification.source) : localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityContributions', 'notification.accessibleView', '{0}', message);
211
206
  },
212
207
  onClose() {
213
208
  focusList();
@@ -266,7 +261,7 @@ function getActionsFromNotification(notification) {
266
261
  manageExtension.class = ThemeIcon.asClassName(Codicon.gear);
267
262
  }
268
263
  if (actions) {
269
- actions.push({ id: 'clearNotification', label: ( localize('clearNotification', "Clear Notification")), tooltip: ( localize('clearNotification', "Clear Notification")), run: () => notification.close(), enabled: true, class: ThemeIcon.asClassName(Codicon.clearAll) });
264
+ actions.push({ id: 'clearNotification', label: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityContributions', 'clearNotification', "Clear Notification"), tooltip: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibilityContributions', 'clearNotification', "Clear Notification"), run: () => notification.close(), enabled: true, class: ThemeIcon.asClassName(Codicon.clearAll) });
270
265
  }
271
266
  return actions;
272
267
  }
@@ -14,7 +14,7 @@ import { Position } from 'monaco-editor/esm/vs/editor/common/core/position.js';
14
14
  import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
15
15
  import { AccessibilityHelpNLS } from 'monaco-editor/esm/vs/editor/common/standaloneStrings.js';
16
16
  import { CodeActionController } from 'monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionController.js';
17
- import { localize } from 'monaco-editor/esm/vs/nls.js';
17
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
18
18
  import { IAccessibilityService } from 'monaco-editor/esm/vs/platform/accessibility/common/accessibility.js';
19
19
  import { createAndFillInActionBarActions } from 'monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.js';
20
20
  import { WorkbenchToolBar } from 'monaco-editor/esm/vs/platform/actions/browser/toolbar.js';
@@ -199,7 +199,7 @@ let AccessibleView = class AccessibleView extends Disposable {
199
199
  }
200
200
  }
201
201
  if (label) {
202
- symbols.push({ markdownToParse: label, label: ( localize('symbolLabel', "({0}) {1}", token.type, label)), ariaLabel: ( localize('symbolLabelAria', "({0}) {1}", token.type, label)), firstListItem });
202
+ symbols.push({ markdownToParse: label, label: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'symbolLabel', "({0}) {1}", token.type, label), ariaLabel: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'symbolLabelAria', "({0}) {1}", token.type, label), firstListItem });
203
203
  firstListItem = undefined;
204
204
  }
205
205
  }
@@ -230,11 +230,7 @@ let AccessibleView = class AccessibleView extends Disposable {
230
230
  return;
231
231
  }
232
232
  this._configurationService.updateValue(this._currentProvider?.verbositySettingKey, false);
233
- alert(( localize(
234
- 'disableAccessibilityHelp',
235
- '{0} accessibility verbosity is now disabled',
236
- this._currentProvider.verbositySettingKey
237
- )));
233
+ alert(localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'disableAccessibilityHelp', '{0} accessibility verbosity is now disabled', this._currentProvider.verbositySettingKey));
238
234
  }
239
235
  _updateContextKeys(provider, shown) {
240
236
  if (provider.options.type === "help" ) {
@@ -261,10 +257,7 @@ let AccessibleView = class AccessibleView extends Disposable {
261
257
  this._accessibleViewCurrentProviderId.set(provider.verbositySettingKey.replaceAll('accessibility.verbosity.', ''));
262
258
  }
263
259
  const value = this._configurationService.getValue(provider.verbositySettingKey);
264
- const readMoreLink = provider.options.readMoreUrl ? ( localize(
265
- "openDoc",
266
- "\n\nOpen a browser window with more information related to accessibility (H)."
267
- )) : '';
260
+ const readMoreLink = provider.options.readMoreUrl ? localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', "openDoc", "\n\nOpen a browser window with more information related to accessibility (H).") : '';
268
261
  let disableHelpHint = '';
269
262
  if (provider.options.type === "help" && !!value) {
270
263
  disableHelpHint = this._getDisableVerbosityHint(provider.verbositySettingKey);
@@ -285,7 +278,7 @@ let AccessibleView = class AccessibleView extends Disposable {
285
278
  }
286
279
  }
287
280
  const verbose = this._configurationService.getValue(provider.verbositySettingKey);
288
- const exitThisDialogHint = verbose && !provider.options.positionBottom ? ( localize('exit', '\n\nExit this dialog (Escape).')) : '';
281
+ const exitThisDialogHint = verbose && !provider.options.positionBottom ? localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'exit', '\n\nExit this dialog (Escape).') : '';
289
282
  this._currentContent = message + provider.provideContent() + readMoreLink + disableHelpHint + exitThisDialogHint;
290
283
  this._updateContextKeys(provider, true);
291
284
  this._getTextModel(( URI.from(
@@ -305,21 +298,15 @@ let AccessibleView = class AccessibleView extends Disposable {
305
298
  const verbose = this._configurationService.getValue(provider.verbositySettingKey);
306
299
  const hasActions = this._accessibleViewSupportsNavigation.get() || this._accessibleViewVerbosityEnabled.get() || this._accessibleViewGoToSymbolSupported.get() || this._currentProvider?.actions;
307
300
  if (verbose && !showAccessibleViewHelp && hasActions) {
308
- actionsHint = provider.options.positionBottom ? ( localize(
309
- 'ariaAccessibleViewActionsBottom',
310
- 'Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog.'
311
- )) : ( localize(
312
- 'ariaAccessibleViewActions',
313
- 'Explore actions such as disabling this hint (Shift+Tab).'
314
- ));
301
+ actionsHint = provider.options.positionBottom ? localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'ariaAccessibleViewActionsBottom', 'Explore actions such as disabling this hint (Shift+Tab), use Escape to exit this dialog.') : localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'ariaAccessibleViewActions', 'Explore actions such as disabling this hint (Shift+Tab).');
315
302
  }
316
- let ariaLabel = provider.options.type === "help" ? ( localize('accessibility-help', "Accessibility Help")) : ( localize('accessible-view', "Accessible View"));
303
+ let ariaLabel = provider.options.type === "help" ? localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'accessibility-help', "Accessibility Help") : localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'accessible-view', "Accessible View");
317
304
  this._title.textContent = ariaLabel;
318
305
  if (actionsHint && provider.options.type === "view" ) {
319
- ariaLabel = ( localize('accessible-view-hint', "Accessible View, {0}", actionsHint));
306
+ ariaLabel = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'accessible-view-hint', "Accessible View, {0}", actionsHint);
320
307
  }
321
308
  else if (actionsHint) {
322
- ariaLabel = ( localize('accessibility-help-hint', "Accessibility Help, {0}", actionsHint));
309
+ ariaLabel = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'accessibility-help-hint', "Accessibility Help, {0}", actionsHint);
323
310
  }
324
311
  this._editorWidget.updateOptions({ ariaLabel });
325
312
  this._editorWidget.focus();
@@ -369,7 +356,7 @@ let AccessibleView = class AccessibleView extends Disposable {
369
356
  return disposableStore;
370
357
  }
371
358
  _updateToolbar(providedActions, type) {
372
- this._toolbar.setAriaLabel(type === "help" ? ( localize('accessibleHelpToolbar', 'Accessibility Help')) : ( localize('accessibleViewToolbar', "Accessible View")));
359
+ this._toolbar.setAriaLabel(type === "help" ? localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'accessibleHelpToolbar', 'Accessibility Help') : localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'accessibleViewToolbar', "Accessible View"));
373
360
  const menuActions = [];
374
361
  const toolbarMenu = this._register(this._menuService.createMenu(MenuId.AccessibleView, this._contextKeyService));
375
362
  createAndFillInActionBarActions(toolbarMenu, {}, menuActions);
@@ -423,8 +410,8 @@ let AccessibleView = class AccessibleView extends Disposable {
423
410
  _getAccessibleViewHelpDialogContent(providerHasSymbols) {
424
411
  const navigationHint = this._getNavigationHint();
425
412
  const goToSymbolHint = this._getGoToSymbolHint(providerHasSymbols);
426
- const toolbarHint = ( localize('toolbar', "Navigate to the toolbar (Shift+Tab))."));
427
- let hint = ( localize('intro', "In the accessible view, you can:\n"));
413
+ const toolbarHint = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'toolbar', "Navigate to the toolbar (Shift+Tab)).");
414
+ let hint = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'intro', "In the accessible view, you can:\n");
428
415
  if (navigationHint) {
429
416
  hint += ' - ' + navigationHint + '\n';
430
417
  }
@@ -441,18 +428,10 @@ let AccessibleView = class AccessibleView extends Disposable {
441
428
  const nextKeybinding = this._keybindingService.lookupKeybinding("editor.action.accessibleViewNext" )?.getAriaLabel();
442
429
  const previousKeybinding = this._keybindingService.lookupKeybinding("editor.action.accessibleViewPrevious" )?.getAriaLabel();
443
430
  if (nextKeybinding && previousKeybinding) {
444
- hint = ( localize(
445
- 'accessibleViewNextPreviousHint',
446
- "Show the next ({0}) or previous ({1}) item.",
447
- nextKeybinding,
448
- previousKeybinding
449
- ));
431
+ hint = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'accessibleViewNextPreviousHint', "Show the next ({0}) or previous ({1}) item.", nextKeybinding, previousKeybinding);
450
432
  }
451
433
  else {
452
- hint = ( localize(
453
- 'chatAccessibleViewNextPreviousHintNoKb',
454
- "Show the next or previous item by configuring keybindings for the Show Next & Previous in Accessible View commands."
455
- ));
434
+ hint = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'chatAccessibleViewNextPreviousHintNoKb', "Show the next or previous item by configuring keybindings for the Show Next & Previous in Accessible View commands.");
456
435
  }
457
436
  return hint;
458
437
  }
@@ -463,17 +442,10 @@ let AccessibleView = class AccessibleView extends Disposable {
463
442
  let hint = '';
464
443
  const disableKeybinding = this._keybindingService.lookupKeybinding("editor.action.accessibleViewDisableHint" , this._contextKeyService)?.getAriaLabel();
465
444
  if (disableKeybinding) {
466
- hint = ( localize(
467
- 'acessibleViewDisableHint',
468
- "\n\nDisable accessibility verbosity for this feature ({0}).",
469
- disableKeybinding
470
- ));
445
+ hint = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'acessibleViewDisableHint', "\n\nDisable accessibility verbosity for this feature ({0}).", disableKeybinding);
471
446
  }
472
447
  else {
473
- hint = ( localize(
474
- 'accessibleViewDisableHintNoKb',
475
- "\n\nAdd a keybinding for the command Disable Accessible View Hint, which disables accessibility verbosity for this feature.s"
476
- ));
448
+ hint = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'accessibleViewDisableHintNoKb', "\n\nAdd a keybinding for the command Disable Accessible View Hint, which disables accessibility verbosity for this feature.s");
477
449
  }
478
450
  return hint;
479
451
  }
@@ -482,13 +454,10 @@ let AccessibleView = class AccessibleView extends Disposable {
482
454
  let goToSymbolHint = '';
483
455
  if (providerHasSymbols) {
484
456
  if (goToSymbolKb) {
485
- goToSymbolHint = ( localize('goToSymbolHint', 'Go to a symbol ({0})', goToSymbolKb));
457
+ goToSymbolHint = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'goToSymbolHint', 'Go to a symbol ({0})', goToSymbolKb);
486
458
  }
487
459
  else {
488
- goToSymbolHint = ( localize(
489
- 'goToSymbolHintNoKb',
490
- 'To go to a symbol, configure a keybinding for the command Go To Symbol in Accessible View'
491
- ));
460
+ goToSymbolHint = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'goToSymbolHintNoKb', 'To go to a symbol, configure a keybinding for the command Go To Symbol in Accessible View');
492
461
  }
493
462
  }
494
463
  return goToSymbolHint;
@@ -535,17 +504,10 @@ let AccessibleViewService = class AccessibleViewService extends Disposable {
535
504
  const keybinding = this._keybindingService.lookupKeybinding("editor.action.accessibleView" )?.getAriaLabel();
536
505
  let hint = null;
537
506
  if (keybinding) {
538
- hint = ( localize(
539
- 'acessibleViewHint',
540
- "Inspect this in the accessible view with {0}",
541
- keybinding
542
- ));
507
+ hint = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'acessibleViewHint', "Inspect this in the accessible view with {0}", keybinding);
543
508
  }
544
509
  else {
545
- hint = ( localize(
546
- 'acessibleViewHintNoKbEither',
547
- "Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
548
- ));
510
+ hint = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'acessibleViewHintNoKbEither', "Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding.");
549
511
  }
550
512
  return hint;
551
513
  }
@@ -582,8 +544,8 @@ let AccessibleViewSymbolQuickPick = class AccessibleViewSymbolQuickPick {
582
544
  }
583
545
  show(provider) {
584
546
  const quickPick = this._quickInputService.createQuickPick();
585
- quickPick.placeholder = ( localize('accessibleViewSymbolQuickPickPlaceholder', "Type to search symbols"));
586
- quickPick.title = ( localize('accessibleViewSymbolQuickPickTitle', "Go to Symbol Accessible View"));
547
+ quickPick.placeholder = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'accessibleViewSymbolQuickPickPlaceholder', "Type to search symbols");
548
+ quickPick.title = localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleView', 'accessibleViewSymbolQuickPickTitle', "Go to Symbol Accessible View");
587
549
  const symbols = this._accessibleView.getSymbols();
588
550
  if (!symbols) {
589
551
  return;
@@ -1,7 +1,7 @@
1
1
  import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
2
2
  import { MultiCommand } from 'monaco-editor/esm/vs/editor/browser/editorExtensions.js';
3
- import { localize } from 'monaco-editor/esm/vs/nls.js';
4
- import { registerAction2, Action2, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
3
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
4
+ import { registerAction2, MenuId, Action2 } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
5
5
  import { ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
6
6
  import { accessibleViewIsShown, accessibleViewSupportsNavigation, accessibilityHelpIsShown, accessibleViewGoToSymbolSupported, accessibleViewVerbosityEnabled, accessibleViewCurrentProviderId } from './accessibilityConfiguration.js';
7
7
  import { IAccessibleViewService } from './accessibleView.js';
@@ -35,7 +35,7 @@ class AccessibleViewNextAction extends Action2 {
35
35
  }
36
36
  ],
37
37
  icon: Codicon.arrowDown,
38
- title: ( localize('editor.action.accessibleViewNext', "Show Next in Accessible View"))
38
+ title: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleViewActions', 'editor.action.accessibleViewNext', "Show Next in Accessible View")
39
39
  });
40
40
  }
41
41
  run(accessor) {
@@ -60,7 +60,7 @@ class AccessibleViewPreviousAction extends Action2 {
60
60
  when: ( ContextKeyExpr.and(accessibleViewIsShown, accessibleViewSupportsNavigation)),
61
61
  }
62
62
  ],
63
- title: ( localize('editor.action.accessibleViewPrevious', "Show Previous in Accessible View"))
63
+ title: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleViewActions', 'editor.action.accessibleViewPrevious', "Show Previous in Accessible View")
64
64
  });
65
65
  }
66
66
  run(accessor) {
@@ -86,10 +86,7 @@ class AccessibleViewGoToSymbolAction extends Action2 {
86
86
  when: ( ContextKeyExpr.and(( ContextKeyExpr.or(accessibleViewIsShown, accessibilityHelpIsShown)), accessibleViewGoToSymbolSupported)),
87
87
  }
88
88
  ],
89
- title: ( localize(
90
- 'editor.action.accessibleViewGoToSymbol',
91
- "Go To Symbol in Accessible View"
92
- ))
89
+ title: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleViewActions', 'editor.action.accessibleViewGoToSymbol', "Go To Symbol in Accessible View")
93
90
  });
94
91
  }
95
92
  run(accessor) {
@@ -115,7 +112,7 @@ const AccessibilityHelpAction = registerCommand(( new MultiCommand({
115
112
  menuOpts: [{
116
113
  menuId: MenuId.CommandPalette,
117
114
  group: '',
118
- title: ( localize('editor.action.accessibilityHelp', "Open Accessibility Help")),
115
+ title: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleViewActions', 'editor.action.accessibilityHelp', "Open Accessibility Help"),
119
116
  order: 1
120
117
  }],
121
118
  })));
@@ -133,7 +130,7 @@ const AccessibleViewAction = registerCommand(( new MultiCommand({
133
130
  menuOpts: [{
134
131
  menuId: MenuId.CommandPalette,
135
132
  group: '',
136
- title: ( localize('editor.action.accessibleView', "Open Accessible View")),
133
+ title: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleViewActions', 'editor.action.accessibleView', "Open Accessible View"),
137
134
  order: 1
138
135
  }],
139
136
  })));
@@ -155,7 +152,7 @@ class AccessibleViewDisableHintAction extends Action2 {
155
152
  when: ( ContextKeyExpr.and(( ContextKeyExpr.or(accessibleViewIsShown, accessibilityHelpIsShown)), accessibleViewVerbosityEnabled)),
156
153
  }
157
154
  ],
158
- title: ( localize('editor.action.accessibleViewDisableHint', "Disable Accessible View Hint"))
155
+ title: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleViewActions', 'editor.action.accessibleViewDisableHint', "Disable Accessible View Hint")
159
156
  });
160
157
  }
161
158
  run(accessor) {
@@ -189,10 +186,7 @@ class AccessibleViewAcceptInlineCompletionAction extends Action2 {
189
186
  ))))
190
187
  }
191
188
  ],
192
- title: ( localize(
193
- 'editor.action.accessibleViewAcceptInlineCompletionAction',
194
- "Accept Inline Completion"
195
- ))
189
+ title: localizeWithPath('vs/workbench/contrib/accessibility/browser/accessibleViewActions', 'editor.action.accessibleViewAcceptInlineCompletionAction', "Accept Inline Completion")
196
190
  });
197
191
  }
198
192
  async run(accessor) {
@@ -5,7 +5,7 @@ import { LinkedList } from 'monaco-editor/esm/vs/base/common/linkedList.js';
5
5
  import { ResourceMap, ResourceSet } from 'monaco-editor/esm/vs/base/common/map.js';
6
6
  import { isCodeEditor, isDiffEditor } from 'monaco-editor/esm/vs/editor/browser/editorBrowser.js';
7
7
  import { ResourceTextEdit, ResourceFileEdit } from 'monaco-editor/esm/vs/editor/browser/services/bulkEditService.js';
8
- import { localize } from 'monaco-editor/esm/vs/nls.js';
8
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
9
9
  import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
10
10
  import { Extensions } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
11
11
  import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
@@ -63,29 +63,18 @@ let BulkEdit = class BulkEdit {
63
63
  }
64
64
  }
65
65
  if (this._edits.length === 0) {
66
- return ( localize('summary.0', "Made no edits"));
66
+ return localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'summary.0', "Made no edits");
67
67
  }
68
68
  else if (otherResources.size === 0) {
69
69
  if (textEditCount > 1 && textEditResources.size > 1) {
70
- return ( localize(
71
- 'summary.nm',
72
- "Made {0} text edits in {1} files",
73
- textEditCount,
74
- textEditResources.size
75
- ));
70
+ return localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'summary.nm', "Made {0} text edits in {1} files", textEditCount, textEditResources.size);
76
71
  }
77
72
  else {
78
- return ( localize('summary.n0', "Made {0} text edits in one file", textEditCount));
73
+ return localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'summary.n0', "Made {0} text edits in one file", textEditCount);
79
74
  }
80
75
  }
81
76
  else {
82
- return ( localize(
83
- 'summary.textFiles',
84
- "Made {0} text edits in {1} files, also created or deleted {2} files",
85
- textEditCount,
86
- textEditResources.size,
87
- otherResources.size
88
- ));
77
+ return localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'summary.textFiles', "Made {0} text edits in {1} files, also created or deleted {2} files", textEditCount, textEditResources.size, otherResources.size);
89
78
  }
90
79
  }
91
80
  async perform() {
@@ -129,12 +118,12 @@ let BulkEdit = class BulkEdit {
129
118
  }
130
119
  async _performFileEdits(edits, undoRedoGroup, undoRedoSource, confirmBeforeUndo, progress) {
131
120
  this._logService.debug('_performFileEdits', JSON.stringify(edits));
132
- const model = this._instaService.createInstance(BulkFileEdits, this._label || ( localize('workspaceEdit', "Workspace Edit")), this._code || 'undoredo.workspaceEdit', undoRedoGroup, undoRedoSource, confirmBeforeUndo, progress, this._token, edits);
121
+ const model = this._instaService.createInstance(BulkFileEdits, this._label || localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'workspaceEdit', "Workspace Edit"), this._code || 'undoredo.workspaceEdit', undoRedoGroup, undoRedoSource, confirmBeforeUndo, progress, this._token, edits);
133
122
  return await model.apply();
134
123
  }
135
124
  async _performTextEdits(edits, undoRedoGroup, undoRedoSource, progress) {
136
125
  this._logService.debug('_performTextEdits', JSON.stringify(edits));
137
- const model = this._instaService.createInstance(BulkTextEdits, this._label || ( localize('workspaceEdit', "Workspace Edit")), this._code || 'undoredo.workspaceEdit', this._editor, undoRedoGroup, undoRedoSource, progress, this._token, edits);
126
+ const model = this._instaService.createInstance(BulkTextEdits, this._label || localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'workspaceEdit', "Workspace Edit"), this._code || 'undoredo.workspaceEdit', this._editor, undoRedoGroup, undoRedoSource, progress, this._token, edits);
138
127
  return await model.apply();
139
128
  }
140
129
  async _performCellEdits(edits, undoRedoGroup, undoRedoSource, progress) {
@@ -172,7 +161,7 @@ let BulkEditService = class BulkEditService {
172
161
  async apply(editsIn, options) {
173
162
  let edits = liftEdits(Array.isArray(editsIn) ? editsIn : editsIn.edits);
174
163
  if (edits.length === 0) {
175
- return { ariaSummary: ( localize('nothing', "Made no edits")), isApplied: false };
164
+ return { ariaSummary: localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'nothing', "Made no edits"), isApplied: false };
176
165
  }
177
166
  if (this._previewHandler && (options?.showPreview || ( edits.some(value => value.metadata?.needsConfirmation)))) {
178
167
  edits = await this._previewHandler(edits, options);
@@ -243,41 +232,25 @@ let BulkEditService = class BulkEditService {
243
232
  let primaryButton;
244
233
  switch (reason) {
245
234
  case 1 :
246
- message = ( localize('closeTheWindow.message', "Are you sure you want to close the window?"));
247
- primaryButton = ( localize(
248
- { key: 'closeTheWindow', comment: ['&& denotes a mnemonic'] },
249
- "&&Close Window"
250
- ));
235
+ message = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'closeTheWindow.message', "Are you sure you want to close the window?");
236
+ primaryButton = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', { key: 'closeTheWindow', comment: ['&& denotes a mnemonic'] }, "&&Close Window");
251
237
  break;
252
238
  case 4 :
253
- message = ( localize(
254
- 'changeWorkspace.message',
255
- "Are you sure you want to change the workspace?"
256
- ));
257
- primaryButton = ( localize(
258
- { key: 'changeWorkspace', comment: ['&& denotes a mnemonic'] },
259
- "Change &&Workspace"
260
- ));
239
+ message = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'changeWorkspace.message', "Are you sure you want to change the workspace?");
240
+ primaryButton = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', { key: 'changeWorkspace', comment: ['&& denotes a mnemonic'] }, "Change &&Workspace");
261
241
  break;
262
242
  case 3 :
263
- message = ( localize('reloadTheWindow.message', "Are you sure you want to reload the window?"));
264
- primaryButton = ( localize(
265
- { key: 'reloadTheWindow', comment: ['&& denotes a mnemonic'] },
266
- "&&Reload Window"
267
- ));
243
+ message = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'reloadTheWindow.message', "Are you sure you want to reload the window?");
244
+ primaryButton = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', { key: 'reloadTheWindow', comment: ['&& denotes a mnemonic'] }, "&&Reload Window");
268
245
  break;
269
246
  default:
270
- message = ( localize('quit.message', "Are you sure you want to quit?"));
271
- primaryButton = ( localize({ key: 'quit', comment: ['&& denotes a mnemonic'] }, "&&Quit"));
247
+ message = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'quit.message', "Are you sure you want to quit?");
248
+ primaryButton = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', { key: 'quit', comment: ['&& denotes a mnemonic'] }, "&&Quit");
272
249
  break;
273
250
  }
274
251
  const result = await this._dialogService.confirm({
275
252
  message,
276
- detail: ( localize(
277
- 'areYouSureQuiteBulkEdit.detail',
278
- "'{0}' is in progress.",
279
- label || ( localize('fileOperation', "File operation"))
280
- )),
253
+ detail: localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'areYouSureQuiteBulkEdit.detail', "'{0}' is in progress.", label || localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'fileOperation', "File operation")),
281
254
  primaryButton
282
255
  });
283
256
  return !result.confirmed;
@@ -297,10 +270,7 @@ const autoSaveSetting = 'files.refactoring.autoSave';
297
270
  id: 'files',
298
271
  properties: {
299
272
  [autoSaveSetting]: {
300
- description: ( localize(
301
- 'refactoring.autoSave',
302
- "Controls if files that were part of a refactoring are saved automatically"
303
- )),
273
+ description: localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'refactoring.autoSave', "Controls if files that were part of a refactoring are saved automatically"),
304
274
  default: true,
305
275
  type: 'boolean'
306
276
  }