@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
@@ -1,48 +1,123 @@
1
- import { localize } from 'monaco-editor/esm/vs/nls.js';
1
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
2
2
  import { MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
3
3
  import { Extensions as Extensions$1 } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
4
+ import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
4
5
  import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
5
6
  import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
6
7
  import { registerColor, editorWidgetBackground, editorWidgetBorder, widgetShadow, editorHoverHighlight, focusBorder, inputPlaceholderForeground, inputBackground, transparent, diffInserted, diffRemoved } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
7
8
  import { Extensions } from '../../../common/configuration.js';
8
9
  const IInlineChatService = ( createDecorator('IInlineChatService'));
10
+ ( new RawContextKey(
11
+ 'inlineChatHasProvider',
12
+ false,
13
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatHasProvider', "Whether a provider for interactive editors exists")
14
+ ));
15
+ ( new RawContextKey(
16
+ 'inlineChatVisible',
17
+ false,
18
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatVisible', "Whether the interactive editor input is visible")
19
+ ));
20
+ ( new RawContextKey(
21
+ 'inlineChatFocused',
22
+ false,
23
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatFocused', "Whether the interactive editor input is focused")
24
+ ));
25
+ ( new RawContextKey(
26
+ 'inlineChatResponseFocused',
27
+ false,
28
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatResponseFocused', "Whether the interactive widget's response is focused")
29
+ ));
30
+ ( new RawContextKey(
31
+ 'inlineChatEmpty',
32
+ false,
33
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatEmpty', "Whether the interactive editor input is empty")
34
+ ));
35
+ ( new RawContextKey(
36
+ 'inlineChatInnerCursorFirst',
37
+ false,
38
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInnerCursorFirst', "Whether the cursor of the iteractive editor input is on the first line")
39
+ ));
40
+ ( new RawContextKey(
41
+ 'inlineChatInnerCursorLast',
42
+ false,
43
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInnerCursorLast', "Whether the cursor of the iteractive editor input is on the last line")
44
+ ));
45
+ ( new RawContextKey(
46
+ 'inlineChatInnerCursorStart',
47
+ false,
48
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInnerCursorStart', "Whether the cursor of the iteractive editor input is on the start of the input")
49
+ ));
50
+ ( new RawContextKey(
51
+ 'inlineChatInnerCursorEnd',
52
+ false,
53
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInnerCursorEnd', "Whether the cursor of the iteractive editor input is on the end of the input")
54
+ ));
55
+ ( new RawContextKey(
56
+ 'inlineChatMarkdownMessageCropState',
57
+ 'not_cropped',
58
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatMarkdownMessageCropState', "Whether the interactive editor message is cropped, not cropped or expanded")
59
+ ));
60
+ ( new RawContextKey(
61
+ 'inlineChatOuterCursorPosition',
62
+ '',
63
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatOuterCursorPosition', "Whether the cursor of the outer editor is above or below the interactive editor input")
64
+ ));
65
+ ( new RawContextKey(
66
+ 'inlineChatHasActiveRequest',
67
+ false,
68
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatHasActiveRequest', "Whether interactive editor has an active request")
69
+ ));
70
+ ( new RawContextKey(
71
+ 'inlineChatHasStashedSession',
72
+ false,
73
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatHasStashedSession', "Whether interactive editor has kept a session for quick restore")
74
+ ));
75
+ ( new RawContextKey(
76
+ 'inlineChatLastResponseType',
77
+ undefined,
78
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatResponseType', "What type was the last response of the current interactive editor session")
79
+ ));
80
+ ( new RawContextKey(
81
+ 'inlineChatResponseTypes',
82
+ undefined,
83
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatResponseTypes', "What type was the responses have been receieved")
84
+ ));
85
+ ( new RawContextKey(
86
+ 'inlineChatDidEdit',
87
+ undefined,
88
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatDidEdit', "Whether interactive editor did change any code")
89
+ ));
90
+ ( new RawContextKey(
91
+ 'inlineChatUserDidEdit',
92
+ undefined,
93
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatUserDidEdit', "Whether the user did changes ontop of the inline chat")
94
+ ));
95
+ ( new RawContextKey(
96
+ 'inlineChatLastFeedbackKind',
97
+ '',
98
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatLastFeedbackKind', "The last kind of feedback that was provided")
99
+ ));
100
+ ( new RawContextKey(
101
+ 'inlineChatDocumentChanged',
102
+ false,
103
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatDocumentChanged', "Whether the document has changed concurrently")
104
+ ));
9
105
  MenuId.for('inlineChatWidget');
10
106
  MenuId.for('inlineChatWidget.markdownMessage');
11
107
  MenuId.for('inlineChatWidget.status');
12
108
  MenuId.for('inlineChatWidget.feedback');
13
109
  MenuId.for('inlineChatWidget.undo');
14
110
  MenuId.for('inlineChatWidget.toggle');
15
- registerColor('inlineChat.background', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: editorWidgetBackground, hcLight: editorWidgetBackground }, ( localize(
16
- 'inlineChat.background',
17
- "Background color of the interactive editor widget"
18
- )));
19
- registerColor('inlineChat.border', { dark: editorWidgetBorder, light: editorWidgetBorder, hcDark: editorWidgetBorder, hcLight: editorWidgetBorder }, ( localize('inlineChat.border', "Border color of the interactive editor widget")));
20
- registerColor('inlineChat.shadow', { dark: widgetShadow, light: widgetShadow, hcDark: widgetShadow, hcLight: widgetShadow }, ( localize('inlineChat.shadow', "Shadow color of the interactive editor widget")));
21
- registerColor('inlineChat.regionHighlight', { dark: editorHoverHighlight, light: editorHoverHighlight, hcDark: editorHoverHighlight, hcLight: editorHoverHighlight }, ( localize(
22
- 'inlineChat.regionHighlight',
23
- "Background highlighting of the current interactive region. Must be transparent."
24
- )), true);
25
- registerColor('inlineChatInput.border', { dark: editorWidgetBorder, light: editorWidgetBorder, hcDark: editorWidgetBorder, hcLight: editorWidgetBorder }, ( localize('inlineChatInput.border', "Border color of the interactive editor input")));
26
- registerColor('inlineChatInput.focusBorder', { dark: focusBorder, light: focusBorder, hcDark: focusBorder, hcLight: focusBorder }, ( localize(
27
- 'inlineChatInput.focusBorder',
28
- "Border color of the interactive editor input when focused"
29
- )));
30
- registerColor('inlineChatInput.placeholderForeground', { dark: inputPlaceholderForeground, light: inputPlaceholderForeground, hcDark: inputPlaceholderForeground, hcLight: inputPlaceholderForeground }, ( localize(
31
- 'inlineChatInput.placeholderForeground',
32
- "Foreground color of the interactive editor input placeholder"
33
- )));
34
- registerColor('inlineChatInput.background', { dark: inputBackground, light: inputBackground, hcDark: inputBackground, hcLight: inputBackground }, ( localize(
35
- 'inlineChatInput.background',
36
- "Background color of the interactive editor input"
37
- )));
38
- registerColor('inlineChatDiff.inserted', { dark: ( transparent(diffInserted, .5)), light: ( transparent(diffInserted, .5)), hcDark: ( transparent(diffInserted, .5)), hcLight: ( transparent(diffInserted, .5)) }, ( localize(
39
- 'inlineChatDiff.inserted',
40
- "Background color of inserted text in the interactive editor input"
41
- )));
42
- registerColor('inlineChatDiff.removed', { dark: ( transparent(diffRemoved, .5)), light: ( transparent(diffRemoved, .5)), hcDark: ( transparent(diffRemoved, .5)), hcLight: ( transparent(diffRemoved, .5)) }, ( localize(
43
- 'inlineChatDiff.removed',
44
- "Background color of removed text in the interactive editor input"
45
- )));
111
+ registerColor('inlineChat.background', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: editorWidgetBackground, hcLight: editorWidgetBackground }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChat.background', "Background color of the interactive editor widget"));
112
+ registerColor('inlineChat.border', { dark: editorWidgetBorder, light: editorWidgetBorder, hcDark: editorWidgetBorder, hcLight: editorWidgetBorder }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChat.border', "Border color of the interactive editor widget"));
113
+ registerColor('inlineChat.shadow', { dark: widgetShadow, light: widgetShadow, hcDark: widgetShadow, hcLight: widgetShadow }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChat.shadow', "Shadow color of the interactive editor widget"));
114
+ registerColor('inlineChat.regionHighlight', { dark: editorHoverHighlight, light: editorHoverHighlight, hcDark: editorHoverHighlight, hcLight: editorHoverHighlight }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChat.regionHighlight', "Background highlighting of the current interactive region. Must be transparent."), true);
115
+ registerColor('inlineChatInput.border', { dark: editorWidgetBorder, light: editorWidgetBorder, hcDark: editorWidgetBorder, hcLight: editorWidgetBorder }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInput.border', "Border color of the interactive editor input"));
116
+ registerColor('inlineChatInput.focusBorder', { dark: focusBorder, light: focusBorder, hcDark: focusBorder, hcLight: focusBorder }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInput.focusBorder', "Border color of the interactive editor input when focused"));
117
+ registerColor('inlineChatInput.placeholderForeground', { dark: inputPlaceholderForeground, light: inputPlaceholderForeground, hcDark: inputPlaceholderForeground, hcLight: inputPlaceholderForeground }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInput.placeholderForeground', "Foreground color of the interactive editor input placeholder"));
118
+ registerColor('inlineChatInput.background', { dark: inputBackground, light: inputBackground, hcDark: inputBackground, hcLight: inputBackground }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInput.background', "Background color of the interactive editor input"));
119
+ registerColor('inlineChatDiff.inserted', { dark: ( transparent(diffInserted, .5)), light: ( transparent(diffInserted, .5)), hcDark: ( transparent(diffInserted, .5)), hcLight: ( transparent(diffInserted, .5)) }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatDiff.inserted', "Background color of inserted text in the interactive editor input"));
120
+ registerColor('inlineChatDiff.removed', { dark: ( transparent(diffRemoved, .5)), light: ( transparent(diffRemoved, .5)), hcDark: ( transparent(diffRemoved, .5)), hcLight: ( transparent(diffRemoved, .5)) }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatDiff.removed', "Background color of removed text in the interactive editor input"));
46
121
  ( Registry.as(Extensions.ConfigurationMigration)).registerConfigurationMigrations([{
47
122
  key: 'interactiveEditor.editMode', migrateFn: (value) => {
48
123
  return [['inlineChat.mode', { value: value }]];
@@ -52,33 +127,18 @@ registerColor('inlineChatDiff.removed', { dark: ( transparent(diffRemoved, .5)),
52
127
  id: 'editor',
53
128
  properties: {
54
129
  'inlineChat.mode': {
55
- description: ( localize(
56
- 'mode',
57
- "Configure if changes crafted in the interactive editor are applied directly to the document or are previewed first."
58
- )),
130
+ description: localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'mode', "Configure if changes crafted in the interactive editor are applied directly to the document or are previewed first."),
59
131
  default: "livePreview" ,
60
132
  type: 'string',
61
133
  enum: ["livePreview" , "preview" , "live" ],
62
134
  markdownEnumDescriptions: [
63
- ( localize(
64
- 'mode.livePreview',
65
- "Changes are applied directly to the document and are highlighted visually via inline or side-by-side diffs. Ending a session will keep the changes."
66
- )),
67
- ( localize(
68
- 'mode.preview',
69
- "Changes are previewed only and need to be accepted via the apply button. Ending a session will discard the changes."
70
- )),
71
- ( localize(
72
- 'mode.live',
73
- "Changes are applied directly to the document but can be highlighted via inline diffs. Ending a session will keep the changes."
74
- )),
135
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'mode.livePreview', "Changes are applied directly to the document and are highlighted visually via inline or side-by-side diffs. Ending a session will keep the changes."),
136
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'mode.preview', "Changes are previewed only and need to be accepted via the apply button. Ending a session will discard the changes."),
137
+ localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'mode.live', "Changes are applied directly to the document but can be highlighted via inline diffs. Ending a session will keep the changes."),
75
138
  ]
76
139
  },
77
140
  'inlineChat.showDiff': {
78
- description: ( localize(
79
- 'showDiff',
80
- "Enable/disable showing the diff when edits are generated. Works only with inlineChat.mode equal to live or livePreview."
81
- )),
141
+ description: localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'showDiff', "Enable/disable showing the diff when edits are generated. Works only with inlineChat.mode equal to live or livePreview."),
82
142
  default: true,
83
143
  type: 'boolean'
84
144
  }
@@ -8,7 +8,7 @@ class ToggleKeybindingsLogAction extends Action2 {
8
8
  constructor() {
9
9
  super({
10
10
  id: 'workbench.action.toggleKeybindingsLog',
11
- title: { value: ( nls.localize('toggleKeybindingsLog', "Toggle Keyboard Shortcuts Troubleshooting")), original: 'Toggle Keyboard Shortcuts Troubleshooting' },
11
+ title: { value: nls.localizeWithPath('vs/workbench/contrib/keybindings/browser/keybindings.contribution', 'toggleKeybindingsLog', "Toggle Keyboard Shortcuts Troubleshooting"), original: 'Toggle Keyboard Shortcuts Troubleshooting' },
12
12
  category: Categories.Developer,
13
13
  f1: true
14
14
  });
@@ -3,7 +3,7 @@ import { assertFn } from 'monaco-editor/esm/vs/base/common/assert.js';
3
3
  import { autorun } from 'monaco-editor/esm/vs/base/common/observable.js';
4
4
  import { isEqual } from 'monaco-editor/esm/vs/base/common/resources.js';
5
5
  import { isDefined } from 'monaco-editor/esm/vs/base/common/types.js';
6
- import { localize } from 'monaco-editor/esm/vs/nls.js';
6
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
7
7
  import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
8
8
  import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
9
9
  import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
@@ -59,7 +59,7 @@ let MergeEditorInput = class MergeEditorInput extends AbstractTextResourceEditor
59
59
  return capabilities;
60
60
  }
61
61
  getName() {
62
- return ( localize('name', "Merging: {0}", super.getName()));
62
+ return localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInput', 'name', "Merging: {0}", super.getName());
63
63
  }
64
64
  async resolve() {
65
65
  if (!this._inputModel) {
@@ -8,7 +8,7 @@ import { basename, isEqual } from 'monaco-editor/esm/vs/base/common/resources.js
8
8
  import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
9
9
  import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
10
10
  import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
11
- import { localize } from 'monaco-editor/esm/vs/nls.js';
11
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
12
12
  import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
13
13
  import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
14
14
  import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
@@ -101,29 +101,18 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
101
101
  if (someDirty) {
102
102
  const isMany = inputModels.length > 1;
103
103
  const message = isMany
104
- ? ( localize(
105
- 'messageN',
106
- 'Do you want keep the merge result of {0} files?',
107
- inputModels.length
108
- ))
109
- : ( localize(
110
- 'message1',
111
- 'Do you want keep the merge result of {0}?',
112
- basename(inputModels[0].model.resultTextModel.uri)
113
- ));
104
+ ? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'messageN', 'Do you want keep the merge result of {0} files?', inputModels.length)
105
+ : localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'message1', 'Do you want keep the merge result of {0}?', basename(inputModels[0].model.resultTextModel.uri));
114
106
  const hasUnhandledConflicts = ( inputModels.some((m) => m.model.hasUnhandledConflicts.get()));
115
107
  const buttons = [
116
108
  {
117
109
  label: hasUnhandledConflicts ?
118
- ( localize(
119
- { key: 'saveWithConflict', comment: ['&& denotes a mnemonic'] },
120
- "&&Save With Conflicts"
121
- )) :
122
- ( localize({ key: 'save', comment: ['&& denotes a mnemonic'] }, "&&Save")),
110
+ localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'saveWithConflict', comment: ['&& denotes a mnemonic'] }, "&&Save With Conflicts") :
111
+ localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'save', comment: ['&& denotes a mnemonic'] }, "&&Save"),
123
112
  run: () => 0
124
113
  },
125
114
  {
126
- label: ( localize({ key: 'discard', comment: ['&& denotes a mnemonic'] }, "Do&&n't Save")),
115
+ label: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'discard', comment: ['&& denotes a mnemonic'] }, "Do&&n't Save"),
127
116
  run: () => 1
128
117
  }
129
118
  ];
@@ -132,17 +121,11 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
132
121
  message,
133
122
  detail: hasUnhandledConflicts
134
123
  ? isMany
135
- ? ( localize(
136
- 'detailNConflicts',
137
- "The files contain unhandled conflicts. The merge results will be lost if you don't save them."
138
- ))
139
- : ( localize(
140
- 'detail1Conflicts',
141
- "The file contains unhandled conflicts. The merge result will be lost if you don't save it."
142
- ))
124
+ ? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'detailNConflicts', "The files contain unhandled conflicts. The merge results will be lost if you don't save them.")
125
+ : localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'detail1Conflicts', "The file contains unhandled conflicts. The merge result will be lost if you don't save it.")
143
126
  : isMany
144
- ? ( localize('detailN', "The merge results will be lost if you don't save them."))
145
- : ( localize('detail1', "The merge result will be lost if you don't save it.")),
127
+ ? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'detailN', "The merge results will be lost if you don't save them.")
128
+ : localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'detail1', "The merge result will be lost if you don't save it."),
146
129
  buttons,
147
130
  cancelButton: {
148
131
  run: () => 2
@@ -167,15 +150,9 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
167
150
  }
168
151
  (async () => {
169
152
  const { confirmed } = await this.dialogService.confirm({
170
- message: ( localize('saveTempFile.message', "Do you want to accept the merge result?")),
171
- detail: ( localize(
172
- 'saveTempFile.detail',
173
- "This will write the merge result to the original file and close the merge editor."
174
- )),
175
- primaryButton: ( localize(
176
- { key: 'acceptMerge', comment: ['&& denotes a mnemonic'] },
177
- '&&Accept Merge'
178
- ))
153
+ message: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'saveTempFile.message', "Do you want to accept the merge result?"),
154
+ detail: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'saveTempFile.detail', "This will write the merge result to the original file and close the merge editor."),
155
+ primaryButton: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'acceptMerge', comment: ['&& denotes a mnemonic'] }, '&&Accept Merge')
179
156
  });
180
157
  if (confirmed) {
181
158
  await this.accept();
@@ -200,7 +177,7 @@ let WorkspaceMergeEditorModeFactory = class WorkspaceMergeEditorModeFactory {
200
177
  this._textModelService = _textModelService;
201
178
  this.textFileService = textFileService;
202
179
  }
203
- static { this.FILE_SAVED_SOURCE = SaveSourceRegistry.registerSource('merge-editor.source', ( localize('merge-editor.source', "Before Resolving Conflicts In Merge Editor"))); }
180
+ static { this.FILE_SAVED_SOURCE = SaveSourceRegistry.registerSource('merge-editor.source', localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'merge-editor.source', "Before Resolving Conflicts In Merge Editor")); }
204
181
  async createInputModel(args) {
205
182
  const store = ( new DisposableStore());
206
183
  let resultTextFileModel = undefined;
@@ -309,53 +286,27 @@ let WorkspaceMergeEditorInputModel = class WorkspaceMergeEditorInputModel extend
309
286
  const someUnhandledConflicts = ( inputModels.some(m => m.model.hasUnhandledConflicts.get()));
310
287
  if (someDirty) {
311
288
  const message = isMany
312
- ? ( localize(
313
- 'workspace.messageN',
314
- 'Do you want to save the changes you made to {0} files?',
315
- inputModels.length
316
- ))
317
- : ( localize(
318
- 'workspace.message1',
319
- 'Do you want to save the changes you made to {0}?',
320
- basename(inputModels[0].resultUri)
321
- ));
289
+ ? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.messageN', 'Do you want to save the changes you made to {0} files?', inputModels.length)
290
+ : localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.message1', 'Do you want to save the changes you made to {0}?', basename(inputModels[0].resultUri));
322
291
  const { result } = await this._dialogService.prompt({
323
292
  type: Severity.Info,
324
293
  message,
325
294
  detail: someUnhandledConflicts ?
326
295
  isMany
327
- ? ( localize(
328
- 'workspace.detailN.unhandled',
329
- "The files contain unhandled conflicts. Your changes will be lost if you don't save them."
330
- ))
331
- : ( localize(
332
- 'workspace.detail1.unhandled',
333
- "The file contains unhandled conflicts. Your changes will be lost if you don't save them."
334
- ))
296
+ ? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.detailN.unhandled', "The files contain unhandled conflicts. Your changes will be lost if you don't save them.")
297
+ : localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.detail1.unhandled', "The file contains unhandled conflicts. Your changes will be lost if you don't save them.")
335
298
  : isMany
336
- ? ( localize(
337
- 'workspace.detailN.handled',
338
- "Your changes will be lost if you don't save them."
339
- ))
340
- : ( localize(
341
- 'workspace.detail1.handled',
342
- "Your changes will be lost if you don't save them."
343
- )),
299
+ ? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.detailN.handled', "Your changes will be lost if you don't save them.")
300
+ : localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.detail1.handled', "Your changes will be lost if you don't save them."),
344
301
  buttons: [
345
302
  {
346
303
  label: someUnhandledConflicts
347
- ? ( localize(
348
- { key: 'workspace.saveWithConflict', comment: ['&& denotes a mnemonic'] },
349
- '&&Save with Conflicts'
350
- ))
351
- : ( localize({ key: 'workspace.save', comment: ['&& denotes a mnemonic'] }, '&&Save')),
304
+ ? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'workspace.saveWithConflict', comment: ['&& denotes a mnemonic'] }, '&&Save with Conflicts')
305
+ : localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'workspace.save', comment: ['&& denotes a mnemonic'] }, '&&Save'),
352
306
  run: () => 0
353
307
  },
354
308
  {
355
- label: ( localize(
356
- { key: 'workspace.doNotSave', comment: ['&& denotes a mnemonic'] },
357
- "Do&&n't Save"
358
- )),
309
+ label: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'workspace.doNotSave', comment: ['&& denotes a mnemonic'] }, "Do&&n't Save"),
359
310
  run: () => 1
360
311
  }
361
312
  ],
@@ -368,34 +319,17 @@ let WorkspaceMergeEditorInputModel = class WorkspaceMergeEditorInputModel extend
368
319
  else if (someUnhandledConflicts && !this._storageService.getBoolean(StorageCloseWithConflicts, 0 , false)) {
369
320
  const { confirmed, checkboxChecked } = await this._dialogService.confirm({
370
321
  message: isMany
371
- ? ( localize(
372
- 'workspace.messageN.nonDirty',
373
- 'Do you want to close {0} merge editors?',
374
- inputModels.length
375
- ))
376
- : ( localize(
377
- 'workspace.message1.nonDirty',
378
- 'Do you want to close the merge editor for {0}?',
379
- basename(inputModels[0].resultUri)
380
- )),
322
+ ? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.messageN.nonDirty', 'Do you want to close {0} merge editors?', inputModels.length)
323
+ : localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.message1.nonDirty', 'Do you want to close the merge editor for {0}?', basename(inputModels[0].resultUri)),
381
324
  detail: someUnhandledConflicts ?
382
325
  isMany
383
- ? ( localize(
384
- 'workspace.detailN.unhandled.nonDirty',
385
- "The files contain unhandled conflicts."
386
- ))
387
- : ( localize(
388
- 'workspace.detail1.unhandled.nonDirty',
389
- "The file contains unhandled conflicts."
390
- ))
326
+ ? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.detailN.unhandled.nonDirty', "The files contain unhandled conflicts.")
327
+ : localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.detail1.unhandled.nonDirty', "The file contains unhandled conflicts.")
391
328
  : undefined,
392
329
  primaryButton: someUnhandledConflicts
393
- ? ( localize(
394
- { key: 'workspace.closeWithConflicts', comment: ['&& denotes a mnemonic'] },
395
- '&&Close with Conflicts'
396
- ))
397
- : ( localize({ key: 'workspace.close', comment: ['&& denotes a mnemonic'] }, '&&Close')),
398
- checkbox: { label: ( localize('noMoreWarn', "Don't ask again")) }
330
+ ? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'workspace.closeWithConflicts', comment: ['&& denotes a mnemonic'] }, '&&Close with Conflicts')
331
+ : localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'workspace.close', comment: ['&& denotes a mnemonic'] }, '&&Close'),
332
+ checkbox: { label: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'noMoreWarn', "Don't ask again") }
399
333
  });
400
334
  if (checkboxChecked) {
401
335
  this._storageService.store(StorageCloseWithConflicts, true, 0 , 0 );