@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
@@ -35,7 +35,7 @@ let RenameOperation = RenameOperation_1 = class RenameOperation {
35
35
  this._fileService = _fileService;
36
36
  }
37
37
  get uris() {
38
- return ( (this._edits.map(edit => [edit.newUri, edit.oldUri]))).flat();
38
+ return ( this._edits.map(edit => [edit.newUri, edit.oldUri])).flat();
39
39
  }
40
40
  async perform(token) {
41
41
  const moves = [];
@@ -47,32 +47,28 @@ let RenameOperation = RenameOperation_1 = class RenameOperation {
47
47
  file: { source: edit.oldUri, target: edit.newUri },
48
48
  overwrite: edit.options.overwrite
49
49
  });
50
- undoes.push(( (new RenameEdit(edit.oldUri, edit.newUri, edit.options))));
50
+ undoes.push(( new RenameEdit(edit.oldUri, edit.newUri, edit.options)));
51
51
  }
52
52
  }
53
53
  if (moves.length === 0) {
54
- return (
55
- (new Noop())
56
- );
54
+ return ( new Noop());
57
55
  }
58
56
  await this._workingCopyFileService.move(moves, token, this._undoRedoInfo);
59
- return (
60
- (new RenameOperation_1(
61
- undoes,
62
- { isUndoing: true },
63
- this._workingCopyFileService,
64
- this._fileService
65
- ))
66
- );
57
+ return ( new RenameOperation_1(
58
+ undoes,
59
+ { isUndoing: true },
60
+ this._workingCopyFileService,
61
+ this._fileService
62
+ ));
67
63
  }
68
64
  toString() {
69
- return `(rename ${( ( this._edits.map(edit => `${edit.oldUri} to ${edit.newUri}`))).join(', ')})`;
65
+ return `(rename ${( this._edits.map(edit => `${edit.oldUri} to ${edit.newUri}`)).join(', ')})`;
70
66
  }
71
67
  };
72
- RenameOperation = RenameOperation_1 = ( (__decorate([
73
- ( (__param(2, IWorkingCopyFileService))),
74
- ( (__param(3, IFileService)))
75
- ], RenameOperation)));
68
+ RenameOperation = RenameOperation_1 = ( __decorate([
69
+ ( __param(2, IWorkingCopyFileService)),
70
+ ( __param(3, IFileService))
71
+ ], RenameOperation));
76
72
  class CopyEdit {
77
73
  constructor(newUri, oldUri, options) {
78
74
  this.newUri = newUri;
@@ -90,7 +86,7 @@ let CopyOperation = class CopyOperation {
90
86
  this._instaService = _instaService;
91
87
  }
92
88
  get uris() {
93
- return ( (this._edits.map(edit => [edit.newUri, edit.oldUri]))).flat();
89
+ return ( this._edits.map(edit => [edit.newUri, edit.oldUri])).flat();
94
90
  }
95
91
  async perform(token) {
96
92
  const copies = [];
@@ -101,32 +97,30 @@ let CopyOperation = class CopyOperation {
101
97
  }
102
98
  }
103
99
  if (copies.length === 0) {
104
- return (
105
- (new Noop())
106
- );
100
+ return ( new Noop());
107
101
  }
108
102
  const stats = await this._workingCopyFileService.copy(copies, token, this._undoRedoInfo);
109
103
  const undoes = [];
110
104
  for (let i = 0; i < stats.length; i++) {
111
105
  const stat = stats[i];
112
106
  const edit = this._edits[i];
113
- undoes.push(( (new DeleteEdit(
107
+ undoes.push(( new DeleteEdit(
114
108
  stat.resource,
115
109
  { recursive: true, folder: this._edits[i].options.folder || stat.isDirectory, ...edit.options },
116
110
  false
117
- ))));
111
+ )));
118
112
  }
119
113
  return this._instaService.createInstance(DeleteOperation, undoes, { isUndoing: true });
120
114
  }
121
115
  toString() {
122
- return `(copy ${( ( this._edits.map(edit => `${edit.oldUri} to ${edit.newUri}`))).join(', ')})`;
116
+ return `(copy ${( this._edits.map(edit => `${edit.oldUri} to ${edit.newUri}`)).join(', ')})`;
123
117
  }
124
118
  };
125
- CopyOperation = ( (__decorate([
126
- ( (__param(2, IWorkingCopyFileService))),
127
- ( (__param(3, IFileService))),
128
- ( (__param(4, IInstantiationService)))
129
- ], CopyOperation)));
119
+ CopyOperation = ( __decorate([
120
+ ( __param(2, IWorkingCopyFileService)),
121
+ ( __param(3, IFileService)),
122
+ ( __param(4, IInstantiationService))
123
+ ], CopyOperation));
130
124
  class CreateEdit {
131
125
  constructor(newUri, options, contents) {
132
126
  this.newUri = newUri;
@@ -145,9 +139,7 @@ let CreateOperation = class CreateOperation {
145
139
  this._textFileService = _textFileService;
146
140
  }
147
141
  get uris() {
148
- return (
149
- (this._edits.map(edit => edit.newUri))
150
- );
142
+ return ( this._edits.map(edit => edit.newUri));
151
143
  }
152
144
  async perform(token) {
153
145
  const folderCreates = [];
@@ -167,29 +159,27 @@ let CreateOperation = class CreateOperation {
167
159
  const encodedReadable = typeof edit.contents !== 'undefined' ? edit.contents : await this._textFileService.getEncodedReadable(edit.newUri);
168
160
  fileCreates.push({ resource: edit.newUri, contents: encodedReadable, overwrite: edit.options.overwrite });
169
161
  }
170
- undoes.push(( (new DeleteEdit(edit.newUri, edit.options, !edit.options.folder && !edit.contents))));
162
+ undoes.push(( new DeleteEdit(edit.newUri, edit.options, !edit.options.folder && !edit.contents)));
171
163
  }
172
164
  if (folderCreates.length === 0 && fileCreates.length === 0) {
173
- return (
174
- (new Noop())
175
- );
165
+ return ( new Noop());
176
166
  }
177
167
  await this._workingCopyFileService.createFolder(folderCreates, token, this._undoRedoInfo);
178
168
  await this._workingCopyFileService.create(fileCreates, token, this._undoRedoInfo);
179
169
  return this._instaService.createInstance(DeleteOperation, undoes, { isUndoing: true });
180
170
  }
181
171
  toString() {
182
- return `(create ${( ( this._edits.map(
172
+ return `(create ${( this._edits.map(
183
173
  edit => edit.options.folder ? `folder ${edit.newUri}` : `file ${edit.newUri} with ${edit.contents?.byteLength || 0} bytes`
184
- ))).join(', ')})`;
174
+ )).join(', ')})`;
185
175
  }
186
176
  };
187
- CreateOperation = ( (__decorate([
188
- ( (__param(2, IFileService))),
189
- ( (__param(3, IWorkingCopyFileService))),
190
- ( (__param(4, IInstantiationService))),
191
- ( (__param(5, ITextFileService)))
192
- ], CreateOperation)));
177
+ CreateOperation = ( __decorate([
178
+ ( __param(2, IFileService)),
179
+ ( __param(3, IWorkingCopyFileService)),
180
+ ( __param(4, IInstantiationService)),
181
+ ( __param(5, ITextFileService))
182
+ ], CreateOperation));
193
183
  class DeleteEdit {
194
184
  constructor(oldUri, options, undoesCreate) {
195
185
  this.oldUri = oldUri;
@@ -209,9 +199,7 @@ let DeleteOperation = class DeleteOperation {
209
199
  this._logService = _logService;
210
200
  }
211
201
  get uris() {
212
- return (
213
- (this._edits.map(edit => edit.oldUri))
214
- );
202
+ return ( this._edits.map(edit => edit.oldUri));
215
203
  }
216
204
  async perform(token) {
217
205
  const deletes = [];
@@ -242,33 +230,29 @@ let DeleteOperation = class DeleteOperation {
242
230
  }
243
231
  }
244
232
  if (fileContent !== undefined) {
245
- undoes.push(( (new CreateEdit(edit.oldUri, edit.options, fileContent.value))));
233
+ undoes.push(( new CreateEdit(edit.oldUri, edit.options, fileContent.value)));
246
234
  }
247
235
  }
248
236
  if (deletes.length === 0) {
249
- return (
250
- (new Noop())
251
- );
237
+ return ( new Noop());
252
238
  }
253
239
  await this._workingCopyFileService.delete(deletes, token, this._undoRedoInfo);
254
240
  if (undoes.length === 0) {
255
- return (
256
- (new Noop())
257
- );
241
+ return ( new Noop());
258
242
  }
259
243
  return this._instaService.createInstance(CreateOperation, undoes, { isUndoing: true });
260
244
  }
261
245
  toString() {
262
- return `(delete ${( ( this._edits.map(edit => edit.oldUri))).join(', ')})`;
246
+ return `(delete ${( this._edits.map(edit => edit.oldUri)).join(', ')})`;
263
247
  }
264
248
  };
265
- DeleteOperation = ( (__decorate([
266
- ( (__param(2, IWorkingCopyFileService))),
267
- ( (__param(3, IFileService))),
268
- ( (__param(4, IConfigurationService))),
269
- ( (__param(5, IInstantiationService))),
270
- ( (__param(6, ILogService)))
271
- ], DeleteOperation)));
249
+ DeleteOperation = ( __decorate([
250
+ ( __param(2, IWorkingCopyFileService)),
251
+ ( __param(3, IFileService)),
252
+ ( __param(4, IConfigurationService)),
253
+ ( __param(5, IInstantiationService)),
254
+ ( __param(6, ILogService))
255
+ ], DeleteOperation));
272
256
  class FileUndoRedoElement {
273
257
  constructor(label, code, operations, confirmBeforeUndo) {
274
258
  this.label = label;
@@ -276,7 +260,7 @@ class FileUndoRedoElement {
276
260
  this.operations = operations;
277
261
  this.confirmBeforeUndo = confirmBeforeUndo;
278
262
  this.type = 1 ;
279
- this.resources = ( (operations.map(op => op.uris))).flat();
263
+ this.resources = ( operations.map(op => op.uris)).flat();
280
264
  }
281
265
  async undo() {
282
266
  await this._reverse();
@@ -292,7 +276,7 @@ class FileUndoRedoElement {
292
276
  }
293
277
  }
294
278
  toString() {
295
- return ( (this.operations.map(op => String(op)))).join(', ');
279
+ return ( this.operations.map(op => String(op))).join(', ');
296
280
  }
297
281
  }
298
282
  let BulkFileEdits = class BulkFileEdits {
@@ -314,16 +298,16 @@ let BulkFileEdits = class BulkFileEdits {
314
298
  const edits = [];
315
299
  for (const edit of this._edits) {
316
300
  if (edit.newResource && edit.oldResource && !edit.options?.copy) {
317
- edits.push(( (new RenameEdit(edit.newResource, edit.oldResource, edit.options ?? {}))));
301
+ edits.push(( new RenameEdit(edit.newResource, edit.oldResource, edit.options ?? {})));
318
302
  }
319
303
  else if (edit.newResource && edit.oldResource && edit.options?.copy) {
320
- edits.push(( (new CopyEdit(edit.newResource, edit.oldResource, edit.options ?? {}))));
304
+ edits.push(( new CopyEdit(edit.newResource, edit.oldResource, edit.options ?? {})));
321
305
  }
322
306
  else if (!edit.newResource && edit.oldResource) {
323
- edits.push(( (new DeleteEdit(edit.oldResource, edit.options ?? {}, false))));
307
+ edits.push(( new DeleteEdit(edit.oldResource, edit.options ?? {}, false)));
324
308
  }
325
309
  else if (edit.newResource && !edit.oldResource) {
326
- edits.push(( (new CreateEdit(edit.newResource, edit.options ?? {}, await edit.options.contents))));
310
+ edits.push(( new CreateEdit(edit.newResource, edit.options ?? {}, await edit.options.contents)));
327
311
  }
328
312
  }
329
313
  if (edits.length === 0) {
@@ -366,13 +350,13 @@ let BulkFileEdits = class BulkFileEdits {
366
350
  }
367
351
  this._progress.report(undefined);
368
352
  }
369
- const undoRedoElement = ( (new FileUndoRedoElement(this._label, this._code, undoOperations, this._confirmBeforeUndo)));
353
+ const undoRedoElement = ( new FileUndoRedoElement(this._label, this._code, undoOperations, this._confirmBeforeUndo));
370
354
  this._undoRedoService.pushElement(undoRedoElement, this._undoRedoGroup, this._undoRedoSource);
371
355
  return undoRedoElement.resources;
372
356
  }
373
357
  };
374
- BulkFileEdits = ( (__decorate([
375
- ( (__param(8, IInstantiationService))),
376
- ( (__param(9, IUndoRedoService)))
377
- ], BulkFileEdits)));
358
+ BulkFileEdits = ( __decorate([
359
+ ( __param(8, IInstantiationService)),
360
+ ( __param(9, IUndoRedoService))
361
+ ], BulkFileEdits));
378
362
  export { BulkFileEdits };
@@ -1,2 +1,4 @@
1
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
2
+ ({ value: localizeWithPath('vs/workbench/contrib/chat/browser/actions/chatActions', 'chat.category', "Chat"), original: 'Chat' });
1
3
  const CHAT_OPEN_ACTION_ID = 'workbench.action.chat.open';
2
4
  export { CHAT_OPEN_ACTION_ID };
@@ -2,7 +2,7 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
2
2
  import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
3
3
  import { Iterable } from 'monaco-editor/esm/vs/base/common/iterator.js';
4
4
  import { Disposable, toDisposable, combinedDisposable, DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
5
- import { localize } from 'monaco-editor/esm/vs/nls.js';
5
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
6
6
  import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
7
7
  import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
8
8
  import { Extensions } from '../../../common/contributions.js';
@@ -14,16 +14,16 @@ const agentItem = {
14
14
  properties: {
15
15
  agent: {
16
16
  type: 'string',
17
- markdownDescription: ( localize('agent', "The name of the agent which will be used as prefix."))
17
+ markdownDescription: localizeWithPath('vs/workbench/contrib/chat/common/chatAgents', 'agent', "The name of the agent which will be used as prefix.")
18
18
  },
19
19
  detail: {
20
20
  type: 'string',
21
- markdownDescription: ( localize('details', "The details of the agent."))
21
+ markdownDescription: localizeWithPath('vs/workbench/contrib/chat/common/chatAgents', 'details', "The details of the agent.")
22
22
  },
23
23
  }
24
24
  };
25
25
  const agentItems = {
26
- description: ( localize('vscode.extension.contributes.slashes', "Contributes agents to chat")),
26
+ description: localizeWithPath('vs/workbench/contrib/chat/common/chatAgents', 'vscode.extension.contributes.slashes', "Contributes agents to chat"),
27
27
  oneOf: [
28
28
  agentItem,
29
29
  {
@@ -115,12 +115,7 @@ let ChatAgentContribution = class ChatAgentContribution {
115
115
  const { value } = entry;
116
116
  for (const candidate of Iterable.wrap(value)) {
117
117
  if (!isAgentData(candidate)) {
118
- entry.collector.error(( localize(
119
- 'invalid',
120
- "Invalid {0}: {1}",
121
- agentsExtPoint.name,
122
- JSON.stringify(candidate)
123
- )));
118
+ entry.collector.error(localizeWithPath('vs/workbench/contrib/chat/common/chatAgents', 'invalid', "Invalid {0}: {1}", agentsExtPoint.name, JSON.stringify(candidate)));
124
119
  continue;
125
120
  }
126
121
  contributions.add(chatAgentService.registerAgentData({ ...candidate }));
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
2
  import { Iterable } from 'monaco-editor/esm/vs/base/common/iterator.js';
3
3
  import { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
4
- import { localize } from 'monaco-editor/esm/vs/nls.js';
4
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
5
5
  import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
6
6
  import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
7
7
  import { Extensions } from '../../../common/contributions.js';
@@ -13,19 +13,16 @@ const slashItem = {
13
13
  properties: {
14
14
  command: {
15
15
  type: 'string',
16
- markdownDescription: ( localize('command', "The name of the slash command which will be used as prefix."))
16
+ markdownDescription: localizeWithPath('vs/workbench/contrib/chat/common/chatSlashCommands', 'command', "The name of the slash command which will be used as prefix.")
17
17
  },
18
18
  detail: {
19
19
  type: 'string',
20
- markdownDescription: ( localize('details', "The details of the slash command."))
20
+ markdownDescription: localizeWithPath('vs/workbench/contrib/chat/common/chatSlashCommands', 'details', "The details of the slash command.")
21
21
  },
22
22
  }
23
23
  };
24
24
  const slashItems = {
25
- description: ( localize(
26
- 'vscode.extension.contributes.slashes',
27
- "Contributes slash commands to chat"
28
- )),
25
+ description: localizeWithPath('vs/workbench/contrib/chat/common/chatSlashCommands', 'vscode.extension.contributes.slashes', "Contributes slash commands to chat"),
29
26
  oneOf: [
30
27
  slashItem,
31
28
  {
@@ -59,12 +56,7 @@ let ChatSlashCommandContribution = class ChatSlashCommandContribution {
59
56
  const { value } = entry;
60
57
  for (const candidate of Iterable.wrap(value)) {
61
58
  if (!isChatSlashData(candidate)) {
62
- entry.collector.error(( localize(
63
- 'invalid',
64
- "Invalid {0}: {1}",
65
- slashesExtPoint.name,
66
- JSON.stringify(candidate)
67
- )));
59
+ entry.collector.error(localizeWithPath('vs/workbench/contrib/chat/common/chatSlashCommands', 'invalid', "Invalid {0}: {1}", slashesExtPoint.name, JSON.stringify(candidate)));
68
60
  continue;
69
61
  }
70
62
  contributions.add(slashCommandService.registerSlashData({ ...candidate }));
@@ -13,30 +13,18 @@ const createCodeActionsAutoSave = (description) => {
13
13
  type: ['string', 'boolean'],
14
14
  enum: ['always', 'explicit', 'never', true, false],
15
15
  enumDescriptions: [
16
- ( nls.localize(
17
- 'alwaysSave',
18
- 'Triggers Code Actions on explicit saves and auto saves triggered by window or focus changes.'
19
- )),
20
- ( nls.localize('explicitSave', 'Triggers Code Actions only when explicitly saved')),
21
- ( nls.localize('neverSave', 'Never triggers Code Actions on save')),
22
- ( nls.localize(
23
- 'explicitSaveBoolean',
24
- 'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'
25
- )),
26
- ( nls.localize(
27
- 'neverSaveBoolean',
28
- 'Never triggers Code Actions on save. This value will be deprecated in favor of "never".'
29
- ))
16
+ nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'alwaysSave', 'Triggers Code Actions on explicit saves and auto saves triggered by window or focus changes.'),
17
+ nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'explicitSave', 'Triggers Code Actions only when explicitly saved'),
18
+ nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'neverSave', 'Never triggers Code Actions on save'),
19
+ nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'explicitSaveBoolean', 'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'),
20
+ nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'neverSaveBoolean', 'Never triggers Code Actions on save. This value will be deprecated in favor of "never".')
30
21
  ],
31
22
  default: true,
32
23
  description: description
33
24
  };
34
25
  };
35
26
  const codeActionsOnSaveDefaultProperties = ( Object.freeze({
36
- 'source.fixAll': createCodeActionsAutoSave(( nls.localize(
37
- 'codeActionsOnSave.fixAll',
38
- "Controls whether auto fix action should be run on file save."
39
- ))),
27
+ 'source.fixAll': createCodeActionsAutoSave(nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'codeActionsOnSave.fixAll', "Controls whether auto fix action should be run on file save.")),
40
28
  }));
41
29
  const codeActionsOnSaveSchema = {
42
30
  oneOf: [
@@ -52,10 +40,7 @@ const codeActionsOnSaveSchema = {
52
40
  items: { type: 'string' }
53
41
  }
54
42
  ],
55
- markdownDescription: ( nls.localize(
56
- 'editor.codeActionsOnSave',
57
- 'Run CodeActions for the editor on save. CodeActions must be specified and the editor must not be shutting down. Example: `"source.organizeImports": "explicit" `'
58
- )),
43
+ markdownDescription: nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'editor.codeActionsOnSave', 'Run CodeActions for the editor on save. CodeActions must be specified and the editor must not be shutting down. Example: `"source.organizeImports": "explicit" `'),
59
44
  type: 'object',
60
45
  additionalProperties: {
61
46
  type: ['string', 'boolean'],
@@ -88,11 +73,7 @@ let CodeActionsContribution = class CodeActionsContribution extends Disposable {
88
73
  updateConfigurationSchema(codeActionContributions) {
89
74
  const newProperties = { ...codeActionsOnSaveDefaultProperties };
90
75
  for (const [sourceAction, props] of this.getSourceActions(codeActionContributions)) {
91
- newProperties[sourceAction] = createCodeActionsAutoSave(( nls.localize(
92
- 'codeActionsOnSave.generic',
93
- "Controls whether '{0}' actions should be run on file save.",
94
- props.title
95
- )));
76
+ newProperties[sourceAction] = createCodeActionsAutoSave(nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'codeActionsOnSave.generic', "Controls whether '{0}' actions should be run on file save.", props.title));
96
77
  }
97
78
  codeActionsOnSaveSchema.properties = newProperties;
98
79
  ( Registry.as(Extensions.Configuration))
@@ -10,17 +10,14 @@ var CodeActionExtensionPointFields;
10
10
  })(CodeActionExtensionPointFields || (CodeActionExtensionPointFields = {})));
11
11
  const codeActionsExtensionPointSchema = ( Object.freeze({
12
12
  type: 'array',
13
- markdownDescription: ( nls.localize('contributes.codeActions', "Configure which editor to use for a resource.")),
13
+ markdownDescription: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint', 'contributes.codeActions', "Configure which editor to use for a resource."),
14
14
  items: {
15
15
  type: 'object',
16
16
  required: [CodeActionExtensionPointFields.languages, CodeActionExtensionPointFields.actions],
17
17
  properties: {
18
18
  [CodeActionExtensionPointFields.languages]: {
19
19
  type: 'array',
20
- description: ( nls.localize(
21
- 'contributes.codeActions.languages',
22
- "Language modes that the code actions are enabled for."
23
- )),
20
+ description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint', 'contributes.codeActions.languages', "Language modes that the code actions are enabled for."),
24
21
  items: { type: 'string' }
25
22
  },
26
23
  [CodeActionExtensionPointFields.actions]: {
@@ -29,24 +26,15 @@ const codeActionsExtensionPointSchema = ( Object.freeze({
29
26
  properties: {
30
27
  [CodeActionExtensionPointFields.kind]: {
31
28
  type: 'string',
32
- markdownDescription: ( nls.localize(
33
- 'contributes.codeActions.kind',
34
- "`CodeActionKind` of the contributed code action."
35
- )),
29
+ markdownDescription: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint', 'contributes.codeActions.kind', "`CodeActionKind` of the contributed code action."),
36
30
  },
37
31
  [CodeActionExtensionPointFields.title]: {
38
32
  type: 'string',
39
- description: ( nls.localize(
40
- 'contributes.codeActions.title',
41
- "Label for the code action used in the UI."
42
- )),
33
+ description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint', 'contributes.codeActions.title', "Label for the code action used in the UI."),
43
34
  },
44
35
  [CodeActionExtensionPointFields.description]: {
45
36
  type: 'string',
46
- description: ( nls.localize(
47
- 'contributes.codeActions.description',
48
- "Description of what the code action does."
49
- )),
37
+ description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint', 'contributes.codeActions.description', "Description of what the code action does."),
50
38
  },
51
39
  }
52
40
  }
@@ -10,20 +10,14 @@ var DocumentationExtensionPointFields;
10
10
  ));
11
11
  const documentationExtensionPointSchema = ( Object.freeze({
12
12
  type: 'object',
13
- description: ( nls.localize('contributes.documentation', "Contributed documentation.")),
13
+ description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/documentationExtensionPoint', 'contributes.documentation', "Contributed documentation."),
14
14
  properties: {
15
15
  'refactoring': {
16
16
  type: 'array',
17
- description: ( nls.localize(
18
- 'contributes.documentation.refactorings',
19
- "Contributed documentation for refactorings."
20
- )),
17
+ description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/documentationExtensionPoint', 'contributes.documentation.refactorings', "Contributed documentation for refactorings."),
21
18
  items: {
22
19
  type: 'object',
23
- description: ( nls.localize(
24
- 'contributes.documentation.refactoring',
25
- "Contributed documentation for refactoring."
26
- )),
20
+ description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/documentationExtensionPoint', 'contributes.documentation.refactoring', "Contributed documentation for refactoring."),
27
21
  required: [
28
22
  DocumentationExtensionPointFields.title,
29
23
  DocumentationExtensionPointFields.when,
@@ -32,18 +26,15 @@ const documentationExtensionPointSchema = ( Object.freeze({
32
26
  properties: {
33
27
  [DocumentationExtensionPointFields.title]: {
34
28
  type: 'string',
35
- description: ( nls.localize(
36
- 'contributes.documentation.refactoring.title',
37
- "Label for the documentation used in the UI."
38
- )),
29
+ description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/documentationExtensionPoint', 'contributes.documentation.refactoring.title', "Label for the documentation used in the UI."),
39
30
  },
40
31
  [DocumentationExtensionPointFields.when]: {
41
32
  type: 'string',
42
- description: ( nls.localize('contributes.documentation.refactoring.when', "When clause.")),
33
+ description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/documentationExtensionPoint', 'contributes.documentation.refactoring.when', "When clause."),
43
34
  },
44
35
  [DocumentationExtensionPointFields.command]: {
45
36
  type: 'string',
46
- description: ( nls.localize('contributes.documentation.refactoring.command', "Command executed.")),
37
+ description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/documentationExtensionPoint', 'contributes.documentation.refactoring.command', "Command executed."),
47
38
  },
48
39
  },
49
40
  }
@@ -6,7 +6,7 @@ import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services
6
6
  import { AccessibleDiffViewerNext, AccessibleDiffViewerPrev } from 'monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js';
7
7
  import { DiffEditorWidget } from 'monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js';
8
8
  import { EmbeddedDiffEditorWidget } from 'monaco-editor/esm/vs/editor/browser/widget/embeddedCodeEditorWidget.js';
9
- import { localize } from 'monaco-editor/esm/vs/nls.js';
9
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
10
10
  import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
11
11
  import { IContextKeyService, ContextKeyEqualsExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
12
12
  import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
@@ -34,7 +34,7 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
34
34
  const onlyWhiteSpaceChange = ( computationResult.map(r => r && !r.identical && r.changes2.length === 0));
35
35
  this._register(autorunWithStore((reader, store) => {
36
36
  if (onlyWhiteSpaceChange.read(reader)) {
37
- const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), ( localize('hintWhitespace', "Show Whitespace Differences")), null));
37
+ const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), localizeWithPath('vs/workbench/contrib/codeEditor/browser/diffEditorHelper', 'hintWhitespace', "Show Whitespace Differences"), null));
38
38
  store.add(helperWidget.onClick(() => {
39
39
  this._configurationService.updateValue('diffEditor.ignoreTrimWhitespace', false);
40
40
  }));
@@ -44,12 +44,8 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
44
44
  this._register(this._diffEditor.onDidUpdateDiff(() => {
45
45
  const diffComputationResult = this._diffEditor.getDiffComputationResult();
46
46
  if (diffComputationResult && diffComputationResult.quitEarly) {
47
- this._notificationService.prompt(Severity.Warning, ( localize(
48
- 'hintTimeout',
49
- "The diff algorithm was stopped early (after {0} ms.)",
50
- this._diffEditor.maxComputationTime
51
- )), [{
52
- label: ( localize('removeTimeout', "Remove Limit")),
47
+ this._notificationService.prompt(Severity.Warning, localizeWithPath('vs/workbench/contrib/codeEditor/browser/diffEditorHelper', 'hintTimeout', "The diff algorithm was stopped early (after {0} ms.)", this._diffEditor.maxComputationTime), [{
48
+ label: localizeWithPath('vs/workbench/contrib/codeEditor/browser/diffEditorHelper', 'removeTimeout', "Remove Limit"),
53
49
  run: () => {
54
50
  this._configurationService.updateValue('diffEditor.maxComputationTime', 0);
55
51
  }
@@ -82,18 +78,9 @@ function createScreenReaderHelp() {
82
78
  }
83
79
  const keys = ['audioCues.diffLineDeleted', 'audioCues.diffLineInserted', 'audioCues.diffLineModified'];
84
80
  const content = [
85
- ( localize('msg1', "You are in a diff editor.")),
86
- ( localize(
87
- 'msg2',
88
- "View the next ({0}) or previous ({1}) diff in diff review mode, which is optimized for screen readers.",
89
- next,
90
- previous
91
- )),
92
- ( localize(
93
- 'msg3',
94
- "To control which audio cues should be played, the following settings can be configured: {0}.",
95
- keys.join(', ')
96
- )),
81
+ localizeWithPath('vs/workbench/contrib/codeEditor/browser/diffEditorHelper', 'msg1', "You are in a diff editor."),
82
+ localizeWithPath('vs/workbench/contrib/codeEditor/browser/diffEditorHelper', 'msg2', "View the next ({0}) or previous ({1}) diff in diff review mode, which is optimized for screen readers.", next, previous),
83
+ localizeWithPath('vs/workbench/contrib/codeEditor/browser/diffEditorHelper', 'msg3', "To control which audio cues should be played, the following settings can be configured: {0}.", keys.join(', ')),
97
84
  ];
98
85
  const commentCommandInfo = getCommentCommandInfo(keybindingService, contextKeyService, codeEditor);
99
86
  if (commentCommandInfo) {
@@ -91,7 +91,7 @@ class InspectEditorTokens extends EditorAction {
91
91
  constructor() {
92
92
  super({
93
93
  id: 'editor.action.inspectTMScopes',
94
- label: ( nls.localize('inspectEditorTokens', "Developer: Inspect Editor Tokens and Scopes")),
94
+ label: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens', 'inspectEditorTokens', "Developer: Inspect Editor Tokens and Scopes"),
95
95
  alias: 'Developer: Inspect Editor Tokens and Scopes',
96
96
  precondition: undefined
97
97
  });
@@ -157,7 +157,7 @@ class InspectEditorTokensWidget extends Disposable {
157
157
  const grammar = this._textMateService.createTokenizer(this._model.getLanguageId());
158
158
  const semanticTokens = this._computeSemanticTokens(position);
159
159
  dom.clearNode(this._domNode);
160
- this._domNode.appendChild(document.createTextNode(( nls.localize('inspectTMScopesWidget.loading', "Loading..."))));
160
+ this._domNode.appendChild(document.createTextNode(nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens', 'inspectTMScopesWidget.loading', "Loading...")));
161
161
  Promise.all([grammar, semanticTokens]).then(([grammar, semanticTokens]) => {
162
162
  if (this._isDisposed) {
163
163
  return;