@codingame/monaco-vscode-api 1.83.5 → 1.83.7

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 (213) hide show
  1. package/assets.js +3 -14
  2. package/lifecycle.js +3 -1
  3. package/missing-services.js +32 -28
  4. package/monaco-editor-treemending.patch +26330 -3867
  5. package/monaco.js +4 -0
  6. package/package.json +1 -1
  7. package/service-override/extensions.js +5 -5
  8. package/service-override/files.js +37 -13
  9. package/service-override/keybindings.js +10 -4
  10. package/service-override/layout.js +1 -3
  11. package/services.d.ts +13 -2
  12. package/services.js +35 -5
  13. package/vscode/src/vs/base/browser/broadcast.js +52 -0
  14. package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
  15. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +6 -1
  16. package/vscode/src/vs/base/common/date.js +244 -54
  17. package/vscode/src/vs/base/common/jsonErrorMessages.js +45 -9
  18. package/vscode/src/vs/editor/common/services/textResourceConfiguration.d.ts +65 -0
  19. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +33 -5
  20. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +165 -32
  21. package/vscode/src/vs/platform/dialogs/common/dialogs.js +30 -9
  22. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +0 -3
  23. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +6 -1
  24. package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +404 -0
  25. package/vscode/src/vs/platform/files/common/fileService.js +13 -2
  26. package/vscode/src/vs/platform/files/common/files.js +25 -5
  27. package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +15 -3
  28. package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +38 -7
  29. package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +7 -1
  30. package/vscode/src/vs/platform/request/common/request.js +1 -1
  31. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +210 -42
  32. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +73 -13
  33. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +5 -1
  34. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +11 -2
  35. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +5 -3
  36. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +70 -35
  37. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +108 -20
  38. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +17 -4
  39. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +5 -3
  40. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +5 -5
  41. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +5 -3
  42. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +7 -1
  43. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +14 -2
  44. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +12 -14
  45. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +6 -1
  46. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +32 -5
  47. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +0 -60
  48. package/vscode/src/vs/workbench/api/common/extHostChat.js +11 -2
  49. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +6 -1
  50. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +12 -2
  51. package/vscode/src/vs/workbench/api/common/extHostLogService.js +9 -1
  52. package/vscode/src/vs/workbench/api/common/extHostProgress.js +6 -1
  53. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +11 -2
  54. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +6 -1
  55. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +6 -1
  56. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +10 -2
  57. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +7 -1
  58. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +49 -9
  59. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +397 -274
  60. package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +30 -6
  61. package/vscode/src/vs/workbench/browser/actions/windowActions.js +85 -31
  62. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +56 -102
  63. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +5 -1
  64. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  65. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +55 -11
  66. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +63 -11
  67. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +7 -1
  68. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +15 -3
  69. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +205 -41
  70. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +617 -139
  71. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +578 -114
  72. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +96 -20
  73. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +30 -6
  74. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +46 -9
  75. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +30 -5
  76. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +309 -59
  77. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +5 -1
  78. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +5 -1
  79. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -3
  80. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
  81. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +35 -7
  82. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +185 -33
  83. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +90 -57
  84. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +5 -1
  85. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +16 -3
  86. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +26 -6
  87. package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +35 -6
  88. package/vscode/src/vs/workbench/browser/quickaccess.js +6 -6
  89. package/vscode/src/vs/workbench/browser/workbench.contribution.js +918 -185
  90. package/vscode/src/vs/workbench/common/configuration.js +25 -11
  91. package/vscode/src/vs/workbench/common/contextkeys.js +244 -228
  92. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +7 -1
  93. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +44 -0
  94. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +7 -1
  95. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +6 -1
  96. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +23 -0
  97. package/vscode/src/vs/workbench/common/editor.d.ts +26 -1
  98. package/vscode/src/vs/workbench/common/editor.js +26 -5
  99. package/vscode/src/vs/workbench/common/theme.js +676 -136
  100. package/vscode/src/vs/workbench/common/views.js +8 -3
  101. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +71 -14
  102. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +21 -2
  103. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +133 -21
  104. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +36 -8
  105. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +96 -17
  106. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -2
  107. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +22 -4
  108. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +22 -4
  109. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +41 -8
  110. package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +25 -5
  111. package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +30 -6
  112. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +34 -6
  113. package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +44 -0
  114. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +10 -2
  115. package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +320 -63
  116. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +12 -4
  117. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +15 -3
  118. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +30 -6
  119. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +25 -4
  120. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +10 -2
  121. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +20 -4
  122. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +10 -2
  123. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +10 -2
  124. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +25 -9
  125. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +30 -6
  126. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +25 -5
  127. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +16 -3
  128. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +8 -4
  129. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +23 -3
  130. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +15 -9
  131. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +18 -3
  132. package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +142 -26
  133. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +33 -5
  134. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +45 -7
  135. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +63 -10
  136. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +45 -9
  137. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +16 -8
  138. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +41 -21
  139. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +5 -1
  140. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +5 -1
  141. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +60 -12
  142. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +275 -55
  143. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +7 -1
  144. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +255 -94
  145. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +120 -24
  146. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +22 -4
  147. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +21 -4
  148. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +39 -51
  149. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +394 -75
  150. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +17 -6
  151. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +190 -32
  152. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -1
  153. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +21 -4
  154. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +26 -5
  155. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +81 -14
  156. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +26 -5
  157. package/vscode/src/vs/workbench/contrib/files/common/files.js +70 -26
  158. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +11 -3
  159. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +5 -1
  160. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +20 -4
  161. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +75 -111
  162. package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +5 -1
  163. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +6 -1
  164. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +151 -29
  165. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +10 -2
  166. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +0 -42
  167. package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +115 -23
  168. package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +17 -3
  169. package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +49 -9
  170. package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +66 -13
  171. package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +52 -10
  172. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +10 -2
  173. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +110 -26
  174. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +21 -3
  175. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +15 -3
  176. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +56 -9
  177. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +25 -5
  178. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +16 -26
  179. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +7 -8
  180. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +20 -4
  181. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +35 -7
  182. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +106 -21
  183. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +81 -21
  184. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -1
  185. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +6 -2
  186. package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +592 -112
  187. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +5 -1
  188. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +6 -32
  189. package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +5 -1
  190. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +5 -1
  191. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +5 -1
  192. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +15 -3
  193. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +58 -10
  194. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +5 -1
  195. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +392 -80
  196. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +28 -5
  197. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +10 -2
  198. package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +129 -24
  199. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +10 -2
  200. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +20 -10
  201. package/vscode/src/vs/workbench/services/language/common/languageService.js +122 -22
  202. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +28 -9
  203. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +6 -1
  204. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +48 -9
  205. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -1
  206. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +7 -1
  207. package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +6 -1
  208. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +81 -16
  209. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +1 -50
  210. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +126 -25
  211. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -5
  212. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +6 -14
  213. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +6 -1
@@ -88,17 +88,32 @@ let CommentThreadWidget = class CommentThreadWidget extends Disposable {
88
88
  this.currentThreadListeners();
89
89
  }
90
90
  _setAriaLabel() {
91
- let ariaLabel = localizeWithPath('vs/workbench/contrib/comments/browser/commentThreadWidget', 'commentLabel', "Comment");
91
+ let ariaLabel = ( localizeWithPath(
92
+ 'vs/workbench/contrib/comments/browser/commentThreadWidget',
93
+ 'commentLabel',
94
+ "Comment"
95
+ ));
92
96
  let keybinding;
93
97
  const verbose = this.configurationService.getValue("accessibility.verbosity.comments" );
94
98
  if (verbose) {
95
99
  keybinding = this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp" , this._contextKeyService)?.getLabel() ?? undefined;
96
100
  }
97
101
  if (keybinding) {
98
- ariaLabel = localizeWithPath('vs/workbench/contrib/comments/browser/commentThreadWidget', 'commentLabelWithKeybinding', "{0}, use ({1}) for accessibility help", ariaLabel, keybinding);
102
+ ariaLabel = ( localizeWithPath(
103
+ 'vs/workbench/contrib/comments/browser/commentThreadWidget',
104
+ 'commentLabelWithKeybinding',
105
+ "{0}, use ({1}) for accessibility help",
106
+ ariaLabel,
107
+ keybinding
108
+ ));
99
109
  }
100
110
  else {
101
- ariaLabel = localizeWithPath('vs/workbench/contrib/comments/browser/commentThreadWidget', 'commentLabelWithKeybindingNoKeybinding', "{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.", ariaLabel);
111
+ ariaLabel = ( localizeWithPath(
112
+ 'vs/workbench/contrib/comments/browser/commentThreadWidget',
113
+ 'commentLabelWithKeybindingNoKeybinding',
114
+ "{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
115
+ ariaLabel
116
+ ));
102
117
  }
103
118
  this._body.container.ariaLabel = ariaLabel;
104
119
  }
@@ -15,64 +15,180 @@ 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.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'commentsConfigurationTitle', "Comments"),
18
+ title: ( nls.localizeWithPath(
19
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
20
+ 'commentsConfigurationTitle',
21
+ "Comments"
22
+ )),
19
23
  type: 'object',
20
24
  properties: {
21
25
  'comments.openPanel': {
22
26
  enum: ['neverOpen', 'openOnSessionStart', 'openOnSessionStartWithComments'],
23
27
  default: 'openOnSessionStartWithComments',
24
- description: nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'openComments', "Controls when the comments panel should open."),
28
+ description: ( nls.localizeWithPath(
29
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
30
+ 'openComments',
31
+ "Controls when the comments panel should open."
32
+ )),
25
33
  restricted: false,
26
- markdownDeprecationMessage: nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'comments.openPanel.deprecated', "This setting is deprecated in favor of `comments.openView`.")
34
+ markdownDeprecationMessage: ( nls.localizeWithPath(
35
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
36
+ 'comments.openPanel.deprecated',
37
+ "This setting is deprecated in favor of `comments.openView`."
38
+ ))
27
39
  },
28
40
  'comments.openView': {
29
41
  enum: ['never', 'file', 'firstFile', 'firstFileUnresolved'],
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.")],
42
+ enumDescriptions: [( nls.localizeWithPath(
43
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
44
+ 'comments.openView.never',
45
+ "The comments view will never be opened."
46
+ )), ( nls.localizeWithPath(
47
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
48
+ 'comments.openView.file',
49
+ "The comments view will open when a file with comments is active."
50
+ )), ( nls.localizeWithPath(
51
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
52
+ 'comments.openView.firstFile',
53
+ "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."
54
+ )), ( nls.localizeWithPath(
55
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
56
+ 'comments.openView.firstFileUnresolved',
57
+ "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."
58
+ ))],
31
59
  default: 'firstFile',
32
- description: nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'comments.openView', "Controls when the comments view should open."),
60
+ description: ( nls.localizeWithPath(
61
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
62
+ 'comments.openView',
63
+ "Controls when the comments view should open."
64
+ )),
33
65
  restricted: false
34
66
  },
35
67
  'comments.useRelativeTime': {
36
68
  type: 'boolean',
37
69
  default: true,
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').")
70
+ description: ( nls.localizeWithPath(
71
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
72
+ 'useRelativeTime',
73
+ "Determines if relative time will be used in comment timestamps (ex. '1 day ago')."
74
+ ))
39
75
  },
40
76
  'comments.visible': {
41
77
  type: 'boolean',
42
78
  default: true,
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.")
79
+ description: ( nls.localizeWithPath(
80
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
81
+ 'comments.visible',
82
+ "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."
83
+ ))
44
84
  },
45
85
  'comments.maxHeight': {
46
86
  type: 'boolean',
47
87
  default: true,
48
- description: nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'comments.maxHeight', "Controls whether the comments widget scrolls or expands.")
88
+ description: ( nls.localizeWithPath(
89
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
90
+ 'comments.maxHeight',
91
+ "Controls whether the comments widget scrolls or expands."
92
+ ))
49
93
  },
50
94
  'comments.collapseOnResolve': {
51
95
  type: 'boolean',
52
96
  default: true,
53
- description: nls.localizeWithPath('vs/workbench/contrib/comments/browser/comments.contribution', 'collapseOnResolve', "Controls whether the comment thread should collapse when the thread is resolved.")
97
+ description: ( nls.localizeWithPath(
98
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
99
+ 'collapseOnResolve',
100
+ "Controls whether the comment thread should collapse when the thread is resolved."
101
+ ))
54
102
  }
55
103
  }
56
104
  });
57
105
  var CommentAccessibilityHelpNLS;
58
106
  ( (function(CommentAccessibilityHelpNLS) {
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.");
107
+ CommentAccessibilityHelpNLS.intro = ( nls.localizeWithPath(
108
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
109
+ 'intro',
110
+ "The editor contains commentable range(s). Some useful commands include:"
111
+ ));
112
+ CommentAccessibilityHelpNLS.introWidget = ( nls.localizeWithPath(
113
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
114
+ 'introWidget',
115
+ "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})."
116
+ ));
117
+ CommentAccessibilityHelpNLS.introWidgetNoKb = ( nls.localizeWithPath(
118
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
119
+ 'introWidgetNoKb',
120
+ "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."
121
+ ));
122
+ CommentAccessibilityHelpNLS.commentCommands = ( nls.localizeWithPath(
123
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
124
+ 'commentCommands',
125
+ "Some useful comment commands include:"
126
+ ));
127
+ CommentAccessibilityHelpNLS.escape = ( nls.localizeWithPath(
128
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
129
+ 'escape',
130
+ "- Dismiss Comment (Escape)"
131
+ ));
132
+ CommentAccessibilityHelpNLS.nextRange = ( nls.localizeWithPath(
133
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
134
+ 'next',
135
+ "- Go to Next Commenting Range ({0})"
136
+ ));
137
+ CommentAccessibilityHelpNLS.nextRangeNoKb = ( nls.localizeWithPath(
138
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
139
+ 'nextNoKb',
140
+ "- Go to Next Commenting Range, which is currently not triggerable via keybinding."
141
+ ));
142
+ CommentAccessibilityHelpNLS.previousRange = ( nls.localizeWithPath(
143
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
144
+ 'previous',
145
+ "- Go to Previous Commenting Range ({0})"
146
+ ));
147
+ CommentAccessibilityHelpNLS.previousRangeNoKb = ( nls.localizeWithPath(
148
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
149
+ 'previousNoKb',
150
+ "- Go to Previous Commenting Range, which is currently not triggerable via keybinding."
151
+ ));
152
+ CommentAccessibilityHelpNLS.nextCommentThreadKb = ( nls.localizeWithPath(
153
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
154
+ 'nextCommentThreadKb',
155
+ "- Go to Next Comment Thread ({0})"
156
+ ));
157
+ CommentAccessibilityHelpNLS.nextCommentThreadNoKb = ( nls.localizeWithPath(
158
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
159
+ 'nextCommentThreadNoKb',
160
+ "- Go to Next Comment Thread, which is currently not triggerable via keybinding."
161
+ ));
162
+ CommentAccessibilityHelpNLS.previousCommentThreadKb = ( nls.localizeWithPath(
163
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
164
+ 'previousCommentThreadKb',
165
+ "- Go to Previous Comment Thread ({0})"
166
+ ));
167
+ CommentAccessibilityHelpNLS.previousCommentThreadNoKb = ( nls.localizeWithPath(
168
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
169
+ 'previousCommentThreadNoKb',
170
+ "- Go to Previous Comment Thread, which is currently not triggerable via keybinding."
171
+ ));
172
+ CommentAccessibilityHelpNLS.addComment = ( nls.localizeWithPath(
173
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
174
+ 'addComment',
175
+ "- Add Comment ({0})"
176
+ ));
177
+ CommentAccessibilityHelpNLS.addCommentNoKb = ( nls.localizeWithPath(
178
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
179
+ 'addCommentNoKb',
180
+ "- Add Comment on Current Selection, which is currently not triggerable via keybinding."
181
+ ));
182
+ CommentAccessibilityHelpNLS.submitComment = ( nls.localizeWithPath(
183
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
184
+ 'submitComment',
185
+ "- Submit Comment ({0})"
186
+ ));
187
+ CommentAccessibilityHelpNLS.submitCommentNoKb = ( nls.localizeWithPath(
188
+ 'vs/workbench/contrib/comments/browser/comments.contribution',
189
+ 'submitCommentNoKb',
190
+ "- Submit Comment, accessible via tabbing, as it's currently not triggerable with a keybinding."
191
+ ));
76
192
  })(CommentAccessibilityHelpNLS || (CommentAccessibilityHelpNLS = {})));
77
193
  class CommentsAccessibilityHelpContribution extends Disposable {
78
194
  constructor() {
@@ -702,7 +702,18 @@ 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.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));
705
+ oneLine ? status(( nls.localizeWithPath(
706
+ 'vs/workbench/contrib/comments/browser/commentsController',
707
+ 'commentRange',
708
+ "Line {0}",
709
+ commentRangeStart
710
+ ))) : status(( nls.localizeWithPath(
711
+ 'vs/workbench/contrib/comments/browser/commentsController',
712
+ 'commentRangeStart',
713
+ "Lines {0} to {1}",
714
+ commentRangeStart,
715
+ commentRangeEnd
716
+ )));
706
717
  }
707
718
  }
708
719
  }
@@ -818,14 +829,27 @@ let CommentController = class CommentController {
818
829
  if (verbose) {
819
830
  const keybinding = this.keybindingService.lookupKeybinding("editor.action.accessibilityHelp" )?.getAriaLabel();
820
831
  if (keybinding) {
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));
832
+ status(( nls.localizeWithPath(
833
+ 'vs/workbench/contrib/comments/browser/commentsController',
834
+ 'hasCommentRangesKb',
835
+ "Editor has commenting ranges, run the command Open Accessibility Help ({0}), for more information.",
836
+ keybinding
837
+ )));
822
838
  }
823
839
  else {
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."));
840
+ status(( nls.localizeWithPath(
841
+ 'vs/workbench/contrib/comments/browser/commentsController',
842
+ 'hasCommentRangesNoKb',
843
+ "Editor has commenting ranges, run the command Open Accessibility Help, which is currently not triggerable via keybinding, for more information."
844
+ )));
825
845
  }
826
846
  }
827
847
  else {
828
- status(nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsController', 'hasCommentRanges', "Editor has commenting ranges."));
848
+ status(( nls.localizeWithPath(
849
+ 'vs/workbench/contrib/comments/browser/commentsController',
850
+ 'hasCommentRanges',
851
+ "Editor has commenting ranges."
852
+ )));
829
853
  }
830
854
  }
831
855
  }
@@ -949,7 +973,11 @@ let CommentController = class CommentController {
949
973
  }
950
974
  else {
951
975
  const picks = this.getCommentProvidersQuickPicks(newCommentInfos);
952
- return this.quickInputService.pick(picks, { placeHolder: nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsController', 'pickCommentService', "Select Comment Provider"), matchOnDescription: true }).then(pick => {
976
+ return this.quickInputService.pick(picks, { placeHolder: ( nls.localizeWithPath(
977
+ 'vs/workbench/contrib/comments/browser/commentsController',
978
+ 'pickCommentService',
979
+ "Select Comment Provider"
980
+ )), matchOnDescription: true }).then(pick => {
953
981
  if (!pick) {
954
982
  return;
955
983
  }
@@ -21,7 +21,11 @@ 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.localizeWithPath('vs/workbench/contrib/comments/browser/commentsTreeViewer', 'comments.view.title', "Comments");
24
+ const COMMENTS_VIEW_TITLE = ( nls.localizeWithPath(
25
+ 'vs/workbench/contrib/comments/browser/commentsTreeViewer',
26
+ 'comments.view.title',
27
+ "Comments"
28
+ ));
25
29
  class CommentsModelVirualDelegate {
26
30
  static { this.RESOURCE_ID = 'resource-with-comments'; }
27
31
  static { this.COMMENT_ID = 'comment-node'; }
@@ -99,10 +103,19 @@ let CommentNodeRenderer = class CommentNodeRenderer {
99
103
  }
100
104
  getCountString(commentCount) {
101
105
  if (commentCount > 1) {
102
- return nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsTreeViewer', 'commentsCount', "{0} comments", commentCount);
106
+ return ( nls.localizeWithPath(
107
+ 'vs/workbench/contrib/comments/browser/commentsTreeViewer',
108
+ 'commentsCount',
109
+ "{0} comments",
110
+ commentCount
111
+ ));
103
112
  }
104
113
  else {
105
- return nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsTreeViewer', 'commentCount', "1 comment");
114
+ return ( nls.localizeWithPath(
115
+ 'vs/workbench/contrib/comments/browser/commentsTreeViewer',
116
+ 'commentCount',
117
+ "1 comment"
118
+ ));
106
119
  }
107
120
  }
108
121
  getRenderedComment(commentBody, disposables) {
@@ -117,7 +130,16 @@ let CommentNodeRenderer = class CommentNodeRenderer {
117
130
  for (let i = 0; i < images.length; i++) {
118
131
  const image = images[i];
119
132
  const textDescription = dom.$('');
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");
133
+ textDescription.textContent = image.alt ? ( nls.localizeWithPath(
134
+ 'vs/workbench/contrib/comments/browser/commentsTreeViewer',
135
+ 'imageWithLabel',
136
+ "Image: {0}",
137
+ image.alt
138
+ )) : ( nls.localizeWithPath(
139
+ 'vs/workbench/contrib/comments/browser/commentsTreeViewer',
140
+ 'image',
141
+ "Image"
142
+ ));
121
143
  image.parentNode.replaceChild(textDescription, image);
122
144
  }
123
145
  return renderedComment;
@@ -158,10 +180,21 @@ let CommentNodeRenderer = class CommentNodeRenderer {
158
180
  }
159
181
  if (node.element.range) {
160
182
  if (node.element.range.startLineNumber === node.element.range.endLineNumber) {
161
- templateData.threadMetadata.range.textContent = nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsTreeViewer', 'commentLine', "[Ln {0}]", node.element.range.startLineNumber);
183
+ templateData.threadMetadata.range.textContent = ( nls.localizeWithPath(
184
+ 'vs/workbench/contrib/comments/browser/commentsTreeViewer',
185
+ 'commentLine',
186
+ "[Ln {0}]",
187
+ node.element.range.startLineNumber
188
+ ));
162
189
  }
163
190
  else {
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);
191
+ templateData.threadMetadata.range.textContent = ( nls.localizeWithPath(
192
+ 'vs/workbench/contrib/comments/browser/commentsTreeViewer',
193
+ 'commentRange',
194
+ "[Ln {0}-{1}]",
195
+ node.element.range.startLineNumber,
196
+ node.element.range.endLineNumber
197
+ ));
165
198
  }
166
199
  }
167
200
  if (!node.element.hasReply()) {
@@ -171,7 +204,12 @@ let CommentNodeRenderer = class CommentNodeRenderer {
171
204
  templateData.repliesMetadata.container.style.display = '';
172
205
  templateData.repliesMetadata.count.textContent = this.getCountString(commentCount);
173
206
  const lastComment = node.element.replies[node.element.replies.length - 1].comment;
174
- templateData.repliesMetadata.lastReplyDetail.textContent = nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsTreeViewer', 'lastReplyFrom', "Last reply from {0}", lastComment.userName);
207
+ templateData.repliesMetadata.lastReplyDetail.textContent = ( nls.localizeWithPath(
208
+ 'vs/workbench/contrib/comments/browser/commentsTreeViewer',
209
+ 'lastReplyFrom',
210
+ "Last reply from {0}",
211
+ lastComment.userName
212
+ ));
175
213
  templateData.repliesMetadata.timestamp.setTimestamp(lastComment.timestamp ? ( new Date(lastComment.timestamp)) : undefined);
176
214
  }
177
215
  getCommentThreadWidgetStateColor(state, theme) {
@@ -54,8 +54,16 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
54
54
  super({
55
55
  ...options,
56
56
  filterOptions: {
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"),
57
+ placeholder: ( nls.localizeWithPath(
58
+ 'vs/workbench/contrib/comments/browser/commentsView',
59
+ 'comments.filter.placeholder',
60
+ "Filter (e.g. text, author)"
61
+ )),
62
+ ariaLabel: ( nls.localizeWithPath(
63
+ 'vs/workbench/contrib/comments/browser/commentsView',
64
+ 'comments.filter.ariaLabel',
65
+ "Filter comments"
66
+ )),
59
67
  history: viewState['filterHistory'] || [],
60
68
  text: viewState['filter'] || '',
61
69
  focusContextKey: CommentsViewFilterFocusContextKey.key
@@ -97,7 +105,12 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
97
105
  return;
98
106
  }
99
107
  this.totalUnresolved = unresolved;
100
- const message = nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'totalUnresolvedComments', '{0} Unresolved Comments', this.totalUnresolved);
108
+ const message = ( nls.localizeWithPath(
109
+ 'vs/workbench/contrib/comments/browser/commentsView',
110
+ 'totalUnresolvedComments',
111
+ '{0} Unresolved Comments',
112
+ this.totalUnresolved
113
+ ));
101
114
  this.activity.value = this.activityService.showViewActivity(this.id, { badge: ( new NumberBadge(this.totalUnresolved, () => message)) });
102
115
  }
103
116
  saveState() {
@@ -148,7 +161,13 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
148
161
  this.tree?.filterComments();
149
162
  this.cachedFilterStats = undefined;
150
163
  const { total, filtered } = this.getFilterStats();
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));
164
+ this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( nls.localizeWithPath(
165
+ 'vs/workbench/contrib/comments/browser/commentsView',
166
+ 'showing filtered results',
167
+ "Showing {0} of {1}",
168
+ filtered,
169
+ total
170
+ )));
152
171
  this.filterWidget.checkMoreFilters(!this.filters.showResolved || !this.filters.showUnresolved);
153
172
  }
154
173
  renderBody(container) {
@@ -262,17 +281,43 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
262
281
  accessibilityProvider: {
263
282
  getAriaLabel(element) {
264
283
  if (element instanceof CommentsModel) {
265
- return nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'rootCommentsLabel', "Comments for current workspace");
284
+ return ( nls.localizeWithPath(
285
+ 'vs/workbench/contrib/comments/browser/commentsView',
286
+ 'rootCommentsLabel',
287
+ "Comments for current workspace"
288
+ ));
266
289
  }
267
290
  if (element instanceof ResourceWithCommentThreads) {
268
- return nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'resourceWithCommentThreadsLabel', "Comments in {0}, full path {1}", basename(element.resource), element.resource.fsPath);
291
+ return ( nls.localizeWithPath(
292
+ 'vs/workbench/contrib/comments/browser/commentsView',
293
+ 'resourceWithCommentThreadsLabel',
294
+ "Comments in {0}, full path {1}",
295
+ basename(element.resource),
296
+ element.resource.fsPath
297
+ ));
269
298
  }
270
299
  if (element instanceof CommentNode) {
271
300
  if (element.range) {
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);
301
+ return ( nls.localizeWithPath(
302
+ 'vs/workbench/contrib/comments/browser/commentsView',
303
+ 'resourceWithCommentLabel',
304
+ "Comment from ${0} at line {1} column {2} in {3}, source: {4}",
305
+ element.comment.userName,
306
+ element.range.startLineNumber,
307
+ element.range.startColumn,
308
+ basename(element.resource),
309
+ (typeof element.comment.body === 'string') ? element.comment.body : element.comment.body.value
310
+ ));
273
311
  }
274
312
  else {
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);
313
+ return ( nls.localizeWithPath(
314
+ 'vs/workbench/contrib/comments/browser/commentsView',
315
+ 'resourceWithCommentLabelFile',
316
+ "Comment from ${0} in {1}, source: {2}",
317
+ element.comment.userName,
318
+ basename(element.resource),
319
+ (typeof element.comment.body === 'string') ? element.comment.body : element.comment.body.value
320
+ ));
276
321
  }
277
322
  }
278
323
  return '';
@@ -450,7 +495,11 @@ registerAction2(class Collapse extends ViewAction {
450
495
  super({
451
496
  viewId: COMMENTS_VIEW_ID,
452
497
  id: 'comments.collapse',
453
- title: nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'collapseAll', "Collapse All"),
498
+ title: ( nls.localizeWithPath(
499
+ 'vs/workbench/contrib/comments/browser/commentsView',
500
+ 'collapseAll',
501
+ "Collapse All"
502
+ )),
454
503
  f1: false,
455
504
  icon: Codicon.collapseAll,
456
505
  menu: {
@@ -470,7 +519,11 @@ registerAction2(class Expand extends ViewAction {
470
519
  super({
471
520
  viewId: COMMENTS_VIEW_ID,
472
521
  id: 'comments.expand',
473
- title: nls.localizeWithPath('vs/workbench/contrib/comments/browser/commentsView', 'expandAll', "Expand All"),
522
+ title: ( nls.localizeWithPath(
523
+ 'vs/workbench/contrib/comments/browser/commentsView',
524
+ 'expandAll',
525
+ "Expand All"
526
+ )),
474
527
  f1: false,
475
528
  icon: Codicon.expandAll,
476
529
  menu: {
@@ -44,7 +44,11 @@ registerAction2(class extends ViewAction {
44
44
  constructor() {
45
45
  super({
46
46
  id: 'commentsFocusViewFromFilter',
47
- title: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'focusCommentsList', "Focus Comments view"),
47
+ title: ( localizeWithPath(
48
+ 'vs/workbench/contrib/comments/browser/commentsViewActions',
49
+ 'focusCommentsList',
50
+ "Focus Comments view"
51
+ )),
48
52
  keybinding: {
49
53
  when: CommentsViewFilterFocusContextKey,
50
54
  weight: 200 ,
@@ -61,7 +65,11 @@ registerAction2(class extends ViewAction {
61
65
  constructor() {
62
66
  super({
63
67
  id: 'commentsClearFilterText',
64
- title: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'commentsClearFilterText', "Clear filter text"),
68
+ title: ( localizeWithPath(
69
+ 'vs/workbench/contrib/comments/browser/commentsViewActions',
70
+ 'commentsClearFilterText',
71
+ "Clear filter text"
72
+ )),
65
73
  keybinding: {
66
74
  when: CommentsViewFilterFocusContextKey,
67
75
  weight: 200 ,
@@ -78,7 +86,11 @@ registerAction2(class extends ViewAction {
78
86
  constructor() {
79
87
  super({
80
88
  id: 'commentsFocusFilter',
81
- title: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'focusCommentsFilter', "Focus comments filter"),
89
+ title: ( localizeWithPath(
90
+ 'vs/workbench/contrib/comments/browser/commentsViewActions',
91
+ 'focusCommentsFilter',
92
+ "Focus comments filter"
93
+ )),
82
94
  keybinding: {
83
95
  when: ( FocusedViewContext.isEqualTo(COMMENTS_VIEW_ID)),
84
96
  weight: 200 ,
@@ -95,11 +107,23 @@ registerAction2(class extends ViewAction {
95
107
  constructor() {
96
108
  super({
97
109
  id: `workbench.actions.${COMMENTS_VIEW_ID}.toggleUnResolvedComments`,
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"),
110
+ title: ( localizeWithPath(
111
+ 'vs/workbench/contrib/comments/browser/commentsViewActions',
112
+ 'toggle unresolved',
113
+ "Toggle Unresolved Comments"
114
+ )),
115
+ category: ( localizeWithPath(
116
+ 'vs/workbench/contrib/comments/browser/commentsViewActions',
117
+ 'comments',
118
+ "Comments"
119
+ )),
100
120
  toggled: {
101
121
  condition: CONTEXT_KEY_SHOW_UNRESOLVED,
102
- title: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'unresolved', "Show Unresolved"),
122
+ title: ( localizeWithPath(
123
+ 'vs/workbench/contrib/comments/browser/commentsViewActions',
124
+ 'unresolved',
125
+ "Show Unresolved"
126
+ )),
103
127
  },
104
128
  menu: {
105
129
  id: viewFilterSubmenu,
@@ -118,11 +142,23 @@ registerAction2(class extends ViewAction {
118
142
  constructor() {
119
143
  super({
120
144
  id: `workbench.actions.${COMMENTS_VIEW_ID}.toggleResolvedComments`,
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"),
145
+ title: ( localizeWithPath(
146
+ 'vs/workbench/contrib/comments/browser/commentsViewActions',
147
+ 'toggle resolved',
148
+ "Toggle Resolved Comments"
149
+ )),
150
+ category: ( localizeWithPath(
151
+ 'vs/workbench/contrib/comments/browser/commentsViewActions',
152
+ 'comments',
153
+ "Comments"
154
+ )),
123
155
  toggled: {
124
156
  condition: CONTEXT_KEY_SHOW_RESOLVED,
125
- title: localizeWithPath('vs/workbench/contrib/comments/browser/commentsViewActions', 'resolved', "Show Resolved"),
157
+ title: ( localizeWithPath(
158
+ 'vs/workbench/contrib/comments/browser/commentsViewActions',
159
+ 'resolved',
160
+ "Show Resolved"
161
+ )),
126
162
  },
127
163
  menu: {
128
164
  id: viewFilterSubmenu,