@codingame/monaco-vscode-api 1.83.2 → 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 (216) hide show
  1. package/extensions.d.ts +3 -3
  2. package/extensions.js +31 -33
  3. package/l10n.d.ts +4 -0
  4. package/l10n.js +10 -0
  5. package/missing-services.js +4 -2
  6. package/monaco-editor-treemending.patch +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/workbench/api/browser/mainThreadAuthentication.js +13 -32
  35. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
  36. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +3 -3
  37. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +4 -5
  38. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +38 -50
  39. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +21 -53
  40. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
  41. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +4 -5
  42. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +6 -2
  43. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +4 -2
  44. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
  45. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -12
  46. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +15 -9
  47. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +2 -6
  48. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +6 -28
  49. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +60 -0
  50. package/vscode/src/vs/workbench/api/common/extHostChat.js +3 -3
  51. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +2 -6
  52. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  53. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +3 -11
  54. package/vscode/src/vs/workbench/api/common/extHostLogService.js +2 -2
  55. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +3 -3
  56. package/vscode/src/vs/workbench/api/common/extHostProgress.js +2 -6
  57. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +3 -7
  58. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -6
  59. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +2 -6
  60. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +2 -2
  61. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  62. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +2 -7
  63. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +9 -34
  64. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +898 -68
  65. package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +7 -7
  66. package/vscode/src/vs/workbench/browser/actions/windowActions.js +32 -38
  67. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +103 -13
  68. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +2 -2
  69. package/vscode/src/vs/workbench/browser/editor.js +3 -3
  70. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +12 -27
  71. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +12 -12
  72. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +2 -7
  73. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +4 -7
  74. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +42 -90
  75. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +140 -272
  76. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +115 -148
  77. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +21 -33
  78. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +7 -19
  79. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -26
  80. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +7 -17
  81. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +60 -81
  82. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +2 -2
  83. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -2
  84. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +4 -11
  85. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +2 -2
  86. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +8 -8
  87. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +69 -34
  88. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +58 -34
  89. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +2 -2
  90. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +3 -9
  91. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
  92. package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +7 -11
  93. package/vscode/src/vs/workbench/browser/quickaccess.js +7 -3
  94. package/vscode/src/vs/workbench/browser/workbench.contribution.js +186 -683
  95. package/vscode/src/vs/workbench/common/configuration.js +12 -15
  96. package/vscode/src/vs/workbench/common/contextkeys.js +272 -90
  97. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +2 -2
  98. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +2 -7
  99. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +2 -6
  100. package/vscode/src/vs/workbench/common/editor.js +5 -5
  101. package/vscode/src/vs/workbench/common/theme.js +137 -527
  102. package/vscode/src/vs/workbench/common/views.js +4 -8
  103. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +15 -55
  104. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +3 -8
  105. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +22 -60
  106. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +9 -15
  107. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +18 -48
  108. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +2 -0
  109. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +5 -10
  110. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +5 -13
  111. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +8 -27
  112. package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +5 -17
  113. package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -15
  114. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +7 -20
  115. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
  116. package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +63 -216
  117. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +4 -7
  118. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +5 -8
  119. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +8 -11
  120. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +5 -15
  121. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +3 -3
  122. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +5 -5
  123. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +3 -6
  124. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +3 -6
  125. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +10 -9
  126. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +6 -15
  127. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +5 -20
  128. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +3 -10
  129. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
  130. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -20
  131. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +9 -3
  132. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +4 -13
  133. package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +26 -77
  134. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -17
  135. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +7 -12
  136. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +10 -29
  137. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +10 -10
  138. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +8 -8
  139. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +25 -21
  140. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +2 -2
  141. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -4
  142. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +13 -13
  143. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +56 -98
  144. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +2 -2
  145. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +96 -180
  146. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -79
  147. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -15
  148. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -8
  149. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +56 -19
  150. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +76 -230
  151. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -5
  152. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -103
  153. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +228 -99
  154. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  155. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +5 -9
  156. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +5 -5
  157. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +15 -35
  158. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +5 -8
  159. package/vscode/src/vs/workbench/contrib/files/common/files.js +27 -48
  160. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -6
  161. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  162. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +5 -8
  163. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +112 -52
  164. package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +1 -1
  165. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +2 -2
  166. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +30 -96
  167. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +3 -3
  168. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +42 -0
  169. package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +23 -29
  170. package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +3 -3
  171. package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +13 -16
  172. package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +15 -34
  173. package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +12 -17
  174. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
  175. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +26 -75
  176. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +4 -19
  177. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +4 -4
  178. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +10 -41
  179. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -14
  180. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +26 -13
  181. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +8 -6
  182. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +5 -17
  183. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -28
  184. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +21 -78
  185. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +21 -53
  186. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  187. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +2 -5
  188. package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +113 -348
  189. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +2 -5
  190. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +31 -1
  191. package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +1 -4
  192. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  193. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +2 -2
  194. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +2 -5
  195. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +4 -4
  196. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +10 -45
  197. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
  198. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +80 -296
  199. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +6 -21
  200. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +3 -6
  201. package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +24 -81
  202. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +2 -2
  203. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +11 -17
  204. package/vscode/src/vs/workbench/services/language/common/languageService.js +23 -98
  205. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +9 -11
  206. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -5
  207. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +11 -23
  208. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +2 -2
  209. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +2 -7
  210. package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +2 -2
  211. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +16 -53
  212. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +50 -1
  213. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +25 -99
  214. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -3
  215. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +15 -3
  216. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +2 -2
@@ -1,21 +1,27 @@
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 { Extensions as Extensions$1 } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
4
4
  import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
5
5
  import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
6
6
  import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
7
7
  import { IRemoteAgentService } from '../services/remote/common/remoteAgentService.js';
8
8
  import { isWindows } from 'monaco-editor/esm/vs/base/common/platform.js';
9
+ ( Object.freeze({
10
+ 'id': 'application',
11
+ 'order': 100,
12
+ 'title': localizeWithPath('vs/workbench/common/configuration', 'applicationConfigurationTitle', "Application"),
13
+ 'type': 'object'
14
+ }));
9
15
  const workbenchConfigurationNodeBase = ( Object.freeze({
10
16
  'id': 'workbench',
11
17
  'order': 7,
12
- 'title': ( localize('workbenchConfigurationTitle', "Workbench")),
18
+ 'title': localizeWithPath('vs/workbench/common/configuration', 'workbenchConfigurationTitle', "Workbench"),
13
19
  'type': 'object',
14
20
  }));
15
21
  const securityConfigurationNodeBase = ( Object.freeze({
16
22
  'id': 'security',
17
23
  'scope': 1 ,
18
- 'title': ( localize('securityConfigurationTitle', "Security")),
24
+ 'title': localizeWithPath('vs/workbench/common/configuration', 'securityConfigurationTitle', "Security"),
19
25
  'type': 'object',
20
26
  'order': 7
21
27
  }));
@@ -53,25 +59,16 @@ let DynamicWorkbenchConfigurationWorkbenchContribution = class DynamicWorkbenchC
53
59
  'items': {
54
60
  'type': 'string',
55
61
  'pattern': '^[^\\\\]+$',
56
- 'patternErrorMessage': ( localize(
57
- 'security.allowedUNCHosts.patternErrorMessage',
58
- 'UNC host names must not contain backslashes.'
59
- ))
62
+ 'patternErrorMessage': localizeWithPath('vs/workbench/common/configuration', 'security.allowedUNCHosts.patternErrorMessage', 'UNC host names must not contain backslashes.')
60
63
  },
61
64
  'default': [],
62
- 'markdownDescription': ( localize(
63
- 'security.allowedUNCHosts',
64
- 'A set of UNC host names (without leading or trailing backslash, for example `192.168.0.1` or `my-server`) to allow without user confirmation. If a UNC host is being accessed that is not allowed via this setting or has not been acknowledged via user confirmation, an error will occur and the operation stopped. A restart is required when changing this setting. Find out more about this setting at https://aka.ms/vscode-windows-unc.'
65
- )),
65
+ 'markdownDescription': localizeWithPath('vs/workbench/common/configuration', 'security.allowedUNCHosts', 'A set of UNC host names (without leading or trailing backslash, for example `192.168.0.1` or `my-server`) to allow without user confirmation. If a UNC host is being accessed that is not allowed via this setting or has not been acknowledged via user confirmation, an error will occur and the operation stopped. A restart is required when changing this setting. Find out more about this setting at https://aka.ms/vscode-windows-unc.'),
66
66
  'scope': 2
67
67
  },
68
68
  'security.restrictUNCAccess': {
69
69
  'type': 'boolean',
70
70
  'default': true,
71
- 'markdownDescription': ( localize(
72
- 'security.restrictUNCAccess',
73
- 'If enabled, only allows access to UNC host names that are allowed by the `#security.allowedUNCHosts#` setting or after user confirmation. Find out more about this setting at https://aka.ms/vscode-windows-unc.'
74
- )),
71
+ 'markdownDescription': localizeWithPath('vs/workbench/common/configuration', 'security.restrictUNCAccess', 'If enabled, only allows access to UNC host names that are allowed by the `#security.allowedUNCHosts#` setting or after user confirmation. Find out more about this setting at https://aka.ms/vscode-windows-unc.'),
75
72
  'scope': 2
76
73
  }
77
74
  }
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param } from '../../../../../external/tslib/tslib.es6.js';
2
2
  import { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
3
- import { localize } from 'monaco-editor/esm/vs/nls.js';
3
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
4
4
  import { RawContextKey, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
5
5
  import { isEqual, basename, dirname, extname } from 'monaco-editor/esm/vs/base/common/resources.js';
6
6
  import { ILanguageService } from 'monaco-editor/esm/vs/editor/common/languages/language.js';
@@ -9,133 +9,315 @@ import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model
9
9
  import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
10
10
  import { DEFAULT_EDITOR_ASSOCIATION } from './editor.js';
11
11
  var ResourceContextKey_1;
12
- const WorkbenchStateContext = ( new RawContextKey('workbenchState', undefined, { type: 'string', description: ( localize(
12
+ const WorkbenchStateContext = ( new RawContextKey(
13
13
  'workbenchState',
14
- "The kind of workspace opened in the window, either 'empty' (no workspace), 'folder' (single folder) or 'workspace' (multi-root workspace)"
15
- )) }));
16
- const WorkspaceFolderCountContext = ( new RawContextKey('workspaceFolderCount', 0, ( localize('workspaceFolderCount', "The number of root folders in the workspace"))));
14
+ undefined,
15
+ { type: 'string', description: localizeWithPath('vs/workbench/common/contextkeys', 'workbenchState', "The kind of workspace opened in the window, either 'empty' (no workspace), 'folder' (single folder) or 'workspace' (multi-root workspace)") }
16
+ ));
17
+ const WorkspaceFolderCountContext = ( new RawContextKey(
18
+ 'workspaceFolderCount',
19
+ 0,
20
+ localizeWithPath('vs/workbench/common/contextkeys', 'workspaceFolderCount', "The number of root folders in the workspace")
21
+ ));
17
22
  const OpenFolderWorkspaceSupportContext = ( new RawContextKey('openFolderWorkspaceSupport', true, true));
18
23
  const EnterMultiRootWorkspaceSupportContext = ( new RawContextKey('enterMultiRootWorkspaceSupport', true, true));
19
24
  const EmptyWorkspaceSupportContext = ( new RawContextKey('emptyWorkspaceSupport', true, true));
20
- const DirtyWorkingCopiesContext = ( new RawContextKey('dirtyWorkingCopies', false, ( localize(
25
+ const DirtyWorkingCopiesContext = ( new RawContextKey(
21
26
  'dirtyWorkingCopies',
22
- "Whether there are any working copies with unsaved changes"
23
- ))));
24
- const RemoteNameContext = ( new RawContextKey('remoteName', '', ( localize(
27
+ false,
28
+ localizeWithPath('vs/workbench/common/contextkeys', 'dirtyWorkingCopies', "Whether there are any working copies with unsaved changes")
29
+ ));
30
+ const RemoteNameContext = ( new RawContextKey(
25
31
  'remoteName',
26
- "The name of the remote the window is connected to or an empty string if not connected to any remote"
27
- ))));
28
- const VirtualWorkspaceContext = ( new RawContextKey('virtualWorkspace', '', ( localize(
32
+ '',
33
+ localizeWithPath('vs/workbench/common/contextkeys', 'remoteName', "The name of the remote the window is connected to or an empty string if not connected to any remote")
34
+ ));
35
+ const VirtualWorkspaceContext = ( new RawContextKey(
29
36
  'virtualWorkspace',
30
- "The scheme of the current workspace is from a virtual file system or an empty string."
31
- ))));
32
- const TemporaryWorkspaceContext = ( new RawContextKey('temporaryWorkspace', false, ( localize(
37
+ '',
38
+ localizeWithPath('vs/workbench/common/contextkeys', 'virtualWorkspace', "The scheme of the current workspace is from a virtual file system or an empty string.")
39
+ ));
40
+ const TemporaryWorkspaceContext = ( new RawContextKey(
33
41
  'temporaryWorkspace',
34
- "The scheme of the current workspace is from a temporary file system."
35
- ))));
36
- const IsFullscreenContext = ( new RawContextKey('isFullscreen', false, ( localize('isFullscreen', "Whether the window is in fullscreen mode"))));
42
+ false,
43
+ localizeWithPath('vs/workbench/common/contextkeys', 'temporaryWorkspace', "The scheme of the current workspace is from a temporary file system.")
44
+ ));
45
+ const IsFullscreenContext = ( new RawContextKey(
46
+ 'isFullscreen',
47
+ false,
48
+ localizeWithPath('vs/workbench/common/contextkeys', 'isFullscreen', "Whether the window is in fullscreen mode")
49
+ ));
37
50
  const HasWebFileSystemAccess = ( new RawContextKey('hasWebFileSystemAccess', false, true));
38
- const EmbedderIdentifierContext = ( new RawContextKey('embedderIdentifier', undefined, ( localize(
51
+ const EmbedderIdentifierContext = ( new RawContextKey(
39
52
  'embedderIdentifier',
40
- 'The identifier of the embedder according to the product service, if one is defined'
41
- ))));
42
- const ActiveEditorDirtyContext = ( new RawContextKey('activeEditorIsDirty', false, ( localize('activeEditorIsDirty', "Whether the active editor has unsaved changes"))));
43
- const ActiveEditorPinnedContext = ( new RawContextKey('activeEditorIsNotPreview', false, ( localize(
53
+ undefined,
54
+ localizeWithPath('vs/workbench/common/contextkeys', 'embedderIdentifier', 'The identifier of the embedder according to the product service, if one is defined')
55
+ ));
56
+ const ActiveEditorDirtyContext = ( new RawContextKey(
57
+ 'activeEditorIsDirty',
58
+ false,
59
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeEditorIsDirty', "Whether the active editor has unsaved changes")
60
+ ));
61
+ const ActiveEditorPinnedContext = ( new RawContextKey(
44
62
  'activeEditorIsNotPreview',
45
- "Whether the active editor is not in preview mode"
46
- ))));
47
- const ActiveEditorFirstInGroupContext = ( new RawContextKey('activeEditorIsFirstInGroup', false, ( localize(
63
+ false,
64
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeEditorIsNotPreview', "Whether the active editor is not in preview mode")
65
+ ));
66
+ const ActiveEditorFirstInGroupContext = ( new RawContextKey(
48
67
  'activeEditorIsFirstInGroup',
49
- "Whether the active editor is the first one in its group"
50
- ))));
51
- const ActiveEditorLastInGroupContext = ( new RawContextKey('activeEditorIsLastInGroup', false, ( localize(
68
+ false,
69
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeEditorIsFirstInGroup', "Whether the active editor is the first one in its group")
70
+ ));
71
+ const ActiveEditorLastInGroupContext = ( new RawContextKey(
52
72
  'activeEditorIsLastInGroup',
53
- "Whether the active editor is the last one in its group"
54
- ))));
55
- const ActiveEditorStickyContext = ( new RawContextKey('activeEditorIsPinned', false, ( localize('activeEditorIsPinned', "Whether the active editor is pinned"))));
56
- const ActiveEditorReadonlyContext = ( new RawContextKey('activeEditorIsReadonly', false, ( localize('activeEditorIsReadonly', "Whether the active editor is read-only"))));
57
- const ActiveEditorCanToggleReadonlyContext = ( new RawContextKey('activeEditorCanToggleReadonly', true, ( localize(
73
+ false,
74
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeEditorIsLastInGroup', "Whether the active editor is the last one in its group")
75
+ ));
76
+ const ActiveEditorStickyContext = ( new RawContextKey(
77
+ 'activeEditorIsPinned',
78
+ false,
79
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeEditorIsPinned', "Whether the active editor is pinned")
80
+ ));
81
+ const ActiveEditorReadonlyContext = ( new RawContextKey(
82
+ 'activeEditorIsReadonly',
83
+ false,
84
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeEditorIsReadonly', "Whether the active editor is read-only")
85
+ ));
86
+ const ActiveEditorCanToggleReadonlyContext = ( new RawContextKey(
58
87
  'activeEditorCanToggleReadonly',
59
- "Whether the active editor can toggle between being read-only or writeable"
60
- ))));
61
- const ActiveEditorCanRevertContext = ( new RawContextKey('activeEditorCanRevert', false, ( localize('activeEditorCanRevert', "Whether the active editor can revert"))));
88
+ true,
89
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeEditorCanToggleReadonly', "Whether the active editor can toggle between being read-only or writeable")
90
+ ));
91
+ const ActiveEditorCanRevertContext = ( new RawContextKey(
92
+ 'activeEditorCanRevert',
93
+ false,
94
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeEditorCanRevert', "Whether the active editor can revert")
95
+ ));
62
96
  const ActiveEditorCanSplitInGroupContext = ( new RawContextKey('activeEditorCanSplitInGroup', true));
63
- const ActiveEditorContext = ( new RawContextKey('activeEditor', null, { type: 'string', description: ( localize('activeEditor', "The identifier of the active editor")) }));
64
- const ActiveEditorAvailableEditorIdsContext = ( new RawContextKey('activeEditorAvailableEditorIds', '', ( localize(
97
+ const ActiveEditorContext = ( new RawContextKey(
98
+ 'activeEditor',
99
+ null,
100
+ { type: 'string', description: localizeWithPath('vs/workbench/common/contextkeys', 'activeEditor', "The identifier of the active editor") }
101
+ ));
102
+ const ActiveEditorAvailableEditorIdsContext = ( new RawContextKey(
65
103
  'activeEditorAvailableEditorIds',
66
- "The available editor identifiers that are usable for the active editor"
67
- ))));
68
- const TextCompareEditorVisibleContext = ( new RawContextKey('textCompareEditorVisible', false, ( localize('textCompareEditorVisible', "Whether a text compare editor is visible"))));
69
- const TextCompareEditorActiveContext = ( new RawContextKey('textCompareEditorActive', false, ( localize('textCompareEditorActive', "Whether a text compare editor is active"))));
70
- const SideBySideEditorActiveContext = ( new RawContextKey('sideBySideEditorActive', false, ( localize('sideBySideEditorActive', "Whether a side by side editor is active"))));
71
- const EditorGroupEditorsCountContext = ( new RawContextKey('groupEditorsCount', 0, ( localize('groupEditorsCount', "The number of opened editor groups"))));
72
- const ActiveEditorGroupEmptyContext = ( new RawContextKey('activeEditorGroupEmpty', false, ( localize('activeEditorGroupEmpty', "Whether the active editor group is empty"))));
73
- const ActiveEditorGroupIndexContext = ( new RawContextKey('activeEditorGroupIndex', 0, ( localize('activeEditorGroupIndex', "The index of the active editor group"))));
74
- const ActiveEditorGroupLastContext = ( new RawContextKey('activeEditorGroupLast', false, ( localize(
104
+ '',
105
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeEditorAvailableEditorIds', "The available editor identifiers that are usable for the active editor")
106
+ ));
107
+ const TextCompareEditorVisibleContext = ( new RawContextKey(
108
+ 'textCompareEditorVisible',
109
+ false,
110
+ localizeWithPath('vs/workbench/common/contextkeys', 'textCompareEditorVisible', "Whether a text compare editor is visible")
111
+ ));
112
+ const TextCompareEditorActiveContext = ( new RawContextKey(
113
+ 'textCompareEditorActive',
114
+ false,
115
+ localizeWithPath('vs/workbench/common/contextkeys', 'textCompareEditorActive', "Whether a text compare editor is active")
116
+ ));
117
+ const SideBySideEditorActiveContext = ( new RawContextKey(
118
+ 'sideBySideEditorActive',
119
+ false,
120
+ localizeWithPath('vs/workbench/common/contextkeys', 'sideBySideEditorActive', "Whether a side by side editor is active")
121
+ ));
122
+ const EditorGroupEditorsCountContext = ( new RawContextKey(
123
+ 'groupEditorsCount',
124
+ 0,
125
+ localizeWithPath('vs/workbench/common/contextkeys', 'groupEditorsCount', "The number of opened editor groups")
126
+ ));
127
+ const ActiveEditorGroupEmptyContext = ( new RawContextKey(
128
+ 'activeEditorGroupEmpty',
129
+ false,
130
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeEditorGroupEmpty', "Whether the active editor group is empty")
131
+ ));
132
+ const ActiveEditorGroupIndexContext = ( new RawContextKey(
133
+ 'activeEditorGroupIndex',
134
+ 0,
135
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeEditorGroupIndex', "The index of the active editor group")
136
+ ));
137
+ const ActiveEditorGroupLastContext = ( new RawContextKey(
75
138
  'activeEditorGroupLast',
76
- "Whether the active editor group is the last group"
77
- ))));
78
- const ActiveEditorGroupLockedContext = ( new RawContextKey('activeEditorGroupLocked', false, ( localize('activeEditorGroupLocked', "Whether the active editor group is locked"))));
79
- const MultipleEditorGroupsContext = ( new RawContextKey('multipleEditorGroups', false, ( localize('multipleEditorGroups', "Whether there are multiple editor groups opened"))));
80
- const EditorsVisibleContext = ( new RawContextKey('editorIsOpen', false, ( localize('editorIsOpen', "Whether an editor is open"))));
81
- const InEditorZenModeContext = ( new RawContextKey('inZenMode', false, ( localize('inZenMode', "Whether Zen mode is enabled"))));
82
- const IsCenteredLayoutContext = ( new RawContextKey('isCenteredLayout', false, ( localize('isCenteredLayout', "Whether centered layout is enabled"))));
83
- const SplitEditorsVertically = ( new RawContextKey('splitEditorsVertically', false, ( localize('splitEditorsVertically', "Whether editors split vertically"))));
84
- const EditorAreaVisibleContext = ( new RawContextKey('editorAreaVisible', true, ( localize('editorAreaVisible', "Whether the editor area is visible"))));
85
- const EditorTabsVisibleContext = ( new RawContextKey('editorTabsVisible', true, ( localize('editorTabsVisible', "Whether editor tabs are visible"))));
139
+ false,
140
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeEditorGroupLast', "Whether the active editor group is the last group")
141
+ ));
142
+ const ActiveEditorGroupLockedContext = ( new RawContextKey(
143
+ 'activeEditorGroupLocked',
144
+ false,
145
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeEditorGroupLocked', "Whether the active editor group is locked")
146
+ ));
147
+ const MultipleEditorGroupsContext = ( new RawContextKey(
148
+ 'multipleEditorGroups',
149
+ false,
150
+ localizeWithPath('vs/workbench/common/contextkeys', 'multipleEditorGroups', "Whether there are multiple editor groups opened")
151
+ ));
152
+ const EditorsVisibleContext = ( new RawContextKey(
153
+ 'editorIsOpen',
154
+ false,
155
+ localizeWithPath('vs/workbench/common/contextkeys', 'editorIsOpen', "Whether an editor is open")
156
+ ));
157
+ const InEditorZenModeContext = ( new RawContextKey(
158
+ 'inZenMode',
159
+ false,
160
+ localizeWithPath('vs/workbench/common/contextkeys', 'inZenMode', "Whether Zen mode is enabled")
161
+ ));
162
+ const IsCenteredLayoutContext = ( new RawContextKey(
163
+ 'isCenteredLayout',
164
+ false,
165
+ localizeWithPath('vs/workbench/common/contextkeys', 'isCenteredLayout', "Whether centered layout is enabled")
166
+ ));
167
+ const SplitEditorsVertically = ( new RawContextKey(
168
+ 'splitEditorsVertically',
169
+ false,
170
+ localizeWithPath('vs/workbench/common/contextkeys', 'splitEditorsVertically', "Whether editors split vertically")
171
+ ));
172
+ const EditorAreaVisibleContext = ( new RawContextKey(
173
+ 'editorAreaVisible',
174
+ true,
175
+ localizeWithPath('vs/workbench/common/contextkeys', 'editorAreaVisible', "Whether the editor area is visible")
176
+ ));
177
+ const EditorTabsVisibleContext = ( new RawContextKey(
178
+ 'editorTabsVisible',
179
+ true,
180
+ localizeWithPath('vs/workbench/common/contextkeys', 'editorTabsVisible', "Whether editor tabs are visible")
181
+ ));
86
182
  const EditorPinnedAndUnpinnedTabsContext = ( new RawContextKey('editorPinnedAndUnpinnedTabsVisible', false, true));
87
- const SideBarVisibleContext = ( new RawContextKey('sideBarVisible', false, ( localize('sideBarVisible', "Whether the sidebar is visible"))));
88
- const SidebarFocusContext = ( new RawContextKey('sideBarFocus', false, ( localize('sideBarFocus', "Whether the sidebar has keyboard focus"))));
89
- const ActiveViewletContext = ( new RawContextKey('activeViewlet', '', ( localize('activeViewlet', "The identifier of the active viewlet"))));
90
- const StatusBarFocused = ( new RawContextKey('statusBarFocused', false, ( localize('statusBarFocused', "Whether the status bar has keyboard focus"))));
91
- const BannerFocused = ( new RawContextKey('bannerFocused', false, ( localize('bannerFocused', "Whether the banner has keyboard focus"))));
92
- const NotificationFocusedContext = ( new RawContextKey('notificationFocus', true, ( localize('notificationFocus', "Whether a notification has keyboard focus"))));
93
- const NotificationsCenterVisibleContext = ( new RawContextKey('notificationCenterVisible', false, ( localize('notificationCenterVisible', "Whether the notifications center is visible"))));
94
- const NotificationsToastsVisibleContext = ( new RawContextKey('notificationToastsVisible', false, ( localize('notificationToastsVisible', "Whether a notification toast is visible"))));
95
- const ActiveAuxiliaryContext = ( new RawContextKey('activeAuxiliary', '', ( localize('activeAuxiliary', "The identifier of the active auxiliary panel"))));
96
- const AuxiliaryBarFocusContext = ( new RawContextKey('auxiliaryBarFocus', false, ( localize('auxiliaryBarFocus', "Whether the auxiliary bar has keyboard focus"))));
97
- const AuxiliaryBarVisibleContext = ( new RawContextKey('auxiliaryBarVisible', false, ( localize('auxiliaryBarVisible', "Whether the auxiliary bar is visible"))));
98
- const ActivePanelContext = ( new RawContextKey('activePanel', '', ( localize('activePanel', "The identifier of the active panel"))));
99
- const PanelFocusContext = ( new RawContextKey('panelFocus', false, ( localize('panelFocus', "Whether the panel has keyboard focus"))));
100
- const PanelPositionContext = ( new RawContextKey('panelPosition', 'bottom', ( localize('panelPosition', "The position of the panel, always 'bottom'"))));
101
- const PanelAlignmentContext = ( new RawContextKey('panelAlignment', 'center', ( localize(
183
+ const SideBarVisibleContext = ( new RawContextKey(
184
+ 'sideBarVisible',
185
+ false,
186
+ localizeWithPath('vs/workbench/common/contextkeys', 'sideBarVisible', "Whether the sidebar is visible")
187
+ ));
188
+ const SidebarFocusContext = ( new RawContextKey(
189
+ 'sideBarFocus',
190
+ false,
191
+ localizeWithPath('vs/workbench/common/contextkeys', 'sideBarFocus', "Whether the sidebar has keyboard focus")
192
+ ));
193
+ const ActiveViewletContext = ( new RawContextKey(
194
+ 'activeViewlet',
195
+ '',
196
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeViewlet', "The identifier of the active viewlet")
197
+ ));
198
+ const StatusBarFocused = ( new RawContextKey(
199
+ 'statusBarFocused',
200
+ false,
201
+ localizeWithPath('vs/workbench/common/contextkeys', 'statusBarFocused', "Whether the status bar has keyboard focus")
202
+ ));
203
+ const BannerFocused = ( new RawContextKey(
204
+ 'bannerFocused',
205
+ false,
206
+ localizeWithPath('vs/workbench/common/contextkeys', 'bannerFocused', "Whether the banner has keyboard focus")
207
+ ));
208
+ const NotificationFocusedContext = ( new RawContextKey(
209
+ 'notificationFocus',
210
+ true,
211
+ localizeWithPath('vs/workbench/common/contextkeys', 'notificationFocus', "Whether a notification has keyboard focus")
212
+ ));
213
+ const NotificationsCenterVisibleContext = ( new RawContextKey(
214
+ 'notificationCenterVisible',
215
+ false,
216
+ localizeWithPath('vs/workbench/common/contextkeys', 'notificationCenterVisible', "Whether the notifications center is visible")
217
+ ));
218
+ const NotificationsToastsVisibleContext = ( new RawContextKey(
219
+ 'notificationToastsVisible',
220
+ false,
221
+ localizeWithPath('vs/workbench/common/contextkeys', 'notificationToastsVisible', "Whether a notification toast is visible")
222
+ ));
223
+ const ActiveAuxiliaryContext = ( new RawContextKey(
224
+ 'activeAuxiliary',
225
+ '',
226
+ localizeWithPath('vs/workbench/common/contextkeys', 'activeAuxiliary', "The identifier of the active auxiliary panel")
227
+ ));
228
+ const AuxiliaryBarFocusContext = ( new RawContextKey(
229
+ 'auxiliaryBarFocus',
230
+ false,
231
+ localizeWithPath('vs/workbench/common/contextkeys', 'auxiliaryBarFocus', "Whether the auxiliary bar has keyboard focus")
232
+ ));
233
+ const AuxiliaryBarVisibleContext = ( new RawContextKey(
234
+ 'auxiliaryBarVisible',
235
+ false,
236
+ localizeWithPath('vs/workbench/common/contextkeys', 'auxiliaryBarVisible', "Whether the auxiliary bar is visible")
237
+ ));
238
+ const ActivePanelContext = ( new RawContextKey(
239
+ 'activePanel',
240
+ '',
241
+ localizeWithPath('vs/workbench/common/contextkeys', 'activePanel', "The identifier of the active panel")
242
+ ));
243
+ const PanelFocusContext = ( new RawContextKey(
244
+ 'panelFocus',
245
+ false,
246
+ localizeWithPath('vs/workbench/common/contextkeys', 'panelFocus', "Whether the panel has keyboard focus")
247
+ ));
248
+ const PanelPositionContext = ( new RawContextKey(
249
+ 'panelPosition',
250
+ 'bottom',
251
+ localizeWithPath('vs/workbench/common/contextkeys', 'panelPosition', "The position of the panel, always 'bottom'")
252
+ ));
253
+ const PanelAlignmentContext = ( new RawContextKey(
102
254
  'panelAlignment',
103
- "The alignment of the panel, either 'center', 'left', 'right' or 'justify'"
104
- ))));
105
- const PanelVisibleContext = ( new RawContextKey('panelVisible', false, ( localize('panelVisible', "Whether the panel is visible"))));
106
- const PanelMaximizedContext = ( new RawContextKey('panelMaximized', false, ( localize('panelMaximized', "Whether the panel is maximized"))));
107
- const FocusedViewContext = ( new RawContextKey('focusedView', '', ( localize('focusedView', "The identifier of the view that has keyboard focus"))));
255
+ 'center',
256
+ localizeWithPath('vs/workbench/common/contextkeys', 'panelAlignment', "The alignment of the panel, either 'center', 'left', 'right' or 'justify'")
257
+ ));
258
+ const PanelVisibleContext = ( new RawContextKey(
259
+ 'panelVisible',
260
+ false,
261
+ localizeWithPath('vs/workbench/common/contextkeys', 'panelVisible', "Whether the panel is visible")
262
+ ));
263
+ const PanelMaximizedContext = ( new RawContextKey(
264
+ 'panelMaximized',
265
+ false,
266
+ localizeWithPath('vs/workbench/common/contextkeys', 'panelMaximized', "Whether the panel is maximized")
267
+ ));
268
+ const FocusedViewContext = ( new RawContextKey(
269
+ 'focusedView',
270
+ '',
271
+ localizeWithPath('vs/workbench/common/contextkeys', 'focusedView', "The identifier of the view that has keyboard focus")
272
+ ));
108
273
  function getVisbileViewContextKey(viewId) { return `view.${viewId}.visible`; }
109
274
  function getEnabledViewContainerContextKey(viewContainerId) { return `viewContainer.${viewContainerId}.enabled`; }
110
275
  let ResourceContextKey = class ResourceContextKey {
111
276
  static { ResourceContextKey_1 = this; }
112
- static { this.Scheme = ( new RawContextKey('resourceScheme', undefined, { type: 'string', description: ( localize('resourceScheme', "The scheme of the resource")) })); }
277
+ static { this.Scheme = ( new RawContextKey(
278
+ 'resourceScheme',
279
+ undefined,
280
+ { type: 'string', description: localizeWithPath('vs/workbench/common/contextkeys', 'resourceScheme', "The scheme of the resource") }
281
+ )); }
113
282
  static { this.Filename = ( new RawContextKey(
114
283
  'resourceFilename',
115
284
  undefined,
116
- { type: 'string', description: ( localize('resourceFilename', "The file name of the resource")) }
285
+ { type: 'string', description: localizeWithPath('vs/workbench/common/contextkeys', 'resourceFilename', "The file name of the resource") }
117
286
  )); }
118
287
  static { this.Dirname = ( new RawContextKey(
119
288
  'resourceDirname',
120
289
  undefined,
121
- { type: 'string', description: ( localize('resourceDirname', "The folder name the resource is contained in")) }
290
+ { type: 'string', description: localizeWithPath('vs/workbench/common/contextkeys', 'resourceDirname', "The folder name the resource is contained in") }
291
+ )); }
292
+ static { this.Path = ( new RawContextKey(
293
+ 'resourcePath',
294
+ undefined,
295
+ { type: 'string', description: localizeWithPath('vs/workbench/common/contextkeys', 'resourcePath', "The full path of the resource") }
296
+ )); }
297
+ static { this.LangId = ( new RawContextKey(
298
+ 'resourceLangId',
299
+ undefined,
300
+ { type: 'string', description: localizeWithPath('vs/workbench/common/contextkeys', 'resourceLangId', "The language identifier of the resource") }
301
+ )); }
302
+ static { this.Resource = ( new RawContextKey(
303
+ 'resource',
304
+ undefined,
305
+ { type: 'URI', description: localizeWithPath('vs/workbench/common/contextkeys', 'resource', "The full value of the resource including scheme and path") }
122
306
  )); }
123
- static { this.Path = ( new RawContextKey('resourcePath', undefined, { type: 'string', description: ( localize('resourcePath', "The full path of the resource")) })); }
124
- static { this.LangId = ( new RawContextKey('resourceLangId', undefined, { type: 'string', description: ( localize('resourceLangId', "The language identifier of the resource")) })); }
125
- static { this.Resource = ( new RawContextKey('resource', undefined, { type: 'URI', description: ( localize('resource', "The full value of the resource including scheme and path")) })); }
126
307
  static { this.Extension = ( new RawContextKey(
127
308
  'resourceExtname',
128
309
  undefined,
129
- { type: 'string', description: ( localize('resourceExtname', "The extension name of the resource")) }
310
+ { type: 'string', description: localizeWithPath('vs/workbench/common/contextkeys', 'resourceExtname', "The extension name of the resource") }
311
+ )); }
312
+ static { this.HasResource = ( new RawContextKey(
313
+ 'resourceSet',
314
+ undefined,
315
+ { type: 'boolean', description: localizeWithPath('vs/workbench/common/contextkeys', 'resourceSet', "Whether a resource is present or not") }
130
316
  )); }
131
- static { this.HasResource = ( new RawContextKey('resourceSet', undefined, { type: 'boolean', description: ( localize('resourceSet', "Whether a resource is present or not")) })); }
132
317
  static { this.IsFileSystemResource = ( new RawContextKey(
133
318
  'isFileSystemResource',
134
319
  undefined,
135
- { type: 'boolean', description: ( localize(
136
- 'isFileSystemResource',
137
- "Whether the resource is backed by a file system provider"
138
- )) }
320
+ { type: 'boolean', description: localizeWithPath('vs/workbench/common/contextkeys', 'isFileSystemResource', "Whether the resource is backed by a file system provider") }
139
321
  )); }
140
322
  constructor(_contextKeyService, _fileService, _languageService, _modelService) {
141
323
  this._contextKeyService = _contextKeyService;
@@ -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 { SideBySideEditorInput } from './sideBySideEditorInput.js';
4
4
  import { BINARY_DIFF_EDITOR_ID, TEXT_DIFF_EDITOR_ID, isResourceDiffEditorInput } from '../editor.js';
5
5
  import { BaseTextEditorModel } from './textEditorModel.js';
@@ -41,7 +41,7 @@ let DiffEditorInput = class DiffEditorInput extends SideBySideEditorInput {
41
41
  else {
42
42
  const originalName = this.original.getName();
43
43
  const modifiedName = this.modified.getName();
44
- name = ( localize('sideBySideLabels', "{0} ↔ {1}", originalName, modifiedName));
44
+ name = localizeWithPath('vs/workbench/common/editor/diffEditorInput', 'sideBySideLabels', "{0} ↔ {1}", originalName, modifiedName);
45
45
  forceDescription = originalName === modifiedName;
46
46
  }
47
47
  let shortDescription;
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
2
2
  import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
3
- import { localize } from 'monaco-editor/esm/vs/nls.js';
3
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
4
4
  import { isResourceDiffEditorInput, isResourceSideBySideEditorInput, isResourceMergeEditorInput, isEditorInput, findViewStateForEditor, isResourceEditorInput, isDiffEditorInput } from '../editor.js';
5
5
  import { EditorInput } from './editorInput.js';
6
6
  import { IEditorService } from '../../services/editor/common/editorService.js';
@@ -59,12 +59,7 @@ let SideBySideEditorInput = class SideBySideEditorInput extends EditorInput {
59
59
  if (this.hasIdenticalSides) {
60
60
  return this.primary.getName();
61
61
  }
62
- return ( localize(
63
- 'sideBySideLabels',
64
- "{0} - {1}",
65
- this.secondary.getName(),
66
- this.primary.getName()
67
- ));
62
+ return localizeWithPath('vs/workbench/common/editor/sideBySideEditorInput', 'sideBySideLabels', "{0} - {1}", this.secondary.getName(), this.primary.getName());
68
63
  }
69
64
  getPreferredName() {
70
65
  return this.preferredName;
@@ -7,7 +7,7 @@ import { PLAINTEXT_LANGUAGE_ID } from 'monaco-editor/esm/vs/editor/common/langua
7
7
  import { LanguageDetectionLanguageEventSource, ILanguageDetectionService } from '../../services/languageDetection/common/languageDetectionWorkerService.js';
8
8
  import { ThrottledDelayer } from 'monaco-editor/esm/vs/base/common/async.js';
9
9
  import { IAccessibilityService } from 'monaco-editor/esm/vs/platform/accessibility/common/accessibility.js';
10
- import { localize } from 'monaco-editor/esm/vs/nls.js';
10
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
11
11
  var BaseTextEditorModel_1;
12
12
  let BaseTextEditorModel = class BaseTextEditorModel extends EditorModel {
13
13
  static { BaseTextEditorModel_1 = this; }
@@ -87,11 +87,7 @@ let BaseTextEditorModel = class BaseTextEditorModel extends EditorModel {
87
87
  if (lang && lang !== prevLang && !this.isDisposed()) {
88
88
  this.setLanguageIdInternal(lang, LanguageDetectionLanguageEventSource);
89
89
  const languageName = this.languageService.getLanguageName(lang);
90
- this.accessibilityService.alert(( localize(
91
- 'languageAutoDetected',
92
- "Language {0} was automatically detected and set as the language mode.",
93
- languageName ?? lang
94
- )));
90
+ this.accessibilityService.alert(localizeWithPath('vs/workbench/common/editor/textEditorModel', 'languageAutoDetected', "Language {0} was automatically detected and set as the language mode.", languageName ?? lang));
95
91
  }
96
92
  }
97
93
  createTextEditorModel(value, resource, preferredLanguageId) {
@@ -1,4 +1,4 @@
1
- import { localize } from 'monaco-editor/esm/vs/nls.js';
1
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
2
2
  import { assertIsDefined } from 'monaco-editor/esm/vs/base/common/types.js';
3
3
  import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
4
4
  import { toDisposable, Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
@@ -15,8 +15,8 @@ const EditorExtensions = {
15
15
  };
16
16
  const DEFAULT_EDITOR_ASSOCIATION = {
17
17
  id: 'default',
18
- displayName: ( localize('promptOpenWith.defaultEditor.displayName', "Text Editor")),
19
- providerDisplayName: ( localize('builtinProviderDisplayName', "Built-in"))
18
+ displayName: localizeWithPath('vs/workbench/common/editor', 'promptOpenWith.defaultEditor.displayName', "Text Editor"),
19
+ providerDisplayName: localizeWithPath('vs/workbench/common/editor', 'builtinProviderDisplayName', "Built-in")
20
20
  };
21
21
  const SIDE_BY_SIDE_EDITOR_ID = 'workbench.editor.sidebysideEditor';
22
22
  const TEXT_DIFF_EDITOR_ID = 'workbench.editors.textDiffEditor';
@@ -111,7 +111,7 @@ function isDiffEditorInput(editor) {
111
111
  function createTooLargeFileError(group, input, options, message, preferencesService) {
112
112
  return createEditorOpenError(message, [
113
113
  toAction({
114
- id: 'workbench.action.openLargeFile', label: ( localize('openLargeFile', "Open Anyway")), run: () => {
114
+ id: 'workbench.action.openLargeFile', label: localizeWithPath('vs/workbench/common/editor', 'openLargeFile', "Open Anyway"), run: () => {
115
115
  const fileEditorOptions = {
116
116
  ...options,
117
117
  limits: {
@@ -122,7 +122,7 @@ function createTooLargeFileError(group, input, options, message, preferencesServ
122
122
  }
123
123
  }),
124
124
  toAction({
125
- id: 'workbench.action.configureEditorLargeFileConfirmation', label: ( localize('configureEditorLargeFileConfirmation', "Configure Limit")), run: () => {
125
+ id: 'workbench.action.configureEditorLargeFileConfirmation', label: localizeWithPath('vs/workbench/common/editor', 'configureEditorLargeFileConfirmation', "Configure Limit"), run: () => {
126
126
  return preferencesService.openUserSettings({ query: 'workbench.editorLargeFileConfirmation' });
127
127
  }
128
128
  }),