@codingame/monaco-vscode-api 1.83.2 → 1.83.3

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 (216) 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 +11880 -682
  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/workbench/api/browser/mainThreadAuthentication.js +13 -32
  35. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
  36. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +3 -3
  37. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +4 -5
  38. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +38 -50
  39. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +21 -53
  40. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
  41. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +4 -5
  42. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +6 -2
  43. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +4 -2
  44. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
  45. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -12
  46. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +15 -9
  47. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +2 -6
  48. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +6 -28
  49. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +60 -0
  50. package/vscode/src/vs/workbench/api/common/extHostChat.js +3 -3
  51. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +2 -6
  52. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  53. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +3 -11
  54. package/vscode/src/vs/workbench/api/common/extHostLogService.js +2 -2
  55. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +3 -3
  56. package/vscode/src/vs/workbench/api/common/extHostProgress.js +2 -6
  57. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +3 -7
  58. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -6
  59. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +2 -6
  60. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +2 -2
  61. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  62. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +2 -7
  63. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +9 -34
  64. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +898 -68
  65. package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +7 -7
  66. package/vscode/src/vs/workbench/browser/actions/windowActions.js +32 -38
  67. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +103 -13
  68. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +2 -2
  69. package/vscode/src/vs/workbench/browser/editor.js +3 -3
  70. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +12 -27
  71. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +12 -12
  72. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +2 -7
  73. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +4 -7
  74. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +42 -90
  75. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +140 -272
  76. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +115 -148
  77. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +21 -33
  78. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +7 -19
  79. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -26
  80. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +7 -17
  81. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +60 -81
  82. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +2 -2
  83. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -2
  84. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +4 -11
  85. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +2 -2
  86. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +8 -8
  87. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +69 -34
  88. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +58 -34
  89. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +2 -2
  90. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +3 -9
  91. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
  92. package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +7 -11
  93. package/vscode/src/vs/workbench/browser/quickaccess.js +7 -3
  94. package/vscode/src/vs/workbench/browser/workbench.contribution.js +186 -683
  95. package/vscode/src/vs/workbench/common/configuration.js +12 -15
  96. package/vscode/src/vs/workbench/common/contextkeys.js +272 -90
  97. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +2 -2
  98. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +2 -7
  99. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +2 -6
  100. package/vscode/src/vs/workbench/common/editor.js +5 -5
  101. package/vscode/src/vs/workbench/common/theme.js +137 -527
  102. package/vscode/src/vs/workbench/common/views.js +4 -8
  103. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +15 -55
  104. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +3 -8
  105. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +22 -60
  106. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +9 -15
  107. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +18 -48
  108. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +2 -0
  109. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +5 -10
  110. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +5 -13
  111. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +8 -27
  112. package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +5 -17
  113. package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -15
  114. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +7 -20
  115. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
  116. package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +63 -216
  117. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +4 -7
  118. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +5 -8
  119. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +8 -11
  120. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +5 -15
  121. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +3 -3
  122. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +5 -5
  123. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +3 -6
  124. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +3 -6
  125. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +10 -9
  126. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +6 -15
  127. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +5 -20
  128. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +3 -10
  129. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
  130. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -20
  131. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +9 -3
  132. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +4 -13
  133. package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +26 -77
  134. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -17
  135. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +7 -12
  136. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +10 -29
  137. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +10 -10
  138. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +8 -8
  139. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +25 -21
  140. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +2 -2
  141. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -4
  142. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +13 -13
  143. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +56 -98
  144. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +2 -2
  145. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +96 -180
  146. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -79
  147. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -15
  148. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -8
  149. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +56 -19
  150. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +76 -230
  151. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -5
  152. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -103
  153. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +228 -99
  154. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  155. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +5 -9
  156. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +5 -5
  157. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +15 -35
  158. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +5 -8
  159. package/vscode/src/vs/workbench/contrib/files/common/files.js +27 -48
  160. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -6
  161. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  162. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +5 -8
  163. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +112 -52
  164. package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +1 -1
  165. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +2 -2
  166. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +30 -96
  167. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +3 -3
  168. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +42 -0
  169. package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +23 -29
  170. package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +3 -3
  171. package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +13 -16
  172. package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +15 -34
  173. package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +12 -17
  174. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
  175. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +26 -75
  176. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +4 -19
  177. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +4 -4
  178. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +10 -41
  179. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -14
  180. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +26 -13
  181. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +8 -6
  182. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +5 -17
  183. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -28
  184. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +21 -78
  185. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +21 -53
  186. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  187. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +2 -5
  188. package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +113 -348
  189. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +2 -5
  190. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +31 -1
  191. package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +1 -4
  192. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  193. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +2 -2
  194. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +2 -5
  195. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +4 -4
  196. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +10 -45
  197. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
  198. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +80 -296
  199. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +6 -21
  200. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +3 -6
  201. package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +24 -81
  202. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +2 -2
  203. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +11 -17
  204. package/vscode/src/vs/workbench/services/language/common/languageService.js +23 -98
  205. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +9 -11
  206. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -5
  207. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +11 -23
  208. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +2 -2
  209. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +2 -7
  210. package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +2 -2
  211. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +16 -53
  212. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +50 -1
  213. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +25 -99
  214. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -3
  215. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +15 -3
  216. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +2 -2
@@ -15,115 +15,64 @@ import { ToggleTabFocusModeAction } from 'monaco-editor/esm/vs/editor/contrib/to
15
15
  ( Registry.as(Extensions.Configuration)).registerConfiguration({
16
16
  id: 'comments',
17
17
  order: 20,
18
- title: ( nls.localize('commentsConfigurationTitle', "Comments")),
18
+ title: nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'commentsConfigurationTitle', "Comments"),
19
19
  type: 'object',
20
20
  properties: {
21
21
  'comments.openPanel': {
22
22
  enum: ['neverOpen', 'openOnSessionStart', 'openOnSessionStartWithComments'],
23
23
  default: 'openOnSessionStartWithComments',
24
- description: ( nls.localize('openComments', "Controls when the comments panel should open.")),
24
+ description: nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'openComments', "Controls when the comments panel should open."),
25
25
  restricted: false,
26
- markdownDeprecationMessage: ( nls.localize(
27
- 'comments.openPanel.deprecated',
28
- "This setting is deprecated in favor of `comments.openView`."
29
- ))
26
+ markdownDeprecationMessage: nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'comments.openPanel.deprecated', "This setting is deprecated in favor of `comments.openView`.")
30
27
  },
31
28
  'comments.openView': {
32
29
  enum: ['never', 'file', 'firstFile', 'firstFileUnresolved'],
33
- enumDescriptions: [( nls.localize('comments.openView.never', "The comments view will never be opened.")), ( nls.localize(
34
- 'comments.openView.file',
35
- "The comments view will open when a file with comments is active."
36
- )), ( nls.localize(
37
- 'comments.openView.firstFile',
38
- "If the comments view has not been opened yet during this session it will open the first time during a session that a file with comments is active."
39
- )), ( nls.localize(
40
- 'comments.openView.firstFileUnresolved',
41
- "If the comments view has not been opened yet during this session and the comment is not resolved, it will open the first time during a session that a file with comments is active."
42
- ))],
30
+ enumDescriptions: [nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'comments.openView.never', "The comments view will never be opened."), nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'comments.openView.file', "The comments view will open when a file with comments is active."), nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'comments.openView.firstFile', "If the comments view has not been opened yet during this session it will open the first time during a session that a file with comments is active."), nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'comments.openView.firstFileUnresolved', "If the comments view has not been opened yet during this session and the comment is not resolved, it will open the first time during a session that a file with comments is active.")],
43
31
  default: 'firstFile',
44
- description: ( nls.localize('comments.openView', "Controls when the comments view should open.")),
32
+ description: nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'comments.openView', "Controls when the comments view should open."),
45
33
  restricted: false
46
34
  },
47
35
  'comments.useRelativeTime': {
48
36
  type: 'boolean',
49
37
  default: true,
50
- description: ( nls.localize(
51
- 'useRelativeTime',
52
- "Determines if relative time will be used in comment timestamps (ex. '1 day ago')."
53
- ))
38
+ description: nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'useRelativeTime', "Determines if relative time will be used in comment timestamps (ex. '1 day ago').")
54
39
  },
55
40
  'comments.visible': {
56
41
  type: 'boolean',
57
42
  default: true,
58
- description: ( nls.localize(
59
- 'comments.visible',
60
- "Controls the visibility of the comments bar and comment threads in editors that have commenting ranges and comments. Comments are still accessible via the Comments view and will cause commenting to be toggled on in the same way running the command \"Comments: Toggle Editor Commenting\" toggles comments."
61
- ))
43
+ description: nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'comments.visible', "Controls the visibility of the comments bar and comment threads in editors that have commenting ranges and comments. Comments are still accessible via the Comments view and will cause commenting to be toggled on in the same way running the command \"Comments: Toggle Editor Commenting\" toggles comments.")
62
44
  },
63
45
  'comments.maxHeight': {
64
46
  type: 'boolean',
65
47
  default: true,
66
- description: ( nls.localize(
67
- 'comments.maxHeight',
68
- "Controls whether the comments widget scrolls or expands."
69
- ))
48
+ description: nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'comments.maxHeight', "Controls whether the comments widget scrolls or expands.")
70
49
  },
71
50
  'comments.collapseOnResolve': {
72
51
  type: 'boolean',
73
52
  default: true,
74
- description: ( nls.localize(
75
- 'collapseOnResolve',
76
- "Controls whether the comment thread should collapse when the thread is resolved."
77
- ))
53
+ description: nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'collapseOnResolve', "Controls whether the comment thread should collapse when the thread is resolved.")
78
54
  }
79
55
  }
80
56
  });
81
57
  var CommentAccessibilityHelpNLS;
82
58
  ( (function(CommentAccessibilityHelpNLS) {
83
- CommentAccessibilityHelpNLS.intro = ( nls.localize(
84
- 'intro',
85
- "The editor contains commentable range(s). Some useful commands include:"
86
- ));
87
- CommentAccessibilityHelpNLS.introWidget = ( nls.localize(
88
- 'introWidget',
89
- "This widget contains a text area, for composition of new comments, and actions, that can be tabbed to once tab moves focus mode has been enabled ({0})."
90
- ));
91
- CommentAccessibilityHelpNLS.introWidgetNoKb = ( nls.localize(
92
- 'introWidgetNoKb',
93
- "This widget contains a text area, for composition of new comments, and actions, that can be tabbed to once tab moves focus mode has been enabled with the command Toggle Tab Key Moves Focus, which is currently not triggerable via keybinding."
94
- ));
95
- CommentAccessibilityHelpNLS.commentCommands = ( nls.localize('commentCommands', "Some useful comment commands include:"));
96
- CommentAccessibilityHelpNLS.escape = ( nls.localize('escape', "- Dismiss Comment (Escape)"));
97
- CommentAccessibilityHelpNLS.nextRange = ( nls.localize('next', "- Go to Next Commenting Range ({0})"));
98
- CommentAccessibilityHelpNLS.nextRangeNoKb = ( nls.localize(
99
- 'nextNoKb',
100
- "- Go to Next Commenting Range, which is currently not triggerable via keybinding."
101
- ));
102
- CommentAccessibilityHelpNLS.previousRange = ( nls.localize('previous', "- Go to Previous Commenting Range ({0})"));
103
- CommentAccessibilityHelpNLS.previousRangeNoKb = ( nls.localize(
104
- 'previousNoKb',
105
- "- Go to Previous Commenting Range, which is currently not triggerable via keybinding."
106
- ));
107
- CommentAccessibilityHelpNLS.nextCommentThreadKb = ( nls.localize('nextCommentThreadKb', "- Go to Next Comment Thread ({0})"));
108
- CommentAccessibilityHelpNLS.nextCommentThreadNoKb = ( nls.localize(
109
- 'nextCommentThreadNoKb',
110
- "- Go to Next Comment Thread, which is currently not triggerable via keybinding."
111
- ));
112
- CommentAccessibilityHelpNLS.previousCommentThreadKb = ( nls.localize('previousCommentThreadKb', "- Go to Previous Comment Thread ({0})"));
113
- CommentAccessibilityHelpNLS.previousCommentThreadNoKb = ( nls.localize(
114
- 'previousCommentThreadNoKb',
115
- "- Go to Previous Comment Thread, which is currently not triggerable via keybinding."
116
- ));
117
- CommentAccessibilityHelpNLS.addComment = ( nls.localize('addComment', "- Add Comment ({0})"));
118
- CommentAccessibilityHelpNLS.addCommentNoKb = ( nls.localize(
119
- 'addCommentNoKb',
120
- "- Add Comment on Current Selection, which is currently not triggerable via keybinding."
121
- ));
122
- CommentAccessibilityHelpNLS.submitComment = ( nls.localize('submitComment', "- Submit Comment ({0})"));
123
- CommentAccessibilityHelpNLS.submitCommentNoKb = ( nls.localize(
124
- 'submitCommentNoKb',
125
- "- Submit Comment, accessible via tabbing, as it's currently not triggerable with a keybinding."
126
- ));
59
+ CommentAccessibilityHelpNLS.intro = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'intro', "The editor contains commentable range(s). Some useful commands include:");
60
+ CommentAccessibilityHelpNLS.introWidget = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'introWidget', "This widget contains a text area, for composition of new comments, and actions, that can be tabbed to once tab moves focus mode has been enabled ({0}).");
61
+ CommentAccessibilityHelpNLS.introWidgetNoKb = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'introWidgetNoKb', "This widget contains a text area, for composition of new comments, and actions, that can be tabbed to once tab moves focus mode has been enabled with the command Toggle Tab Key Moves Focus, which is currently not triggerable via keybinding.");
62
+ CommentAccessibilityHelpNLS.commentCommands = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'commentCommands', "Some useful comment commands include:");
63
+ CommentAccessibilityHelpNLS.escape = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'escape', "- Dismiss Comment (Escape)");
64
+ CommentAccessibilityHelpNLS.nextRange = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'next', "- Go to Next Commenting Range ({0})");
65
+ CommentAccessibilityHelpNLS.nextRangeNoKb = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'nextNoKb', "- Go to Next Commenting Range, which is currently not triggerable via keybinding.");
66
+ CommentAccessibilityHelpNLS.previousRange = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'previous', "- Go to Previous Commenting Range ({0})");
67
+ CommentAccessibilityHelpNLS.previousRangeNoKb = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'previousNoKb', "- Go to Previous Commenting Range, which is currently not triggerable via keybinding.");
68
+ CommentAccessibilityHelpNLS.nextCommentThreadKb = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'nextCommentThreadKb', "- Go to Next Comment Thread ({0})");
69
+ CommentAccessibilityHelpNLS.nextCommentThreadNoKb = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'nextCommentThreadNoKb', "- Go to Next Comment Thread, which is currently not triggerable via keybinding.");
70
+ CommentAccessibilityHelpNLS.previousCommentThreadKb = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'previousCommentThreadKb', "- Go to Previous Comment Thread ({0})");
71
+ CommentAccessibilityHelpNLS.previousCommentThreadNoKb = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'previousCommentThreadNoKb', "- Go to Previous Comment Thread, which is currently not triggerable via keybinding.");
72
+ CommentAccessibilityHelpNLS.addComment = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'addComment', "- Add Comment ({0})");
73
+ CommentAccessibilityHelpNLS.addCommentNoKb = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'addCommentNoKb', "- Add Comment on Current Selection, which is currently not triggerable via keybinding.");
74
+ CommentAccessibilityHelpNLS.submitComment = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'submitComment', "- Submit Comment ({0})");
75
+ CommentAccessibilityHelpNLS.submitCommentNoKb = nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'submitCommentNoKb', "- Submit Comment, accessible via tabbing, as it's currently not triggerable with a keybinding.");
127
76
  })(CommentAccessibilityHelpNLS || (CommentAccessibilityHelpNLS = {})));
128
77
  class CommentsAccessibilityHelpContribution extends Disposable {
129
78
  constructor() {
@@ -702,12 +702,7 @@ let CommentController = class CommentController {
702
702
  const commentRangeEnd = range?.getEndPosition().lineNumber;
703
703
  if (commentRangeStart && commentRangeEnd) {
704
704
  const oneLine = commentRangeStart === commentRangeEnd;
705
- oneLine ? status(( nls.localize('commentRange', "Line {0}", commentRangeStart))) : status(( nls.localize(
706
- 'commentRangeStart',
707
- "Lines {0} to {1}",
708
- commentRangeStart,
709
- commentRangeEnd
710
- )));
705
+ oneLine ? status(nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsController', 'commentRange', "Line {0}", commentRangeStart)) : status(nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsController', 'commentRangeStart', "Lines {0} to {1}", commentRangeStart, commentRangeEnd));
711
706
  }
712
707
  }
713
708
  }
@@ -823,21 +818,14 @@ let CommentController = class CommentController {
823
818
  if (verbose) {
824
819
  const keybinding = this.keybindingService.lookupKeybinding("editor.action.accessibilityHelp" )?.getAriaLabel();
825
820
  if (keybinding) {
826
- status(( nls.localize(
827
- 'hasCommentRangesKb',
828
- "Editor has commenting ranges, run the command Open Accessibility Help ({0}), for more information.",
829
- keybinding
830
- )));
821
+ status(nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsController', 'hasCommentRangesKb', "Editor has commenting ranges, run the command Open Accessibility Help ({0}), for more information.", keybinding));
831
822
  }
832
823
  else {
833
- status(( nls.localize(
834
- 'hasCommentRangesNoKb',
835
- "Editor has commenting ranges, run the command Open Accessibility Help, which is currently not triggerable via keybinding, for more information."
836
- )));
824
+ status(nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsController', 'hasCommentRangesNoKb', "Editor has commenting ranges, run the command Open Accessibility Help, which is currently not triggerable via keybinding, for more information."));
837
825
  }
838
826
  }
839
827
  else {
840
- status(( nls.localize('hasCommentRanges', "Editor has commenting ranges.")));
828
+ status(nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsController', 'hasCommentRanges', "Editor has commenting ranges."));
841
829
  }
842
830
  }
843
831
  }
@@ -961,7 +949,7 @@ let CommentController = class CommentController {
961
949
  }
962
950
  else {
963
951
  const picks = this.getCommentProvidersQuickPicks(newCommentInfos);
964
- return this.quickInputService.pick(picks, { placeHolder: ( nls.localize('pickCommentService', "Select Comment Provider")), matchOnDescription: true }).then(pick => {
952
+ return this.quickInputService.pick(picks, { placeHolder: nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsController', 'pickCommentService', "Select Comment Provider"), matchOnDescription: true }).then(pick => {
965
953
  if (!pick) {
966
954
  return;
967
955
  }
@@ -21,7 +21,7 @@ import { openLinkFromMarkdown } from 'monaco-editor/esm/vs/editor/contrib/markdo
21
21
  const COMMENTS_VIEW_ID = 'workbench.panel.comments';
22
22
  const COMMENTS_VIEW_STORAGE_ID = 'Comments';
23
23
  const COMMENTS_VIEW_ORIGINAL_TITLE = 'Comments';
24
- const COMMENTS_VIEW_TITLE = ( nls.localize('comments.view.title', "Comments"));
24
+ const COMMENTS_VIEW_TITLE = nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsTreeViewer', 'comments.view.title', "Comments");
25
25
  class CommentsModelVirualDelegate {
26
26
  static { this.RESOURCE_ID = 'resource-with-comments'; }
27
27
  static { this.COMMENT_ID = 'comment-node'; }
@@ -99,10 +99,10 @@ let CommentNodeRenderer = class CommentNodeRenderer {
99
99
  }
100
100
  getCountString(commentCount) {
101
101
  if (commentCount > 1) {
102
- return ( nls.localize('commentsCount', "{0} comments", commentCount));
102
+ return nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsTreeViewer', 'commentsCount', "{0} comments", commentCount);
103
103
  }
104
104
  else {
105
- return ( nls.localize('commentCount', "1 comment"));
105
+ return nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsTreeViewer', 'commentCount', "1 comment");
106
106
  }
107
107
  }
108
108
  getRenderedComment(commentBody, disposables) {
@@ -117,7 +117,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
117
117
  for (let i = 0; i < images.length; i++) {
118
118
  const image = images[i];
119
119
  const textDescription = dom.$('');
120
- textDescription.textContent = image.alt ? ( nls.localize('imageWithLabel', "Image: {0}", image.alt)) : ( nls.localize('image', "Image"));
120
+ textDescription.textContent = image.alt ? nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsTreeViewer', 'imageWithLabel', "Image: {0}", image.alt) : nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsTreeViewer', 'image', "Image");
121
121
  image.parentNode.replaceChild(textDescription, image);
122
122
  }
123
123
  return renderedComment;
@@ -158,15 +158,10 @@ let CommentNodeRenderer = class CommentNodeRenderer {
158
158
  }
159
159
  if (node.element.range) {
160
160
  if (node.element.range.startLineNumber === node.element.range.endLineNumber) {
161
- templateData.threadMetadata.range.textContent = ( nls.localize('commentLine', "[Ln {0}]", node.element.range.startLineNumber));
161
+ templateData.threadMetadata.range.textContent = nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsTreeViewer', 'commentLine', "[Ln {0}]", node.element.range.startLineNumber);
162
162
  }
163
163
  else {
164
- templateData.threadMetadata.range.textContent = ( nls.localize(
165
- 'commentRange',
166
- "[Ln {0}-{1}]",
167
- node.element.range.startLineNumber,
168
- node.element.range.endLineNumber
169
- ));
164
+ templateData.threadMetadata.range.textContent = nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsTreeViewer', 'commentRange', "[Ln {0}-{1}]", node.element.range.startLineNumber, node.element.range.endLineNumber);
170
165
  }
171
166
  }
172
167
  if (!node.element.hasReply()) {
@@ -176,7 +171,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
176
171
  templateData.repliesMetadata.container.style.display = '';
177
172
  templateData.repliesMetadata.count.textContent = this.getCountString(commentCount);
178
173
  const lastComment = node.element.replies[node.element.replies.length - 1].comment;
179
- templateData.repliesMetadata.lastReplyDetail.textContent = ( nls.localize('lastReplyFrom', "Last reply from {0}", lastComment.userName));
174
+ templateData.repliesMetadata.lastReplyDetail.textContent = nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsTreeViewer', 'lastReplyFrom', "Last reply from {0}", lastComment.userName);
180
175
  templateData.repliesMetadata.timestamp.setTimestamp(lastComment.timestamp ? ( new Date(lastComment.timestamp)) : undefined);
181
176
  }
182
177
  getCommentThreadWidgetStateColor(state, theme) {
@@ -54,8 +54,8 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
54
54
  super({
55
55
  ...options,
56
56
  filterOptions: {
57
- placeholder: ( nls.localize('comments.filter.placeholder', "Filter (e.g. text, author)")),
58
- ariaLabel: ( nls.localize('comments.filter.ariaLabel', "Filter comments")),
57
+ placeholder: nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'comments.filter.placeholder', "Filter (e.g. text, author)"),
58
+ ariaLabel: nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'comments.filter.ariaLabel', "Filter comments"),
59
59
  history: viewState['filterHistory'] || [],
60
60
  text: viewState['filter'] || '',
61
61
  focusContextKey: CommentsViewFilterFocusContextKey.key
@@ -97,7 +97,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
97
97
  return;
98
98
  }
99
99
  this.totalUnresolved = unresolved;
100
- const message = ( nls.localize('totalUnresolvedComments', '{0} Unresolved Comments', this.totalUnresolved));
100
+ const message = nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'totalUnresolvedComments', '{0} Unresolved Comments', this.totalUnresolved);
101
101
  this.activity.value = this.activityService.showViewActivity(this.id, { badge: ( new NumberBadge(this.totalUnresolved, () => message)) });
102
102
  }
103
103
  saveState() {
@@ -148,7 +148,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
148
148
  this.tree?.filterComments();
149
149
  this.cachedFilterStats = undefined;
150
150
  const { total, filtered } = this.getFilterStats();
151
- this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( nls.localize('showing filtered results', "Showing {0} of {1}", filtered, total)));
151
+ this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'showing filtered results', "Showing {0} of {1}", filtered, total));
152
152
  this.filterWidget.checkMoreFilters(!this.filters.showResolved || !this.filters.showUnresolved);
153
153
  }
154
154
  renderBody(container) {
@@ -262,36 +262,17 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
262
262
  accessibilityProvider: {
263
263
  getAriaLabel(element) {
264
264
  if (element instanceof CommentsModel) {
265
- return ( nls.localize('rootCommentsLabel', "Comments for current workspace"));
265
+ return nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'rootCommentsLabel', "Comments for current workspace");
266
266
  }
267
267
  if (element instanceof ResourceWithCommentThreads) {
268
- return ( nls.localize(
269
- 'resourceWithCommentThreadsLabel',
270
- "Comments in {0}, full path {1}",
271
- basename(element.resource),
272
- element.resource.fsPath
273
- ));
268
+ return nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'resourceWithCommentThreadsLabel', "Comments in {0}, full path {1}", basename(element.resource), element.resource.fsPath);
274
269
  }
275
270
  if (element instanceof CommentNode) {
276
271
  if (element.range) {
277
- return ( nls.localize(
278
- 'resourceWithCommentLabel',
279
- "Comment from ${0} at line {1} column {2} in {3}, source: {4}",
280
- element.comment.userName,
281
- element.range.startLineNumber,
282
- element.range.startColumn,
283
- basename(element.resource),
284
- (typeof element.comment.body === 'string') ? element.comment.body : element.comment.body.value
285
- ));
272
+ return nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'resourceWithCommentLabel', "Comment from ${0} at line {1} column {2} in {3}, source: {4}", element.comment.userName, element.range.startLineNumber, element.range.startColumn, basename(element.resource), (typeof element.comment.body === 'string') ? element.comment.body : element.comment.body.value);
286
273
  }
287
274
  else {
288
- return ( nls.localize(
289
- 'resourceWithCommentLabelFile',
290
- "Comment from ${0} in {1}, source: {2}",
291
- element.comment.userName,
292
- basename(element.resource),
293
- (typeof element.comment.body === 'string') ? element.comment.body : element.comment.body.value
294
- ));
275
+ return nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'resourceWithCommentLabelFile', "Comment from ${0} in {1}, source: {2}", element.comment.userName, basename(element.resource), (typeof element.comment.body === 'string') ? element.comment.body : element.comment.body.value);
295
276
  }
296
277
  }
297
278
  return '';
@@ -469,7 +450,7 @@ registerAction2(class Collapse extends ViewAction {
469
450
  super({
470
451
  viewId: COMMENTS_VIEW_ID,
471
452
  id: 'comments.collapse',
472
- title: ( nls.localize('collapseAll', "Collapse All")),
453
+ title: nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'collapseAll', "Collapse All"),
473
454
  f1: false,
474
455
  icon: Codicon.collapseAll,
475
456
  menu: {
@@ -489,7 +470,7 @@ registerAction2(class Expand extends ViewAction {
489
470
  super({
490
471
  viewId: COMMENTS_VIEW_ID,
491
472
  id: 'comments.expand',
492
- title: ( nls.localize('expandAll', "Expand All")),
473
+ title: nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'expandAll', "Expand All"),
493
474
  f1: false,
494
475
  icon: Codicon.expandAll,
495
476
  menu: {
@@ -1,5 +1,5 @@
1
1
  import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
2
- import { localize } from 'monaco-editor/esm/vs/nls.js';
2
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
3
3
  import { ContextKeyExpr, RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
4
4
  import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
5
5
  import { CommentsViewFilterFocusContextKey } from './comments.js';
@@ -44,7 +44,7 @@ registerAction2(class extends ViewAction {
44
44
  constructor() {
45
45
  super({
46
46
  id: 'commentsFocusViewFromFilter',
47
- title: ( localize('focusCommentsList', "Focus Comments view")),
47
+ title: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'focusCommentsList', "Focus Comments view"),
48
48
  keybinding: {
49
49
  when: CommentsViewFilterFocusContextKey,
50
50
  weight: 200 ,
@@ -61,7 +61,7 @@ registerAction2(class extends ViewAction {
61
61
  constructor() {
62
62
  super({
63
63
  id: 'commentsClearFilterText',
64
- title: ( localize('commentsClearFilterText', "Clear filter text")),
64
+ title: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'commentsClearFilterText', "Clear filter text"),
65
65
  keybinding: {
66
66
  when: CommentsViewFilterFocusContextKey,
67
67
  weight: 200 ,
@@ -78,7 +78,7 @@ registerAction2(class extends ViewAction {
78
78
  constructor() {
79
79
  super({
80
80
  id: 'commentsFocusFilter',
81
- title: ( localize('focusCommentsFilter', "Focus comments filter")),
81
+ title: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'focusCommentsFilter', "Focus comments filter"),
82
82
  keybinding: {
83
83
  when: ( FocusedViewContext.isEqualTo(COMMENTS_VIEW_ID)),
84
84
  weight: 200 ,
@@ -95,11 +95,11 @@ registerAction2(class extends ViewAction {
95
95
  constructor() {
96
96
  super({
97
97
  id: `workbench.actions.${COMMENTS_VIEW_ID}.toggleUnResolvedComments`,
98
- title: ( localize('toggle unresolved', "Toggle Unresolved Comments")),
99
- category: ( localize('comments', "Comments")),
98
+ title: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'toggle unresolved', "Toggle Unresolved Comments"),
99
+ category: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'comments', "Comments"),
100
100
  toggled: {
101
101
  condition: CONTEXT_KEY_SHOW_UNRESOLVED,
102
- title: ( localize('unresolved', "Show Unresolved")),
102
+ title: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'unresolved', "Show Unresolved"),
103
103
  },
104
104
  menu: {
105
105
  id: viewFilterSubmenu,
@@ -118,11 +118,11 @@ registerAction2(class extends ViewAction {
118
118
  constructor() {
119
119
  super({
120
120
  id: `workbench.actions.${COMMENTS_VIEW_ID}.toggleResolvedComments`,
121
- title: ( localize('toggle resolved', "Toggle Resolved Comments")),
122
- category: ( localize('comments', "Comments")),
121
+ title: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'toggle resolved', "Toggle Resolved Comments"),
122
+ category: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'comments', "Comments"),
123
123
  toggled: {
124
124
  condition: CONTEXT_KEY_SHOW_RESOLVED,
125
- title: ( localize('resolved', "Show Resolved")),
125
+ title: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'resolved', "Show Resolved"),
126
126
  },
127
127
  menu: {
128
128
  id: viewFilterSubmenu,
@@ -6,7 +6,7 @@ import { ActionViewItem } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/a
6
6
  class ToggleReactionsAction extends Action {
7
7
  static { this.ID = 'toolbar.toggle.pickReactions'; }
8
8
  constructor(toggleDropdownMenu, title) {
9
- super(ToggleReactionsAction.ID, title || ( nls.localize('pickReactions', "Pick Reactions...")), 'toggle-reactions', true);
9
+ super(ToggleReactionsAction.ID, title || nls.localizeWithPath('vs/workbench/contrib/comments/browser/reactionsAction', 'pickReactions', "Pick Reactions..."), 'toggle-reactions', true);
10
10
  this._menuActions = [];
11
11
  this.toggleDropdownMenu = toggleDropdownMenu;
12
12
  }
@@ -50,32 +50,32 @@ class ReactionActionViewItem extends ActionViewItem {
50
50
  }
51
51
  getTooltip() {
52
52
  const action = this.action;
53
- const toggleMessage = action.enabled ? ( nls.localize('comment.toggleableReaction', "Toggle reaction, ")) : '';
53
+ const toggleMessage = action.enabled ? nls.localizeWithPath('vs/workbench/contrib/comments/browser/reactionsAction', 'comment.toggleableReaction', "Toggle reaction, ") : '';
54
54
  if (action.count === undefined) {
55
- return ( nls.localize({
55
+ return nls.localizeWithPath('vs/workbench/contrib/comments/browser/reactionsAction', {
56
56
  key: 'comment.reactionLabelNone', comment: [
57
57
  'This is a tooltip for an emoji button so that the current user can toggle their reaction to a comment.',
58
58
  'The first arg is localized message "Toggle reaction" or empty if the user doesn\'t have permission to toggle the reaction, the second is the name of the reaction.'
59
59
  ]
60
- }, "{0}{1} reaction", toggleMessage, action.label));
60
+ }, "{0}{1} reaction", toggleMessage, action.label);
61
61
  }
62
62
  else if (action.count === 1) {
63
- return ( nls.localize({
63
+ return nls.localizeWithPath('vs/workbench/contrib/comments/browser/reactionsAction', {
64
64
  key: 'comment.reactionLabelOne', comment: [
65
65
  'This is a tooltip for an emoji that is a "reaction" to a comment where the count of the reactions is 1.',
66
66
  'The emoji is also a button so that the current user can also toggle their own emoji reaction.',
67
67
  'The first arg is localized message "Toggle reaction" or empty if the user doesn\'t have permission to toggle the reaction, the second is the name of the reaction.'
68
68
  ]
69
- }, "{0}1 reaction with {1}", toggleMessage, action.label));
69
+ }, "{0}1 reaction with {1}", toggleMessage, action.label);
70
70
  }
71
71
  else if (action.count > 1) {
72
- return ( nls.localize({
72
+ return nls.localizeWithPath('vs/workbench/contrib/comments/browser/reactionsAction', {
73
73
  key: 'comment.reactionLabelMany', comment: [
74
74
  'This is a tooltip for an emoji that is a "reaction" to a comment where the count of the reactions is greater than 1.',
75
75
  'The emoji is also a button so that the current user can also toggle their own emoji reaction.',
76
76
  'The first arg is localized message "Toggle reaction" or empty if the user doesn\'t have permission to toggle the reaction, the second is number of users who have reacted with that reaction, and the third is the name of the reaction.'
77
77
  ]
78
- }, "{0}{1} reactions with {2}", toggleMessage, action.count, action.label));
78
+ }, "{0}{1} reactions with {2}", toggleMessage, action.count, action.label);
79
79
  }
80
80
  return undefined;
81
81
  }
@@ -3,42 +3,46 @@ import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/c
3
3
  var CommentContextKeys;
4
4
  ( (function(CommentContextKeys) {
5
5
  CommentContextKeys.activeCursorHasCommentingRange = ( new RawContextKey('activeCursorHasCommentingRange', false, {
6
- description: ( nls.localize(
7
- 'hasCommentingRange',
8
- "Whether the position at the active cursor has a commenting range"
9
- )),
6
+ description: nls.localizeWithPath('vs/workbench/contrib/comments/common/commentContextKeys', 'hasCommentingRange', "Whether the position at the active cursor has a commenting range"),
10
7
  type: 'boolean'
11
8
  }));
12
9
  CommentContextKeys.activeEditorHasCommentingRange = ( new RawContextKey('activeEditorHasCommentingRange', false, {
13
- description: ( nls.localize(
14
- 'editorHasCommentingRange',
15
- "Whether the active editor has a commenting range"
16
- )),
10
+ description: nls.localizeWithPath('vs/workbench/contrib/comments/common/commentContextKeys', 'editorHasCommentingRange', "Whether the active editor has a commenting range"),
17
11
  type: 'boolean'
18
12
  }));
19
13
  CommentContextKeys.WorkspaceHasCommenting = ( new RawContextKey('workspaceHasCommenting', false, {
20
- description: ( nls.localize(
21
- 'hasCommentingProvider',
22
- "Whether the open workspace has either comments or commenting ranges."
23
- )),
14
+ description: nls.localizeWithPath('vs/workbench/contrib/comments/common/commentContextKeys', 'hasCommentingProvider', "Whether the open workspace has either comments or commenting ranges."),
24
15
  type: 'boolean'
25
16
  }));
26
17
  CommentContextKeys.commentThreadIsEmpty = ( new RawContextKey(
27
18
  'commentThreadIsEmpty',
28
19
  false,
29
- { type: 'boolean', description: ( nls.localize('commentThreadIsEmpty', "Set when the comment thread has no comments")) }
20
+ { type: 'boolean', description: nls.localizeWithPath('vs/workbench/contrib/comments/common/commentContextKeys', 'commentThreadIsEmpty', "Set when the comment thread has no comments") }
21
+ ));
22
+ CommentContextKeys.commentIsEmpty = ( new RawContextKey(
23
+ 'commentIsEmpty',
24
+ false,
25
+ { type: 'boolean', description: nls.localizeWithPath('vs/workbench/contrib/comments/common/commentContextKeys', 'commentIsEmpty', "Set when the comment has no input") }
26
+ ));
27
+ CommentContextKeys.commentContext = ( new RawContextKey(
28
+ 'comment',
29
+ undefined,
30
+ { type: 'string', description: nls.localizeWithPath('vs/workbench/contrib/comments/common/commentContextKeys', 'comment', "The context value of the comment") }
31
+ ));
32
+ CommentContextKeys.commentThreadContext = ( new RawContextKey(
33
+ 'commentThread',
34
+ undefined,
35
+ { type: 'string', description: nls.localizeWithPath('vs/workbench/contrib/comments/common/commentContextKeys', 'commentThread', "The context value of the comment thread") }
30
36
  ));
31
- CommentContextKeys.commentIsEmpty = ( new RawContextKey('commentIsEmpty', false, { type: 'boolean', description: ( nls.localize('commentIsEmpty', "Set when the comment has no input")) }));
32
- CommentContextKeys.commentContext = ( new RawContextKey('comment', undefined, { type: 'string', description: ( nls.localize('comment', "The context value of the comment")) }));
33
- CommentContextKeys.commentThreadContext = ( new RawContextKey('commentThread', undefined, { type: 'string', description: ( nls.localize('commentThread', "The context value of the comment thread")) }));
34
37
  CommentContextKeys.commentControllerContext = ( new RawContextKey(
35
38
  'commentController',
36
39
  undefined,
37
- { type: 'string', description: ( nls.localize(
38
- 'commentController',
39
- "The comment controller id associated with a comment thread"
40
- )) }
40
+ { type: 'string', description: nls.localizeWithPath('vs/workbench/contrib/comments/common/commentContextKeys', 'commentController', "The comment controller id associated with a comment thread") }
41
+ ));
42
+ CommentContextKeys.commentFocused = ( new RawContextKey(
43
+ 'commentFocused',
44
+ false,
45
+ { type: 'boolean', description: nls.localizeWithPath('vs/workbench/contrib/comments/common/commentContextKeys', 'commentFocused', "Set when the comment is focused") }
41
46
  ));
42
- CommentContextKeys.commentFocused = ( new RawContextKey('commentFocused', false, { type: 'boolean', description: ( nls.localize('commentFocused', "Set when the comment is focused")) }));
43
47
  })(CommentContextKeys || (CommentContextKeys = {})));
44
48
  export { CommentContextKeys };
@@ -1,6 +1,6 @@
1
1
  import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
2
2
  import { groupBy } from 'monaco-editor/esm/vs/base/common/arrays.js';
3
- import { localize } from 'monaco-editor/esm/vs/nls.js';
3
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
4
4
  class CommentNode {
5
5
  constructor(owner, threadId, resource, comment, range, threadState) {
6
6
  this.replies = [];
@@ -105,7 +105,7 @@ class CommentsModel {
105
105
  }
106
106
  getMessage() {
107
107
  if (!this.resourceCommentThreads.length) {
108
- return ( localize('noComments', "There are no comments in this workspace yet."));
108
+ return localizeWithPath('vs/workbench/contrib/comments/common/commentModel', 'noComments', "There are no comments in this workspace yet.");
109
109
  }
110
110
  else {
111
111
  return '';
@@ -6,10 +6,7 @@ import { globMatchesResource, RegisteredEditorPriority, priorityToRank } from '.
6
6
  const ICustomEditorService = ( createDecorator('customEditorService'));
7
7
  const CONTEXT_ACTIVE_CUSTOM_EDITOR_ID = ( new RawContextKey('activeCustomEditorId', '', {
8
8
  type: 'string',
9
- description: ( nls.localize(
10
- 'context.customEditor',
11
- "The viewType of the currently active custom editor."
12
- )),
9
+ description: nls.localizeWithPath('vs/workbench/contrib/customEditor/common/customEditor', 'context.customEditor', "The viewType of the currently active custom editor."),
13
10
  }));
14
11
  const CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE = ( new RawContextKey('focusedCustomEditorIsEditable', false));
15
12
  class CustomEditorInfo {