@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
@@ -63,18 +63,40 @@ let BulkEdit = class BulkEdit {
63
63
  }
64
64
  }
65
65
  if (this._edits.length === 0) {
66
- return localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'summary.0', "Made no edits");
66
+ return ( localizeWithPath(
67
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
68
+ 'summary.0',
69
+ "Made no edits"
70
+ ));
67
71
  }
68
72
  else if (otherResources.size === 0) {
69
73
  if (textEditCount > 1 && textEditResources.size > 1) {
70
- return localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'summary.nm', "Made {0} text edits in {1} files", textEditCount, textEditResources.size);
74
+ return ( localizeWithPath(
75
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
76
+ 'summary.nm',
77
+ "Made {0} text edits in {1} files",
78
+ textEditCount,
79
+ textEditResources.size
80
+ ));
71
81
  }
72
82
  else {
73
- return localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'summary.n0', "Made {0} text edits in one file", textEditCount);
83
+ return ( localizeWithPath(
84
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
85
+ 'summary.n0',
86
+ "Made {0} text edits in one file",
87
+ textEditCount
88
+ ));
74
89
  }
75
90
  }
76
91
  else {
77
- return localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'summary.textFiles', "Made {0} text edits in {1} files, also created or deleted {2} files", textEditCount, textEditResources.size, otherResources.size);
92
+ return ( localizeWithPath(
93
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
94
+ 'summary.textFiles',
95
+ "Made {0} text edits in {1} files, also created or deleted {2} files",
96
+ textEditCount,
97
+ textEditResources.size,
98
+ otherResources.size
99
+ ));
78
100
  }
79
101
  }
80
102
  async perform() {
@@ -118,12 +140,20 @@ let BulkEdit = class BulkEdit {
118
140
  }
119
141
  async _performFileEdits(edits, undoRedoGroup, undoRedoSource, confirmBeforeUndo, progress) {
120
142
  this._logService.debug('_performFileEdits', JSON.stringify(edits));
121
- const model = this._instaService.createInstance(BulkFileEdits, this._label || localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'workspaceEdit', "Workspace Edit"), this._code || 'undoredo.workspaceEdit', undoRedoGroup, undoRedoSource, confirmBeforeUndo, progress, this._token, edits);
143
+ const model = this._instaService.createInstance(BulkFileEdits, this._label || ( localizeWithPath(
144
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
145
+ 'workspaceEdit',
146
+ "Workspace Edit"
147
+ )), this._code || 'undoredo.workspaceEdit', undoRedoGroup, undoRedoSource, confirmBeforeUndo, progress, this._token, edits);
122
148
  return await model.apply();
123
149
  }
124
150
  async _performTextEdits(edits, undoRedoGroup, undoRedoSource, progress) {
125
151
  this._logService.debug('_performTextEdits', JSON.stringify(edits));
126
- const model = this._instaService.createInstance(BulkTextEdits, this._label || localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'workspaceEdit', "Workspace Edit"), this._code || 'undoredo.workspaceEdit', this._editor, undoRedoGroup, undoRedoSource, progress, this._token, edits);
152
+ const model = this._instaService.createInstance(BulkTextEdits, this._label || ( localizeWithPath(
153
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
154
+ 'workspaceEdit',
155
+ "Workspace Edit"
156
+ )), this._code || 'undoredo.workspaceEdit', this._editor, undoRedoGroup, undoRedoSource, progress, this._token, edits);
127
157
  return await model.apply();
128
158
  }
129
159
  async _performCellEdits(edits, undoRedoGroup, undoRedoSource, progress) {
@@ -161,7 +191,11 @@ let BulkEditService = class BulkEditService {
161
191
  async apply(editsIn, options) {
162
192
  let edits = liftEdits(Array.isArray(editsIn) ? editsIn : editsIn.edits);
163
193
  if (edits.length === 0) {
164
- return { ariaSummary: localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'nothing', "Made no edits"), isApplied: false };
194
+ return { ariaSummary: ( localizeWithPath(
195
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
196
+ 'nothing',
197
+ "Made no edits"
198
+ )), isApplied: false };
165
199
  }
166
200
  if (this._previewHandler && (options?.showPreview || ( edits.some(value => value.metadata?.needsConfirmation)))) {
167
201
  edits = await this._previewHandler(edits, options);
@@ -232,25 +266,66 @@ let BulkEditService = class BulkEditService {
232
266
  let primaryButton;
233
267
  switch (reason) {
234
268
  case 1 :
235
- message = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'closeTheWindow.message', "Are you sure you want to close the window?");
236
- primaryButton = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', { key: 'closeTheWindow', comment: ['&& denotes a mnemonic'] }, "&&Close Window");
269
+ message = ( localizeWithPath(
270
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
271
+ 'closeTheWindow.message',
272
+ "Are you sure you want to close the window?"
273
+ ));
274
+ primaryButton = ( localizeWithPath(
275
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
276
+ { key: 'closeTheWindow', comment: ['&& denotes a mnemonic'] },
277
+ "&&Close Window"
278
+ ));
237
279
  break;
238
280
  case 4 :
239
- message = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'changeWorkspace.message', "Are you sure you want to change the workspace?");
240
- primaryButton = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', { key: 'changeWorkspace', comment: ['&& denotes a mnemonic'] }, "Change &&Workspace");
281
+ message = ( localizeWithPath(
282
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
283
+ 'changeWorkspace.message',
284
+ "Are you sure you want to change the workspace?"
285
+ ));
286
+ primaryButton = ( localizeWithPath(
287
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
288
+ { key: 'changeWorkspace', comment: ['&& denotes a mnemonic'] },
289
+ "Change &&Workspace"
290
+ ));
241
291
  break;
242
292
  case 3 :
243
- message = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'reloadTheWindow.message', "Are you sure you want to reload the window?");
244
- primaryButton = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', { key: 'reloadTheWindow', comment: ['&& denotes a mnemonic'] }, "&&Reload Window");
293
+ message = ( localizeWithPath(
294
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
295
+ 'reloadTheWindow.message',
296
+ "Are you sure you want to reload the window?"
297
+ ));
298
+ primaryButton = ( localizeWithPath(
299
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
300
+ { key: 'reloadTheWindow', comment: ['&& denotes a mnemonic'] },
301
+ "&&Reload Window"
302
+ ));
245
303
  break;
246
304
  default:
247
- message = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'quit.message', "Are you sure you want to quit?");
248
- primaryButton = localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', { key: 'quit', comment: ['&& denotes a mnemonic'] }, "&&Quit");
305
+ message = ( localizeWithPath(
306
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
307
+ 'quit.message',
308
+ "Are you sure you want to quit?"
309
+ ));
310
+ primaryButton = ( localizeWithPath(
311
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
312
+ { key: 'quit', comment: ['&& denotes a mnemonic'] },
313
+ "&&Quit"
314
+ ));
249
315
  break;
250
316
  }
251
317
  const result = await this._dialogService.confirm({
252
318
  message,
253
- detail: localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'areYouSureQuiteBulkEdit.detail', "'{0}' is in progress.", label || localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'fileOperation', "File operation")),
319
+ detail: ( localizeWithPath(
320
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
321
+ 'areYouSureQuiteBulkEdit.detail',
322
+ "'{0}' is in progress.",
323
+ label || ( localizeWithPath(
324
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
325
+ 'fileOperation',
326
+ "File operation"
327
+ ))
328
+ )),
254
329
  primaryButton
255
330
  });
256
331
  return !result.confirmed;
@@ -270,7 +345,11 @@ const autoSaveSetting = 'files.refactoring.autoSave';
270
345
  id: 'files',
271
346
  properties: {
272
347
  [autoSaveSetting]: {
273
- description: localizeWithPath('vs/workbench/contrib/bulkEdit/browser/bulkEditService', 'refactoring.autoSave', "Controls if files that were part of a refactoring are saved automatically"),
348
+ description: ( localizeWithPath(
349
+ 'vs/workbench/contrib/bulkEdit/browser/bulkEditService',
350
+ 'refactoring.autoSave',
351
+ "Controls if files that were part of a refactoring are saved automatically"
352
+ )),
274
353
  default: true,
275
354
  type: 'boolean'
276
355
  }
@@ -1,4 +1,2 @@
1
- import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
2
- ({ value: localizeWithPath('vs/workbench/contrib/chat/browser/actions/chatActions', 'chat.category', "Chat"), original: 'Chat' });
3
1
  const CHAT_OPEN_ACTION_ID = 'workbench.action.chat.open';
4
2
  export { CHAT_OPEN_ACTION_ID };
@@ -14,16 +14,28 @@ const agentItem = {
14
14
  properties: {
15
15
  agent: {
16
16
  type: 'string',
17
- markdownDescription: localizeWithPath('vs/workbench/contrib/chat/common/chatAgents', 'agent', "The name of the agent which will be used as prefix.")
17
+ markdownDescription: ( localizeWithPath(
18
+ 'vs/workbench/contrib/chat/common/chatAgents',
19
+ 'agent',
20
+ "The name of the agent which will be used as prefix."
21
+ ))
18
22
  },
19
23
  detail: {
20
24
  type: 'string',
21
- markdownDescription: localizeWithPath('vs/workbench/contrib/chat/common/chatAgents', 'details', "The details of the agent.")
25
+ markdownDescription: ( localizeWithPath(
26
+ 'vs/workbench/contrib/chat/common/chatAgents',
27
+ 'details',
28
+ "The details of the agent."
29
+ ))
22
30
  },
23
31
  }
24
32
  };
25
33
  const agentItems = {
26
- description: localizeWithPath('vs/workbench/contrib/chat/common/chatAgents', 'vscode.extension.contributes.slashes', "Contributes agents to chat"),
34
+ description: ( localizeWithPath(
35
+ 'vs/workbench/contrib/chat/common/chatAgents',
36
+ 'vscode.extension.contributes.slashes',
37
+ "Contributes agents to chat"
38
+ )),
27
39
  oneOf: [
28
40
  agentItem,
29
41
  {
@@ -115,7 +127,13 @@ let ChatAgentContribution = class ChatAgentContribution {
115
127
  const { value } = entry;
116
128
  for (const candidate of Iterable.wrap(value)) {
117
129
  if (!isAgentData(candidate)) {
118
- entry.collector.error(localizeWithPath('vs/workbench/contrib/chat/common/chatAgents', 'invalid', "Invalid {0}: {1}", agentsExtPoint.name, JSON.stringify(candidate)));
130
+ entry.collector.error(( localizeWithPath(
131
+ 'vs/workbench/contrib/chat/common/chatAgents',
132
+ 'invalid',
133
+ "Invalid {0}: {1}",
134
+ agentsExtPoint.name,
135
+ JSON.stringify(candidate)
136
+ )));
119
137
  continue;
120
138
  }
121
139
  contributions.add(chatAgentService.registerAgentData({ ...candidate }));
@@ -13,16 +13,28 @@ const slashItem = {
13
13
  properties: {
14
14
  command: {
15
15
  type: 'string',
16
- markdownDescription: localizeWithPath('vs/workbench/contrib/chat/common/chatSlashCommands', 'command', "The name of the slash command which will be used as prefix.")
16
+ markdownDescription: ( localizeWithPath(
17
+ 'vs/workbench/contrib/chat/common/chatSlashCommands',
18
+ 'command',
19
+ "The name of the slash command which will be used as prefix."
20
+ ))
17
21
  },
18
22
  detail: {
19
23
  type: 'string',
20
- markdownDescription: localizeWithPath('vs/workbench/contrib/chat/common/chatSlashCommands', 'details', "The details of the slash command.")
24
+ markdownDescription: ( localizeWithPath(
25
+ 'vs/workbench/contrib/chat/common/chatSlashCommands',
26
+ 'details',
27
+ "The details of the slash command."
28
+ ))
21
29
  },
22
30
  }
23
31
  };
24
32
  const slashItems = {
25
- description: localizeWithPath('vs/workbench/contrib/chat/common/chatSlashCommands', 'vscode.extension.contributes.slashes', "Contributes slash commands to chat"),
33
+ description: ( localizeWithPath(
34
+ 'vs/workbench/contrib/chat/common/chatSlashCommands',
35
+ 'vscode.extension.contributes.slashes',
36
+ "Contributes slash commands to chat"
37
+ )),
26
38
  oneOf: [
27
39
  slashItem,
28
40
  {
@@ -56,7 +68,13 @@ let ChatSlashCommandContribution = class ChatSlashCommandContribution {
56
68
  const { value } = entry;
57
69
  for (const candidate of Iterable.wrap(value)) {
58
70
  if (!isChatSlashData(candidate)) {
59
- entry.collector.error(localizeWithPath('vs/workbench/contrib/chat/common/chatSlashCommands', 'invalid', "Invalid {0}: {1}", slashesExtPoint.name, JSON.stringify(candidate)));
71
+ entry.collector.error(( localizeWithPath(
72
+ 'vs/workbench/contrib/chat/common/chatSlashCommands',
73
+ 'invalid',
74
+ "Invalid {0}: {1}",
75
+ slashesExtPoint.name,
76
+ JSON.stringify(candidate)
77
+ )));
60
78
  continue;
61
79
  }
62
80
  contributions.add(slashCommandService.registerSlashData({ ...candidate }));
@@ -13,18 +13,42 @@ const createCodeActionsAutoSave = (description) => {
13
13
  type: ['string', 'boolean'],
14
14
  enum: ['always', 'explicit', 'never', true, false],
15
15
  enumDescriptions: [
16
- nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'alwaysSave', 'Triggers Code Actions on explicit saves and auto saves triggered by window or focus changes.'),
17
- nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'explicitSave', 'Triggers Code Actions only when explicitly saved'),
18
- nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'neverSave', 'Never triggers Code Actions on save'),
19
- nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'explicitSaveBoolean', 'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'),
20
- nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'neverSaveBoolean', 'Never triggers Code Actions on save. This value will be deprecated in favor of "never".')
16
+ ( nls.localizeWithPath(
17
+ 'vs/workbench/contrib/codeActions/browser/codeActionsContribution',
18
+ 'alwaysSave',
19
+ 'Triggers Code Actions on explicit saves and auto saves triggered by window or focus changes.'
20
+ )),
21
+ ( nls.localizeWithPath(
22
+ 'vs/workbench/contrib/codeActions/browser/codeActionsContribution',
23
+ 'explicitSave',
24
+ 'Triggers Code Actions only when explicitly saved'
25
+ )),
26
+ ( nls.localizeWithPath(
27
+ 'vs/workbench/contrib/codeActions/browser/codeActionsContribution',
28
+ 'neverSave',
29
+ 'Never triggers Code Actions on save'
30
+ )),
31
+ ( nls.localizeWithPath(
32
+ 'vs/workbench/contrib/codeActions/browser/codeActionsContribution',
33
+ 'explicitSaveBoolean',
34
+ 'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'
35
+ )),
36
+ ( nls.localizeWithPath(
37
+ 'vs/workbench/contrib/codeActions/browser/codeActionsContribution',
38
+ 'neverSaveBoolean',
39
+ 'Never triggers Code Actions on save. This value will be deprecated in favor of "never".'
40
+ ))
21
41
  ],
22
42
  default: true,
23
43
  description: description
24
44
  };
25
45
  };
26
46
  const codeActionsOnSaveDefaultProperties = ( Object.freeze({
27
- 'source.fixAll': createCodeActionsAutoSave(nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'codeActionsOnSave.fixAll', "Controls whether auto fix action should be run on file save.")),
47
+ 'source.fixAll': createCodeActionsAutoSave(( nls.localizeWithPath(
48
+ 'vs/workbench/contrib/codeActions/browser/codeActionsContribution',
49
+ 'codeActionsOnSave.fixAll',
50
+ "Controls whether auto fix action should be run on file save."
51
+ ))),
28
52
  }));
29
53
  const codeActionsOnSaveSchema = {
30
54
  oneOf: [
@@ -40,7 +64,11 @@ const codeActionsOnSaveSchema = {
40
64
  items: { type: 'string' }
41
65
  }
42
66
  ],
43
- markdownDescription: nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'editor.codeActionsOnSave', 'Run CodeActions for the editor on save. CodeActions must be specified and the editor must not be shutting down. Example: `"source.organizeImports": "explicit" `'),
67
+ markdownDescription: ( nls.localizeWithPath(
68
+ 'vs/workbench/contrib/codeActions/browser/codeActionsContribution',
69
+ 'editor.codeActionsOnSave',
70
+ 'Run CodeActions for the editor on save. CodeActions must be specified and the editor must not be shutting down. Example: `"source.organizeImports": "explicit" `'
71
+ )),
44
72
  type: 'object',
45
73
  additionalProperties: {
46
74
  type: ['string', 'boolean'],
@@ -73,7 +101,12 @@ let CodeActionsContribution = class CodeActionsContribution extends Disposable {
73
101
  updateConfigurationSchema(codeActionContributions) {
74
102
  const newProperties = { ...codeActionsOnSaveDefaultProperties };
75
103
  for (const [sourceAction, props] of this.getSourceActions(codeActionContributions)) {
76
- newProperties[sourceAction] = createCodeActionsAutoSave(nls.localizeWithPath('vs/workbench/contrib/codeActions/browser/codeActionsContribution', 'codeActionsOnSave.generic', "Controls whether '{0}' actions should be run on file save.", props.title));
104
+ newProperties[sourceAction] = createCodeActionsAutoSave(( nls.localizeWithPath(
105
+ 'vs/workbench/contrib/codeActions/browser/codeActionsContribution',
106
+ 'codeActionsOnSave.generic',
107
+ "Controls whether '{0}' actions should be run on file save.",
108
+ props.title
109
+ )));
77
110
  }
78
111
  codeActionsOnSaveSchema.properties = newProperties;
79
112
  ( Registry.as(Extensions.Configuration))
@@ -10,14 +10,22 @@ var CodeActionExtensionPointFields;
10
10
  })(CodeActionExtensionPointFields || (CodeActionExtensionPointFields = {})));
11
11
  const codeActionsExtensionPointSchema = ( Object.freeze({
12
12
  type: 'array',
13
- markdownDescription: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint', 'contributes.codeActions', "Configure which editor to use for a resource."),
13
+ markdownDescription: ( nls.localizeWithPath(
14
+ 'vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint',
15
+ 'contributes.codeActions',
16
+ "Configure which editor to use for a resource."
17
+ )),
14
18
  items: {
15
19
  type: 'object',
16
20
  required: [CodeActionExtensionPointFields.languages, CodeActionExtensionPointFields.actions],
17
21
  properties: {
18
22
  [CodeActionExtensionPointFields.languages]: {
19
23
  type: 'array',
20
- description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint', 'contributes.codeActions.languages', "Language modes that the code actions are enabled for."),
24
+ description: ( nls.localizeWithPath(
25
+ 'vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint',
26
+ 'contributes.codeActions.languages',
27
+ "Language modes that the code actions are enabled for."
28
+ )),
21
29
  items: { type: 'string' }
22
30
  },
23
31
  [CodeActionExtensionPointFields.actions]: {
@@ -26,15 +34,27 @@ const codeActionsExtensionPointSchema = ( Object.freeze({
26
34
  properties: {
27
35
  [CodeActionExtensionPointFields.kind]: {
28
36
  type: 'string',
29
- markdownDescription: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint', 'contributes.codeActions.kind', "`CodeActionKind` of the contributed code action."),
37
+ markdownDescription: ( nls.localizeWithPath(
38
+ 'vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint',
39
+ 'contributes.codeActions.kind',
40
+ "`CodeActionKind` of the contributed code action."
41
+ )),
30
42
  },
31
43
  [CodeActionExtensionPointFields.title]: {
32
44
  type: 'string',
33
- description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint', 'contributes.codeActions.title', "Label for the code action used in the UI."),
45
+ description: ( nls.localizeWithPath(
46
+ 'vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint',
47
+ 'contributes.codeActions.title',
48
+ "Label for the code action used in the UI."
49
+ )),
34
50
  },
35
51
  [CodeActionExtensionPointFields.description]: {
36
52
  type: 'string',
37
- description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint', 'contributes.codeActions.description', "Description of what the code action does."),
53
+ description: ( nls.localizeWithPath(
54
+ 'vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint',
55
+ 'contributes.codeActions.description',
56
+ "Description of what the code action does."
57
+ )),
38
58
  },
39
59
  }
40
60
  }
@@ -10,14 +10,26 @@ var DocumentationExtensionPointFields;
10
10
  ));
11
11
  const documentationExtensionPointSchema = ( Object.freeze({
12
12
  type: 'object',
13
- description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/documentationExtensionPoint', 'contributes.documentation', "Contributed documentation."),
13
+ description: ( nls.localizeWithPath(
14
+ 'vs/workbench/contrib/codeActions/common/documentationExtensionPoint',
15
+ 'contributes.documentation',
16
+ "Contributed documentation."
17
+ )),
14
18
  properties: {
15
19
  'refactoring': {
16
20
  type: 'array',
17
- description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/documentationExtensionPoint', 'contributes.documentation.refactorings', "Contributed documentation for refactorings."),
21
+ description: ( nls.localizeWithPath(
22
+ 'vs/workbench/contrib/codeActions/common/documentationExtensionPoint',
23
+ 'contributes.documentation.refactorings',
24
+ "Contributed documentation for refactorings."
25
+ )),
18
26
  items: {
19
27
  type: 'object',
20
- description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/documentationExtensionPoint', 'contributes.documentation.refactoring', "Contributed documentation for refactoring."),
28
+ description: ( nls.localizeWithPath(
29
+ 'vs/workbench/contrib/codeActions/common/documentationExtensionPoint',
30
+ 'contributes.documentation.refactoring',
31
+ "Contributed documentation for refactoring."
32
+ )),
21
33
  required: [
22
34
  DocumentationExtensionPointFields.title,
23
35
  DocumentationExtensionPointFields.when,
@@ -26,15 +38,27 @@ const documentationExtensionPointSchema = ( Object.freeze({
26
38
  properties: {
27
39
  [DocumentationExtensionPointFields.title]: {
28
40
  type: 'string',
29
- description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/documentationExtensionPoint', 'contributes.documentation.refactoring.title', "Label for the documentation used in the UI."),
41
+ description: ( nls.localizeWithPath(
42
+ 'vs/workbench/contrib/codeActions/common/documentationExtensionPoint',
43
+ 'contributes.documentation.refactoring.title',
44
+ "Label for the documentation used in the UI."
45
+ )),
30
46
  },
31
47
  [DocumentationExtensionPointFields.when]: {
32
48
  type: 'string',
33
- description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/documentationExtensionPoint', 'contributes.documentation.refactoring.when', "When clause."),
49
+ description: ( nls.localizeWithPath(
50
+ 'vs/workbench/contrib/codeActions/common/documentationExtensionPoint',
51
+ 'contributes.documentation.refactoring.when',
52
+ "When clause."
53
+ )),
34
54
  },
35
55
  [DocumentationExtensionPointFields.command]: {
36
56
  type: 'string',
37
- description: nls.localizeWithPath('vs/workbench/contrib/codeActions/common/documentationExtensionPoint', 'contributes.documentation.refactoring.command', "Command executed."),
57
+ description: ( nls.localizeWithPath(
58
+ 'vs/workbench/contrib/codeActions/common/documentationExtensionPoint',
59
+ 'contributes.documentation.refactoring.command',
60
+ "Command executed."
61
+ )),
38
62
  },
39
63
  },
40
64
  }
@@ -34,7 +34,11 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
34
34
  const onlyWhiteSpaceChange = ( computationResult.map(r => r && !r.identical && r.changes2.length === 0));
35
35
  this._register(autorunWithStore((reader, store) => {
36
36
  if (onlyWhiteSpaceChange.read(reader)) {
37
- const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), localizeWithPath('vs/workbench/contrib/codeEditor/browser/diffEditorHelper', 'hintWhitespace', "Show Whitespace Differences"), null));
37
+ const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), ( localizeWithPath(
38
+ 'vs/workbench/contrib/codeEditor/browser/diffEditorHelper',
39
+ 'hintWhitespace',
40
+ "Show Whitespace Differences"
41
+ )), null));
38
42
  store.add(helperWidget.onClick(() => {
39
43
  this._configurationService.updateValue('diffEditor.ignoreTrimWhitespace', false);
40
44
  }));
@@ -44,8 +48,17 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
44
48
  this._register(this._diffEditor.onDidUpdateDiff(() => {
45
49
  const diffComputationResult = this._diffEditor.getDiffComputationResult();
46
50
  if (diffComputationResult && diffComputationResult.quitEarly) {
47
- this._notificationService.prompt(Severity.Warning, localizeWithPath('vs/workbench/contrib/codeEditor/browser/diffEditorHelper', 'hintTimeout', "The diff algorithm was stopped early (after {0} ms.)", this._diffEditor.maxComputationTime), [{
48
- label: localizeWithPath('vs/workbench/contrib/codeEditor/browser/diffEditorHelper', 'removeTimeout', "Remove Limit"),
51
+ this._notificationService.prompt(Severity.Warning, ( localizeWithPath(
52
+ 'vs/workbench/contrib/codeEditor/browser/diffEditorHelper',
53
+ 'hintTimeout',
54
+ "The diff algorithm was stopped early (after {0} ms.)",
55
+ this._diffEditor.maxComputationTime
56
+ )), [{
57
+ label: ( localizeWithPath(
58
+ 'vs/workbench/contrib/codeEditor/browser/diffEditorHelper',
59
+ 'removeTimeout',
60
+ "Remove Limit"
61
+ )),
49
62
  run: () => {
50
63
  this._configurationService.updateValue('diffEditor.maxComputationTime', 0);
51
64
  }
@@ -78,9 +91,24 @@ function createScreenReaderHelp() {
78
91
  }
79
92
  const keys = ['audioCues.diffLineDeleted', 'audioCues.diffLineInserted', 'audioCues.diffLineModified'];
80
93
  const content = [
81
- localizeWithPath('vs/workbench/contrib/codeEditor/browser/diffEditorHelper', 'msg1', "You are in a diff editor."),
82
- localizeWithPath('vs/workbench/contrib/codeEditor/browser/diffEditorHelper', 'msg2', "View the next ({0}) or previous ({1}) diff in diff review mode, which is optimized for screen readers.", next, previous),
83
- localizeWithPath('vs/workbench/contrib/codeEditor/browser/diffEditorHelper', 'msg3', "To control which audio cues should be played, the following settings can be configured: {0}.", keys.join(', ')),
94
+ ( localizeWithPath(
95
+ 'vs/workbench/contrib/codeEditor/browser/diffEditorHelper',
96
+ 'msg1',
97
+ "You are in a diff editor."
98
+ )),
99
+ ( localizeWithPath(
100
+ 'vs/workbench/contrib/codeEditor/browser/diffEditorHelper',
101
+ 'msg2',
102
+ "View the next ({0}) or previous ({1}) diff in diff review mode, which is optimized for screen readers.",
103
+ next,
104
+ previous
105
+ )),
106
+ ( localizeWithPath(
107
+ 'vs/workbench/contrib/codeEditor/browser/diffEditorHelper',
108
+ 'msg3',
109
+ "To control which audio cues should be played, the following settings can be configured: {0}.",
110
+ keys.join(', ')
111
+ )),
84
112
  ];
85
113
  const commentCommandInfo = getCommentCommandInfo(keybindingService, contextKeyService, codeEditor);
86
114
  if (commentCommandInfo) {
@@ -0,0 +1,44 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { onUnexpectedError } from 'monaco-editor/esm/vs/base/common/errors.js';
3
+ import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
4
+ import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
5
+ import { getEditorFeatures } from 'monaco-editor/esm/vs/editor/common/editorFeatures.js';
6
+ import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
7
+ import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
8
+ import { Extensions } from '../../../common/contributions.js';
9
+ let EditorFeaturesInstantiator = class EditorFeaturesInstantiator extends Disposable {
10
+ constructor(codeEditorService, _instantiationService) {
11
+ super();
12
+ this._instantiationService = _instantiationService;
13
+ this._instantiated = false;
14
+ this._register(codeEditorService.onWillCreateCodeEditor(() => this._instantiate()));
15
+ this._register(codeEditorService.onWillCreateDiffEditor(() => this._instantiate()));
16
+ if (codeEditorService.listCodeEditors().length > 0 || codeEditorService.listDiffEditors().length > 0) {
17
+ this._instantiate();
18
+ }
19
+ }
20
+ _instantiate() {
21
+ if (this._instantiated) {
22
+ return;
23
+ }
24
+ this._instantiated = true;
25
+ const editorFeatures = getEditorFeatures();
26
+ for (const feature of editorFeatures) {
27
+ try {
28
+ const instance = this._instantiationService.createInstance(feature);
29
+ if (typeof instance.dispose === 'function') {
30
+ this._register(instance);
31
+ }
32
+ }
33
+ catch (err) {
34
+ onUnexpectedError(err);
35
+ }
36
+ }
37
+ }
38
+ };
39
+ EditorFeaturesInstantiator = ( __decorate([
40
+ ( __param(0, ICodeEditorService)),
41
+ ( __param(1, IInstantiationService))
42
+ ], EditorFeaturesInstantiator));
43
+ const workbenchRegistry = ( Registry.as(Extensions.Workbench));
44
+ workbenchRegistry.registerWorkbenchContribution(EditorFeaturesInstantiator, 2 );
@@ -91,7 +91,11 @@ class InspectEditorTokens extends EditorAction {
91
91
  constructor() {
92
92
  super({
93
93
  id: 'editor.action.inspectTMScopes',
94
- label: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens', 'inspectEditorTokens', "Developer: Inspect Editor Tokens and Scopes"),
94
+ label: ( nls.localizeWithPath(
95
+ 'vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens',
96
+ 'inspectEditorTokens',
97
+ "Developer: Inspect Editor Tokens and Scopes"
98
+ )),
95
99
  alias: 'Developer: Inspect Editor Tokens and Scopes',
96
100
  precondition: undefined
97
101
  });
@@ -157,7 +161,11 @@ class InspectEditorTokensWidget extends Disposable {
157
161
  const grammar = this._textMateService.createTokenizer(this._model.getLanguageId());
158
162
  const semanticTokens = this._computeSemanticTokens(position);
159
163
  dom.clearNode(this._domNode);
160
- this._domNode.appendChild(document.createTextNode(nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens', 'inspectTMScopesWidget.loading', "Loading...")));
164
+ this._domNode.appendChild(document.createTextNode(( nls.localizeWithPath(
165
+ 'vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens',
166
+ 'inspectTMScopesWidget.loading',
167
+ "Loading..."
168
+ ))));
161
169
  Promise.all([grammar, semanticTokens]).then(([grammar, semanticTokens]) => {
162
170
  if (this._isDisposed) {
163
171
  return;