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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/extensions.d.ts +3 -3
  2. package/extensions.js +31 -33
  3. package/l10n.d.ts +4 -0
  4. package/l10n.js +10 -0
  5. package/missing-services.js +4 -2
  6. package/monaco-editor-treemending.patch +12268 -1070
  7. package/monaco-treemending.js +8 -2
  8. package/package.json +8 -1
  9. package/service-override/extensions.js +2 -2
  10. package/service-override/layout.js +2 -2
  11. package/tools/l10n.js +177 -0
  12. package/tools.js +22 -1
  13. package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
  14. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +2 -2
  15. package/vscode/src/vs/base/common/date.js +55 -55
  16. package/vscode/src/vs/base/common/jsonErrorMessages.js +10 -10
  17. package/vscode/src/vs/base/common/tfIdf.js +137 -0
  18. package/vscode/src/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +23 -0
  19. package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +115 -0
  20. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +112 -0
  21. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +334 -0
  22. package/vscode/src/vs/platform/dialogs/common/dialogs.js +10 -14
  23. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -0
  24. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +2 -2
  25. package/vscode/src/vs/platform/files/common/fileService.js +28 -37
  26. package/vscode/src/vs/platform/files/common/files.js +6 -6
  27. package/vscode/src/vs/platform/files/common/io.js +2 -2
  28. package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +3 -9
  29. package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +300 -0
  30. package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +59 -0
  31. package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +212 -0
  32. package/vscode/src/vs/platform/request/common/request.js +2 -2
  33. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -63
  34. package/vscode/src/vs/platform/workspaces/common/workspaces.js +15 -15
  35. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +13 -32
  36. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
  37. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +50 -52
  38. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +58 -69
  39. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +4 -5
  40. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +38 -50
  41. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +23 -23
  42. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +21 -53
  43. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
  44. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +4 -5
  45. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +6 -2
  46. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +4 -2
  47. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
  48. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -12
  49. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +15 -9
  50. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +16 -20
  51. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +6 -28
  52. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +60 -0
  53. package/vscode/src/vs/workbench/api/common/extHostChat.js +3 -3
  54. package/vscode/src/vs/workbench/api/common/extHostCommands.js +59 -65
  55. package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.js +8 -8
  56. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +2 -6
  57. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  58. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +150 -222
  59. package/vscode/src/vs/workbench/api/common/extHostLogService.js +2 -2
  60. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +3 -3
  61. package/vscode/src/vs/workbench/api/common/extHostProgress.js +2 -6
  62. package/vscode/src/vs/workbench/api/common/extHostSCM.js +54 -58
  63. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +3 -7
  64. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -6
  65. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +2 -6
  66. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +55 -57
  67. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +28 -28
  68. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +265 -277
  69. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +2 -7
  70. package/vscode/src/vs/workbench/api/common/extensionHostMain.js +17 -19
  71. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +9 -34
  72. package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +5 -5
  73. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +898 -68
  74. package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +7 -7
  75. package/vscode/src/vs/workbench/browser/actions/windowActions.js +32 -38
  76. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +103 -13
  77. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +2 -2
  78. package/vscode/src/vs/workbench/browser/editor.js +3 -3
  79. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +12 -27
  80. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +12 -12
  81. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +2 -7
  82. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +4 -7
  83. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +42 -90
  84. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +140 -272
  85. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +115 -148
  86. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +21 -33
  87. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +7 -19
  88. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -26
  89. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +7 -17
  90. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +60 -81
  91. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +27 -33
  92. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -2
  93. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +19 -32
  94. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +2 -2
  95. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +8 -8
  96. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +69 -34
  97. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +58 -34
  98. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +2 -2
  99. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +3 -9
  100. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
  101. package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +7 -11
  102. package/vscode/src/vs/workbench/browser/quickaccess.js +7 -3
  103. package/vscode/src/vs/workbench/browser/workbench.contribution.js +186 -683
  104. package/vscode/src/vs/workbench/common/configuration.js +12 -15
  105. package/vscode/src/vs/workbench/common/contextkeys.js +272 -90
  106. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +2 -2
  107. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +2 -7
  108. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +2 -6
  109. package/vscode/src/vs/workbench/common/editor.js +5 -5
  110. package/vscode/src/vs/workbench/common/theme.js +137 -527
  111. package/vscode/src/vs/workbench/common/views.js +4 -8
  112. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +15 -55
  113. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +3 -8
  114. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +22 -60
  115. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +9 -15
  116. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +18 -48
  117. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +58 -74
  118. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +2 -0
  119. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +5 -10
  120. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +5 -13
  121. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +8 -27
  122. package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +5 -17
  123. package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -15
  124. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +7 -20
  125. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
  126. package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +63 -216
  127. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +4 -7
  128. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +5 -8
  129. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +8 -11
  130. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +5 -15
  131. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +3 -3
  132. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +5 -5
  133. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +3 -6
  134. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +3 -6
  135. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +10 -9
  136. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +6 -15
  137. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +5 -20
  138. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +3 -10
  139. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
  140. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -20
  141. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +9 -3
  142. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +4 -13
  143. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +19 -19
  144. package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +26 -77
  145. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -17
  146. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +31 -40
  147. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +10 -29
  148. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +10 -10
  149. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +8 -8
  150. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +25 -21
  151. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +2 -2
  152. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -4
  153. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +20 -20
  154. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +56 -98
  155. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +2 -2
  156. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +96 -180
  157. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -79
  158. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -15
  159. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -8
  160. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +56 -19
  161. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +76 -230
  162. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -5
  163. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -103
  164. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +228 -99
  165. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  166. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +5 -9
  167. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +5 -5
  168. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +15 -35
  169. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +5 -8
  170. package/vscode/src/vs/workbench/contrib/files/common/files.js +27 -48
  171. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -6
  172. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  173. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +5 -8
  174. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +112 -52
  175. package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +1 -1
  176. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +2 -2
  177. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +30 -96
  178. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +73 -126
  179. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +3 -3
  180. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +42 -0
  181. package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +23 -29
  182. package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +3 -3
  183. package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +13 -16
  184. package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +15 -34
  185. package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +12 -17
  186. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
  187. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +26 -75
  188. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +4 -19
  189. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +4 -4
  190. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +60 -99
  191. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -14
  192. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +26 -13
  193. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +88 -96
  194. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +5 -17
  195. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -28
  196. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +21 -78
  197. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +21 -53
  198. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  199. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +2 -5
  200. package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +113 -348
  201. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +2 -5
  202. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +31 -1
  203. package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +1 -4
  204. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  205. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +2 -2
  206. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +2 -5
  207. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +4 -4
  208. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +27 -29
  209. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +104 -141
  210. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +35 -39
  211. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +25 -25
  212. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +80 -296
  213. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +6 -21
  214. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +3 -6
  215. package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +24 -81
  216. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +2 -2
  217. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +11 -17
  218. package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +30 -32
  219. package/vscode/src/vs/workbench/services/language/common/languageService.js +23 -98
  220. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +83 -95
  221. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -5
  222. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +11 -23
  223. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +32 -32
  224. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +2 -7
  225. package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +2 -2
  226. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +16 -53
  227. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +50 -1
  228. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +25 -99
  229. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +16 -16
  230. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -3
  231. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +15 -3
  232. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +2 -2
  233. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +32 -42
@@ -2,20 +2,27 @@ import * as nls from 'monaco-editor/esm/vs/nls.js';
2
2
  import * as types from 'monaco-editor/esm/vs/base/common/types.js';
3
3
  import * as resources from 'monaco-editor/esm/vs/base/common/resources.js';
4
4
  import * as objects from 'monaco-editor/esm/vs/base/common/objects.js';
5
+ import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
5
6
  import { TaskDefinitionRegistry } from './taskDefinitionRegistry.js';
6
7
  const USER_TASKS_GROUP_KEY = 'settings';
8
+ ( new RawContextKey(
9
+ 'taskRunning',
10
+ false,
11
+ nls.localizeWithPath('vs/workbench/contrib/tasks/common/tasks', 'tasks.taskRunningContext', "Whether a task is currently running.")
12
+ ));
13
+ ({ value: nls.localizeWithPath('vs/workbench/contrib/tasks/common/tasks', 'tasksCategory', "Tasks"), original: 'Tasks' });
7
14
  const CUSTOMIZED_TASK_TYPE = '$customized';
8
15
  var CommandOptions;
9
- ( ((function(CommandOptions) {
16
+ ( (function(CommandOptions) {
10
17
  CommandOptions.defaults = { cwd: '${workspaceFolder}' };
11
- })(CommandOptions || (CommandOptions = {}))));
18
+ })(CommandOptions || (CommandOptions = {})));
12
19
  var RevealKind;
13
- ( ((function(RevealKind) {
20
+ ( (function(RevealKind) {
14
21
  RevealKind[RevealKind["Always"] = 1] = "Always";
15
22
  RevealKind[RevealKind["Silent"] = 2] = "Silent";
16
23
  RevealKind[RevealKind["Never"] = 3] = "Never";
17
- })(RevealKind || (RevealKind = {}))));
18
- ( ((function(RevealKind) {
24
+ })(RevealKind || (RevealKind = {})));
25
+ ( (function(RevealKind) {
19
26
  function fromString(value) {
20
27
  switch (value.toLowerCase()) {
21
28
  case 'always':
@@ -29,14 +36,14 @@ var RevealKind;
29
36
  }
30
37
  }
31
38
  RevealKind.fromString = fromString;
32
- })(RevealKind || (RevealKind = {}))));
39
+ })(RevealKind || (RevealKind = {})));
33
40
  var RevealProblemKind;
34
- ( ((function(RevealProblemKind) {
41
+ ( (function(RevealProblemKind) {
35
42
  RevealProblemKind[RevealProblemKind["Never"] = 1] = "Never";
36
43
  RevealProblemKind[RevealProblemKind["OnProblem"] = 2] = "OnProblem";
37
44
  RevealProblemKind[RevealProblemKind["Always"] = 3] = "Always";
38
- })(RevealProblemKind || (RevealProblemKind = {}))));
39
- ( ((function(RevealProblemKind) {
45
+ })(RevealProblemKind || (RevealProblemKind = {})));
46
+ ( (function(RevealProblemKind) {
40
47
  function fromString(value) {
41
48
  switch (value.toLowerCase()) {
42
49
  case 'always':
@@ -50,14 +57,14 @@ var RevealProblemKind;
50
57
  }
51
58
  }
52
59
  RevealProblemKind.fromString = fromString;
53
- })(RevealProblemKind || (RevealProblemKind = {}))));
60
+ })(RevealProblemKind || (RevealProblemKind = {})));
54
61
  var PanelKind;
55
- ( ((function(PanelKind) {
62
+ ( (function(PanelKind) {
56
63
  PanelKind[PanelKind["Shared"] = 1] = "Shared";
57
64
  PanelKind[PanelKind["Dedicated"] = 2] = "Dedicated";
58
65
  PanelKind[PanelKind["New"] = 3] = "New";
59
- })(PanelKind || (PanelKind = {}))));
60
- ( ((function(PanelKind) {
66
+ })(PanelKind || (PanelKind = {})));
67
+ ( (function(PanelKind) {
61
68
  function fromString(value) {
62
69
  switch (value.toLowerCase()) {
63
70
  case 'shared':
@@ -71,20 +78,20 @@ var PanelKind;
71
78
  }
72
79
  }
73
80
  PanelKind.fromString = fromString;
74
- })(PanelKind || (PanelKind = {}))));
81
+ })(PanelKind || (PanelKind = {})));
75
82
  var PresentationOptions;
76
- ( ((function(PresentationOptions) {
83
+ ( (function(PresentationOptions) {
77
84
  PresentationOptions.defaults = {
78
85
  echo: true, reveal: RevealKind.Always, revealProblems: RevealProblemKind.Never, focus: false, panel: PanelKind.Shared, showReuseMessage: true, clear: false
79
86
  };
80
- })(PresentationOptions || (PresentationOptions = {}))));
87
+ })(PresentationOptions || (PresentationOptions = {})));
81
88
  var RuntimeType;
82
- ( ((function(RuntimeType) {
89
+ ( (function(RuntimeType) {
83
90
  RuntimeType[RuntimeType["Shell"] = 1] = "Shell";
84
91
  RuntimeType[RuntimeType["Process"] = 2] = "Process";
85
92
  RuntimeType[RuntimeType["CustomExecution"] = 3] = "CustomExecution";
86
- })(RuntimeType || (RuntimeType = {}))));
87
- ( ((function(RuntimeType) {
93
+ })(RuntimeType || (RuntimeType = {})));
94
+ ( (function(RuntimeType) {
88
95
  function fromString(value) {
89
96
  switch (value.toLowerCase()) {
90
97
  case 'shell':
@@ -107,9 +114,9 @@ var RuntimeType;
107
114
  }
108
115
  }
109
116
  RuntimeType.toString = toString;
110
- })(RuntimeType || (RuntimeType = {}))));
117
+ })(RuntimeType || (RuntimeType = {})));
111
118
  var TaskSourceKind;
112
- ( ((function(TaskSourceKind) {
119
+ ( (function(TaskSourceKind) {
113
120
  TaskSourceKind.Workspace = 'workspace';
114
121
  TaskSourceKind.Extension = 'extension';
115
122
  TaskSourceKind.InMemory = 'inMemory';
@@ -123,16 +130,16 @@ var TaskSourceKind;
123
130
  }
124
131
  }
125
132
  TaskSourceKind.toConfigurationTarget = toConfigurationTarget;
126
- })(TaskSourceKind || (TaskSourceKind = {}))));
133
+ })(TaskSourceKind || (TaskSourceKind = {})));
127
134
  var RunOnOptions;
128
- ( ((function(RunOnOptions) {
135
+ ( (function(RunOnOptions) {
129
136
  RunOnOptions[RunOnOptions["default"] = 1] = "default";
130
137
  RunOnOptions[RunOnOptions["folderOpen"] = 2] = "folderOpen";
131
- })(RunOnOptions || (RunOnOptions = {}))));
138
+ })(RunOnOptions || (RunOnOptions = {})));
132
139
  var RunOptions;
133
- ( ((function(RunOptions) {
140
+ ( (function(RunOptions) {
134
141
  RunOptions.defaults = { reevaluateOnRerun: true, runOn: RunOnOptions.default, instanceLimit: 1 };
135
- })(RunOptions || (RunOptions = {}))));
142
+ })(RunOptions || (RunOptions = {})));
136
143
  class CommonTask {
137
144
  constructor(id, label, type, runOptions, configurationProperties, source) {
138
145
  this._label = '';
@@ -221,18 +228,16 @@ class CustomTask extends CommonTask {
221
228
  }
222
229
  }
223
230
  clone() {
224
- return (
225
- (new CustomTask(
226
- this._id,
227
- this._source,
228
- this._label,
229
- this.type,
230
- this.command,
231
- this.hasDefinedMatchers,
232
- this.runOptions,
233
- this.configurationProperties
234
- ))
235
- );
231
+ return ( new CustomTask(
232
+ this._id,
233
+ this._source,
234
+ this._label,
235
+ this.type,
236
+ this.command,
237
+ this.hasDefinedMatchers,
238
+ this.runOptions,
239
+ this.configurationProperties
240
+ ));
236
241
  }
237
242
  customizes() {
238
243
  if (this._source && this._source.customizes) {
@@ -276,7 +281,7 @@ class CustomTask extends CommonTask {
276
281
  }
277
282
  getMapKey() {
278
283
  const workspaceFolder = this._source.config.workspaceFolder;
279
- return workspaceFolder ? `${( ( workspaceFolder.uri.toString()))}|${this._id}|${this.instance}` : `${this._id}|${this.instance}`;
284
+ return workspaceFolder ? `${( workspaceFolder.uri.toString())}|${this._id}|${this.instance}` : `${this._id}|${this.instance}`;
280
285
  }
281
286
  getFolderId() {
282
287
  return this._source.kind === TaskSourceKind.User ? USER_TASKS_GROUP_KEY : this._source.config.workspaceFolder?.uri.toString();
@@ -311,18 +316,16 @@ class CustomTask extends CommonTask {
311
316
  }
312
317
  }
313
318
  fromObject(object) {
314
- return (
315
- (new CustomTask(
316
- object._id,
317
- object._source,
318
- object._label,
319
- object.type,
320
- object.command,
321
- object.hasDefinedMatchers,
322
- object.runOptions,
323
- object.configurationProperties
324
- ))
325
- );
319
+ return ( new CustomTask(
320
+ object._id,
321
+ object._source,
322
+ object._label,
323
+ object.type,
324
+ object.command,
325
+ object.hasDefinedMatchers,
326
+ object.runOptions,
327
+ object.configurationProperties
328
+ ));
326
329
  }
327
330
  }
328
331
  class ConfiguringTask extends CommonTask {
@@ -372,19 +375,17 @@ class ContributedTask extends CommonTask {
372
375
  this.hide = configurationProperties.hide;
373
376
  }
374
377
  clone() {
375
- return (
376
- (new ContributedTask(
377
- this._id,
378
- this._source,
379
- this._label,
380
- this.type,
381
- this.defines,
382
- this.command,
383
- this.hasDefinedMatchers,
384
- this.runOptions,
385
- this.configurationProperties
386
- ))
387
- );
378
+ return ( new ContributedTask(
379
+ this._id,
380
+ this._source,
381
+ this._label,
382
+ this.type,
383
+ this.defines,
384
+ this.command,
385
+ this.hasDefinedMatchers,
386
+ this.runOptions,
387
+ this.configurationProperties
388
+ ));
388
389
  }
389
390
  getDefinition() {
390
391
  return this.defines;
@@ -395,14 +396,12 @@ class ContributedTask extends CommonTask {
395
396
  getMapKey() {
396
397
  const workspaceFolder = this._source.workspaceFolder;
397
398
  return workspaceFolder
398
- ? `${( ( this._source.scope.toString()))}|${( ( workspaceFolder.uri.toString()))}|${this._id}|${this.instance}`
399
- : `${( ( this._source.scope.toString()))}|${this._id}|${this.instance}`;
399
+ ? `${( this._source.scope.toString())}|${( workspaceFolder.uri.toString())}|${this._id}|${this.instance}`
400
+ : `${( this._source.scope.toString())}|${this._id}|${this.instance}`;
400
401
  }
401
402
  getFolderId() {
402
403
  if (this._source.scope === 3 && this._source.workspaceFolder) {
403
- return (
404
- (this._source.workspaceFolder.uri.toString())
405
- );
404
+ return ( this._source.workspaceFolder.uri.toString());
406
405
  }
407
406
  return undefined;
408
407
  }
@@ -418,25 +417,23 @@ class ContributedTask extends CommonTask {
418
417
  return 'extension';
419
418
  }
420
419
  fromObject(object) {
421
- return (
422
- (new ContributedTask(
423
- object._id,
424
- object._source,
425
- object._label,
426
- object.type,
427
- object.defines,
428
- object.command,
429
- object.hasDefinedMatchers,
430
- object.runOptions,
431
- object.configurationProperties
432
- ))
433
- );
420
+ return ( new ContributedTask(
421
+ object._id,
422
+ object._source,
423
+ object._label,
424
+ object.type,
425
+ object.defines,
426
+ object.command,
427
+ object.hasDefinedMatchers,
428
+ object.runOptions,
429
+ object.configurationProperties
430
+ ));
434
431
  }
435
432
  }
436
433
  var KeyedTaskIdentifier;
437
- ( ((function(KeyedTaskIdentifier) {
434
+ ( (function(KeyedTaskIdentifier) {
438
435
  function sortedStringify(literal) {
439
- const keys = ( (Object.keys(literal))).sort();
436
+ const keys = ( Object.keys(literal)).sort();
440
437
  let result = '';
441
438
  for (const key of keys) {
442
439
  let stringified = literal[key];
@@ -457,9 +454,9 @@ var KeyedTaskIdentifier;
457
454
  return result;
458
455
  }
459
456
  KeyedTaskIdentifier.create = create;
460
- })(KeyedTaskIdentifier || (KeyedTaskIdentifier = {}))));
457
+ })(KeyedTaskIdentifier || (KeyedTaskIdentifier = {})));
461
458
  var TaskDefinition;
462
- ( ((function(TaskDefinition) {
459
+ ( (function(TaskDefinition) {
463
460
  function createTaskIdentifier(external, reporter) {
464
461
  const definition = TaskDefinitionRegistry.get(external.type);
465
462
  if (definition === undefined) {
@@ -469,15 +466,15 @@ var TaskDefinition;
469
466
  }
470
467
  const literal = Object.create(null);
471
468
  literal.type = definition.taskType;
472
- const required = ( (new Set()));
469
+ const required = ( new Set());
473
470
  definition.required.forEach(element => required.add(element));
474
471
  const properties = definition.properties;
475
- for (const property of ( (Object.keys(properties)))) {
472
+ for (const property of ( Object.keys(properties))) {
476
473
  const value = external[property];
477
474
  if (value !== undefined && value !== null) {
478
475
  literal[property] = value;
479
476
  }
480
- else if (( (required.has(property)))) {
477
+ else if (( required.has(property))) {
481
478
  const schema = properties[property];
482
479
  if (schema.default !== undefined) {
483
480
  literal[property] = objects.deepClone(schema.default);
@@ -495,12 +492,7 @@ var TaskDefinition;
495
492
  literal[property] = '';
496
493
  break;
497
494
  default:
498
- reporter.error(( (nls.localize(
499
- 'TaskDefinition.missingRequiredProperty',
500
- 'Error: the task identifier \'{0}\' is missing the required property \'{1}\'. The task identifier will be ignored.',
501
- JSON.stringify(external, undefined, 0),
502
- property
503
- ))));
495
+ reporter.error(nls.localizeWithPath('vs/workbench/contrib/tasks/common/tasks', 'TaskDefinition.missingRequiredProperty', 'Error: the task identifier \'{0}\' is missing the required property \'{1}\'. The task identifier will be ignored.', JSON.stringify(external, undefined, 0), property));
504
496
  return undefined;
505
497
  }
506
498
  }
@@ -509,5 +501,5 @@ var TaskDefinition;
509
501
  return KeyedTaskIdentifier.create(literal);
510
502
  }
511
503
  TaskDefinition.createTaskIdentifier = createTaskIdentifier;
512
- })(TaskDefinition || (TaskDefinition = {}))));
504
+ })(TaskDefinition || (TaskDefinition = {})));
513
505
  export { CUSTOMIZED_TASK_TYPE, CommandOptions, CommonTask, ConfiguringTask, ContributedTask, CustomTask, KeyedTaskIdentifier, PanelKind, PresentationOptions, RevealKind, RevealProblemKind, RunOnOptions, RunOptions, RuntimeType, TaskDefinition, TaskSourceKind, USER_TASKS_GROUP_KEY };
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { localize } from 'monaco-editor/esm/vs/nls.js';
2
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
3
3
  import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
4
4
  import { toDisposable, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
5
5
  import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
@@ -67,23 +67,11 @@ let TerminalEditorInput = class TerminalEditorInput extends EditorInput {
67
67
  async confirm(terminals) {
68
68
  const { confirmed } = await this._dialogService.confirm({
69
69
  type: Severity.Warning,
70
- message: ( localize(
71
- 'confirmDirtyTerminal.message',
72
- "Do you want to terminate running processes?"
73
- )),
74
- primaryButton: ( localize(
75
- { key: 'confirmDirtyTerminal.button', comment: ['&& denotes a mnemonic'] },
76
- "&&Terminate"
77
- )),
70
+ message: localizeWithPath('vs/workbench/contrib/terminal/browser/terminalEditorInput', 'confirmDirtyTerminal.message', "Do you want to terminate running processes?"),
71
+ primaryButton: localizeWithPath('vs/workbench/contrib/terminal/browser/terminalEditorInput', { key: 'confirmDirtyTerminal.button', comment: ['&& denotes a mnemonic'] }, "&&Terminate"),
78
72
  detail: terminals.length > 1 ?
79
- ( terminals.map(terminal => terminal.editor.getName())).join('\n') + '\n\n' + ( localize(
80
- 'confirmDirtyTerminals.detail',
81
- "Closing will terminate the running processes in the terminals."
82
- )) :
83
- ( localize(
84
- 'confirmDirtyTerminal.detail',
85
- "Closing will terminate the running processes in this terminal."
86
- ))
73
+ ( terminals.map(terminal => terminal.editor.getName())).join('\n') + '\n\n' + localizeWithPath('vs/workbench/contrib/terminal/browser/terminalEditorInput', 'confirmDirtyTerminals.detail', "Closing will terminate the running processes in the terminals.") :
74
+ localizeWithPath('vs/workbench/contrib/terminal/browser/terminalEditorInput', 'confirmDirtyTerminal.detail', "Closing will terminate the running processes in this terminal.")
87
75
  });
88
76
  return confirmed ? 1 : 2 ;
89
77
  }
@@ -166,18 +166,12 @@ const terminalContributionsDescriptor = {
166
166
  }
167
167
  },
168
168
  jsonSchema: {
169
- description: ( nls.localize(
170
- 'vscode.extension.contributes.terminal',
171
- 'Contributes terminal functionality.'
172
- )),
169
+ description: nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminal', 'vscode.extension.contributes.terminal', 'Contributes terminal functionality.'),
173
170
  type: 'object',
174
171
  properties: {
175
172
  profiles: {
176
173
  type: 'array',
177
- description: ( nls.localize(
178
- 'vscode.extension.contributes.terminal.profiles',
179
- "Defines additional terminal profiles that the user can create."
180
- )),
174
+ description: nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminal', 'vscode.extension.contributes.terminal.profiles', "Defines additional terminal profiles that the user can create."),
181
175
  items: {
182
176
  type: 'object',
183
177
  required: ['id', 'title'],
@@ -189,24 +183,15 @@ const terminalContributionsDescriptor = {
189
183
  }],
190
184
  properties: {
191
185
  id: {
192
- description: ( nls.localize(
193
- 'vscode.extension.contributes.terminal.profiles.id',
194
- "The ID of the terminal profile provider."
195
- )),
186
+ description: nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminal', 'vscode.extension.contributes.terminal.profiles.id', "The ID of the terminal profile provider."),
196
187
  type: 'string',
197
188
  },
198
189
  title: {
199
- description: ( nls.localize(
200
- 'vscode.extension.contributes.terminal.profiles.title',
201
- "Title for this terminal profile."
202
- )),
190
+ description: nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminal', 'vscode.extension.contributes.terminal.profiles.title', "Title for this terminal profile."),
203
191
  type: 'string',
204
192
  },
205
193
  icon: {
206
- description: ( nls.localize(
207
- 'vscode.extension.contributes.terminal.types.icon',
208
- "A codicon, URI, or light and dark URIs to associate with this terminal type."
209
- )),
194
+ description: nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminal', 'vscode.extension.contributes.terminal.types.icon', "A codicon, URI, or light and dark URIs to associate with this terminal type."),
210
195
  anyOf: [{
211
196
  type: 'string',
212
197
  },
@@ -214,17 +199,11 @@ const terminalContributionsDescriptor = {
214
199
  type: 'object',
215
200
  properties: {
216
201
  light: {
217
- description: ( nls.localize(
218
- 'vscode.extension.contributes.terminal.types.icon.light',
219
- 'Icon path when a light theme is used'
220
- )),
202
+ description: nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminal', 'vscode.extension.contributes.terminal.types.icon.light', 'Icon path when a light theme is used'),
221
203
  type: 'string'
222
204
  },
223
205
  dark: {
224
- description: ( nls.localize(
225
- 'vscode.extension.contributes.terminal.types.icon.dark',
226
- 'Icon path when a dark theme is used'
227
- )),
206
+ description: nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminal', 'vscode.extension.contributes.terminal.types.icon.dark', 'Icon path when a dark theme is used'),
228
207
  type: 'string'
229
208
  }
230
209
  }
@@ -2,168 +2,111 @@ import * as nls from 'monaco-editor/esm/vs/nls.js';
2
2
  import { registerColor, editorSelectionBackground, transparent, editorFindMatch, editorHoverHighlight, editorFindMatchHighlight, overviewRulerFindMatchForeground } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
3
3
  import { PANEL_BORDER, EDITOR_DRAG_AND_DROP_BACKGROUND, TAB_ACTIVE_BORDER } from '../../../common/theme.js';
4
4
  const ansiColorIdentifiers = [];
5
- const TERMINAL_BACKGROUND_COLOR = registerColor('terminal.background', null, ( nls.localize(
6
- 'terminal.background',
7
- 'The background color of the terminal, this allows coloring the terminal differently to the panel.'
8
- )));
5
+ const TERMINAL_BACKGROUND_COLOR = registerColor('terminal.background', null, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.background', 'The background color of the terminal, this allows coloring the terminal differently to the panel.'));
9
6
  const TERMINAL_FOREGROUND_COLOR = registerColor('terminal.foreground', {
10
7
  light: '#333333',
11
8
  dark: '#CCCCCC',
12
9
  hcDark: '#FFFFFF',
13
10
  hcLight: '#292929'
14
- }, ( nls.localize('terminal.foreground', 'The foreground color of the terminal.')));
15
- const TERMINAL_CURSOR_FOREGROUND_COLOR = registerColor('terminalCursor.foreground', null, ( nls.localize(
16
- 'terminalCursor.foreground',
17
- 'The foreground color of the terminal cursor.'
18
- )));
19
- const TERMINAL_CURSOR_BACKGROUND_COLOR = registerColor('terminalCursor.background', null, ( nls.localize(
20
- 'terminalCursor.background',
21
- 'The background color of the terminal cursor. Allows customizing the color of a character overlapped by a block cursor.'
22
- )));
11
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.foreground', 'The foreground color of the terminal.'));
12
+ const TERMINAL_CURSOR_FOREGROUND_COLOR = registerColor('terminalCursor.foreground', null, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminalCursor.foreground', 'The foreground color of the terminal cursor.'));
13
+ const TERMINAL_CURSOR_BACKGROUND_COLOR = registerColor('terminalCursor.background', null, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminalCursor.background', 'The background color of the terminal cursor. Allows customizing the color of a character overlapped by a block cursor.'));
23
14
  const TERMINAL_SELECTION_BACKGROUND_COLOR = registerColor('terminal.selectionBackground', {
24
15
  light: editorSelectionBackground,
25
16
  dark: editorSelectionBackground,
26
17
  hcDark: editorSelectionBackground,
27
18
  hcLight: editorSelectionBackground
28
- }, ( nls.localize(
29
- 'terminal.selectionBackground',
30
- 'The selection background color of the terminal.'
31
- )));
19
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.selectionBackground', 'The selection background color of the terminal.'));
32
20
  const TERMINAL_INACTIVE_SELECTION_BACKGROUND_COLOR = registerColor('terminal.inactiveSelectionBackground', {
33
21
  light: ( transparent(TERMINAL_SELECTION_BACKGROUND_COLOR, 0.5)),
34
22
  dark: ( transparent(TERMINAL_SELECTION_BACKGROUND_COLOR, 0.5)),
35
23
  hcDark: ( transparent(TERMINAL_SELECTION_BACKGROUND_COLOR, 0.7)),
36
24
  hcLight: ( transparent(TERMINAL_SELECTION_BACKGROUND_COLOR, 0.5))
37
- }, ( nls.localize(
38
- 'terminal.inactiveSelectionBackground',
39
- 'The selection background color of the terminal when it does not have focus.'
40
- )));
25
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.inactiveSelectionBackground', 'The selection background color of the terminal when it does not have focus.'));
41
26
  const TERMINAL_SELECTION_FOREGROUND_COLOR = registerColor('terminal.selectionForeground', {
42
27
  light: null,
43
28
  dark: null,
44
29
  hcDark: '#000000',
45
30
  hcLight: '#ffffff'
46
- }, ( nls.localize(
47
- 'terminal.selectionForeground',
48
- 'The selection foreground color of the terminal. When this is null the selection foreground will be retained and have the minimum contrast ratio feature applied.'
49
- )));
31
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.selectionForeground', 'The selection foreground color of the terminal. When this is null the selection foreground will be retained and have the minimum contrast ratio feature applied.'));
50
32
  const TERMINAL_COMMAND_DECORATION_DEFAULT_BACKGROUND_COLOR = registerColor('terminalCommandDecoration.defaultBackground', {
51
33
  light: '#00000040',
52
34
  dark: '#ffffff40',
53
35
  hcDark: '#ffffff80',
54
36
  hcLight: '#00000040',
55
- }, ( nls.localize(
56
- 'terminalCommandDecoration.defaultBackground',
57
- 'The default terminal command decoration background color.'
58
- )));
37
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminalCommandDecoration.defaultBackground', 'The default terminal command decoration background color.'));
59
38
  const TERMINAL_COMMAND_DECORATION_SUCCESS_BACKGROUND_COLOR = registerColor('terminalCommandDecoration.successBackground', {
60
39
  dark: '#1B81A8',
61
40
  light: '#2090D3',
62
41
  hcDark: '#1B81A8',
63
42
  hcLight: '#007100'
64
- }, ( nls.localize(
65
- 'terminalCommandDecoration.successBackground',
66
- 'The terminal command decoration background color for successful commands.'
67
- )));
43
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminalCommandDecoration.successBackground', 'The terminal command decoration background color for successful commands.'));
68
44
  const TERMINAL_COMMAND_DECORATION_ERROR_BACKGROUND_COLOR = registerColor('terminalCommandDecoration.errorBackground', {
69
45
  dark: '#F14C4C',
70
46
  light: '#E51400',
71
47
  hcDark: '#F14C4C',
72
48
  hcLight: '#B5200D'
73
- }, ( nls.localize(
74
- 'terminalCommandDecoration.errorBackground',
75
- 'The terminal command decoration background color for error commands.'
76
- )));
49
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminalCommandDecoration.errorBackground', 'The terminal command decoration background color for error commands.'));
77
50
  const TERMINAL_OVERVIEW_RULER_CURSOR_FOREGROUND_COLOR = registerColor('terminalOverviewRuler.cursorForeground', {
78
51
  dark: '#A0A0A0CC',
79
52
  light: '#A0A0A0CC',
80
53
  hcDark: '#A0A0A0CC',
81
54
  hcLight: '#A0A0A0CC'
82
- }, ( nls.localize(
83
- 'terminalOverviewRuler.cursorForeground',
84
- 'The overview ruler cursor color.'
85
- )));
55
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminalOverviewRuler.cursorForeground', 'The overview ruler cursor color.'));
86
56
  registerColor('terminal.border', {
87
57
  dark: PANEL_BORDER,
88
58
  light: PANEL_BORDER,
89
59
  hcDark: PANEL_BORDER,
90
60
  hcLight: PANEL_BORDER
91
- }, ( nls.localize(
92
- 'terminal.border',
93
- 'The color of the border that separates split panes within the terminal. This defaults to panel.border.'
94
- )));
61
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.border', 'The color of the border that separates split panes within the terminal. This defaults to panel.border.'));
95
62
  const TERMINAL_FIND_MATCH_BACKGROUND_COLOR = registerColor('terminal.findMatchBackground', {
96
63
  dark: editorFindMatch,
97
64
  light: editorFindMatch,
98
65
  hcDark: null,
99
66
  hcLight: '#0F4A85'
100
- }, ( nls.localize(
101
- 'terminal.findMatchBackground',
102
- 'Color of the current search match in the terminal. The color must not be opaque so as not to hide underlying terminal content.'
103
- )));
67
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.findMatchBackground', 'Color of the current search match in the terminal. The color must not be opaque so as not to hide underlying terminal content.'));
104
68
  registerColor('terminal.hoverHighlightBackground', {
105
69
  dark: ( transparent(editorHoverHighlight, 0.5)),
106
70
  light: ( transparent(editorHoverHighlight, 0.5)),
107
71
  hcDark: ( transparent(editorHoverHighlight, 0.5)),
108
72
  hcLight: ( transparent(editorHoverHighlight, 0.5))
109
- }, ( nls.localize(
110
- 'terminal.findMatchHighlightBorder',
111
- 'Border color of the other search matches in the terminal.'
112
- )));
73
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.findMatchHighlightBorder', 'Border color of the other search matches in the terminal.'));
113
74
  const TERMINAL_FIND_MATCH_BORDER_COLOR = registerColor('terminal.findMatchBorder', {
114
75
  dark: null,
115
76
  light: null,
116
77
  hcDark: '#f38518',
117
78
  hcLight: '#0F4A85'
118
- }, ( nls.localize(
119
- 'terminal.findMatchBorder',
120
- 'Border color of the current search match in the terminal.'
121
- )));
79
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.findMatchBorder', 'Border color of the current search match in the terminal.'));
122
80
  const TERMINAL_FIND_MATCH_HIGHLIGHT_BACKGROUND_COLOR = registerColor('terminal.findMatchHighlightBackground', {
123
81
  dark: editorFindMatchHighlight,
124
82
  light: editorFindMatchHighlight,
125
83
  hcDark: null,
126
84
  hcLight: null
127
- }, ( nls.localize(
128
- 'terminal.findMatchHighlightBackground',
129
- 'Color of the other search matches in the terminal. The color must not be opaque so as not to hide underlying terminal content.'
130
- )));
85
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.findMatchHighlightBackground', 'Color of the other search matches in the terminal. The color must not be opaque so as not to hide underlying terminal content.'));
131
86
  const TERMINAL_FIND_MATCH_HIGHLIGHT_BORDER_COLOR = registerColor('terminal.findMatchHighlightBorder', {
132
87
  dark: null,
133
88
  light: null,
134
89
  hcDark: '#f38518',
135
90
  hcLight: '#0F4A85'
136
- }, ( nls.localize(
137
- 'terminal.findMatchHighlightBorder',
138
- 'Border color of the other search matches in the terminal.'
139
- )));
91
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.findMatchHighlightBorder', 'Border color of the other search matches in the terminal.'));
140
92
  const TERMINAL_OVERVIEW_RULER_FIND_MATCH_FOREGROUND_COLOR = registerColor('terminalOverviewRuler.findMatchForeground', {
141
93
  dark: overviewRulerFindMatchForeground,
142
94
  light: overviewRulerFindMatchForeground,
143
95
  hcDark: '#f38518',
144
96
  hcLight: '#0F4A85'
145
- }, ( nls.localize(
146
- 'terminalOverviewRuler.findMatchHighlightForeground',
147
- 'Overview ruler marker color for find matches in the terminal.'
148
- )));
97
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminalOverviewRuler.findMatchHighlightForeground', 'Overview ruler marker color for find matches in the terminal.'));
149
98
  registerColor('terminal.dropBackground', {
150
99
  dark: EDITOR_DRAG_AND_DROP_BACKGROUND,
151
100
  light: EDITOR_DRAG_AND_DROP_BACKGROUND,
152
101
  hcDark: EDITOR_DRAG_AND_DROP_BACKGROUND,
153
102
  hcLight: EDITOR_DRAG_AND_DROP_BACKGROUND
154
- }, ( nls.localize(
155
- 'terminal.dragAndDropBackground',
156
- "Background color when dragging on top of terminals. The color should have transparency so that the terminal contents can still shine through."
157
- )));
103
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.dragAndDropBackground', "Background color when dragging on top of terminals. The color should have transparency so that the terminal contents can still shine through."));
158
104
  registerColor('terminal.tab.activeBorder', {
159
105
  dark: TAB_ACTIVE_BORDER,
160
106
  light: TAB_ACTIVE_BORDER,
161
107
  hcDark: TAB_ACTIVE_BORDER,
162
108
  hcLight: TAB_ACTIVE_BORDER
163
- }, ( nls.localize(
164
- 'terminal.tab.activeBorder',
165
- 'Border on the side of the terminal tab in the panel. This defaults to tab.activeBorder.'
166
- )));
109
+ }, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.tab.activeBorder', 'Border on the side of the terminal tab in the panel. This defaults to tab.activeBorder.'));
167
110
  const ansiColorMap = {
168
111
  'terminal.ansiBlack': {
169
112
  index: 0,
@@ -314,7 +257,7 @@ function registerColors() {
314
257
  for (const id in ansiColorMap) {
315
258
  const entry = ansiColorMap[id];
316
259
  const colorName = id.substring(13);
317
- ansiColorIdentifiers[entry.index] = registerColor(id, entry.defaults, ( nls.localize('terminal.ansiColor', '\'{0}\' ANSI color in the terminal.', colorName)));
260
+ ansiColorIdentifiers[entry.index] = registerColor(id, entry.defaults, nls.localizeWithPath('vs/workbench/contrib/terminal/common/terminalColorRegistry', 'terminal.ansiColor', '\'{0}\' ANSI color in the terminal.', colorName));
318
261
  }
319
262
  }
320
263
  export { TERMINAL_BACKGROUND_COLOR, TERMINAL_COMMAND_DECORATION_DEFAULT_BACKGROUND_COLOR, TERMINAL_COMMAND_DECORATION_ERROR_BACKGROUND_COLOR, TERMINAL_COMMAND_DECORATION_SUCCESS_BACKGROUND_COLOR, TERMINAL_CURSOR_BACKGROUND_COLOR, TERMINAL_CURSOR_FOREGROUND_COLOR, TERMINAL_FIND_MATCH_BACKGROUND_COLOR, TERMINAL_FIND_MATCH_BORDER_COLOR, TERMINAL_FIND_MATCH_HIGHLIGHT_BACKGROUND_COLOR, TERMINAL_FIND_MATCH_HIGHLIGHT_BORDER_COLOR, TERMINAL_FOREGROUND_COLOR, TERMINAL_INACTIVE_SELECTION_BACKGROUND_COLOR, TERMINAL_OVERVIEW_RULER_CURSOR_FOREGROUND_COLOR, TERMINAL_OVERVIEW_RULER_FIND_MATCH_FOREGROUND_COLOR, TERMINAL_SELECTION_BACKGROUND_COLOR, TERMINAL_SELECTION_FOREGROUND_COLOR, ansiColorIdentifiers, ansiColorMap, registerColors };