@codingame/monaco-vscode-api 1.83.4 → 1.83.6

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 (212) hide show
  1. package/lifecycle.js +3 -1
  2. package/missing-services.js +32 -28
  3. package/monaco-editor-treemending.patch +786 -760
  4. package/monaco.js +1 -0
  5. package/package.json +1 -1
  6. package/service-override/extensions.js +5 -5
  7. package/service-override/files.js +37 -13
  8. package/service-override/keybindings.js +10 -4
  9. package/service-override/layout.js +1 -3
  10. package/services.d.ts +13 -2
  11. package/services.js +35 -5
  12. package/vscode/src/vs/base/browser/broadcast.js +52 -0
  13. package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
  14. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +6 -1
  15. package/vscode/src/vs/base/common/date.js +244 -54
  16. package/vscode/src/vs/base/common/jsonErrorMessages.js +45 -9
  17. package/vscode/src/vs/editor/common/services/textResourceConfiguration.d.ts +65 -0
  18. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +33 -5
  19. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +165 -32
  20. package/vscode/src/vs/platform/dialogs/common/dialogs.js +30 -9
  21. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +0 -3
  22. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +6 -1
  23. package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +404 -0
  24. package/vscode/src/vs/platform/files/common/fileService.js +13 -2
  25. package/vscode/src/vs/platform/files/common/files.js +25 -5
  26. package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +15 -3
  27. package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +38 -7
  28. package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +7 -1
  29. package/vscode/src/vs/platform/request/common/request.js +1 -1
  30. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +210 -42
  31. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +73 -13
  32. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +5 -1
  33. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +11 -2
  34. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +5 -3
  35. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +70 -35
  36. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +108 -20
  37. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +17 -4
  38. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +5 -3
  39. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +5 -5
  40. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +5 -3
  41. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +7 -1
  42. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +14 -2
  43. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +12 -14
  44. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +6 -1
  45. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +32 -5
  46. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +0 -60
  47. package/vscode/src/vs/workbench/api/common/extHostChat.js +11 -2
  48. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +6 -1
  49. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +12 -2
  50. package/vscode/src/vs/workbench/api/common/extHostLogService.js +9 -1
  51. package/vscode/src/vs/workbench/api/common/extHostProgress.js +6 -1
  52. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +11 -2
  53. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +6 -1
  54. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +6 -1
  55. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +10 -2
  56. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +7 -1
  57. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +49 -9
  58. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +397 -274
  59. package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +30 -6
  60. package/vscode/src/vs/workbench/browser/actions/windowActions.js +85 -31
  61. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +56 -102
  62. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +5 -1
  63. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  64. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +55 -11
  65. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +63 -11
  66. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +7 -1
  67. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +15 -3
  68. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +205 -41
  69. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +617 -139
  70. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +578 -114
  71. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +96 -20
  72. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +30 -6
  73. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +46 -9
  74. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +30 -5
  75. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +309 -59
  76. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +5 -1
  77. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +5 -1
  78. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -3
  79. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
  80. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +35 -7
  81. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +185 -33
  82. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +90 -57
  83. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +5 -1
  84. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +16 -3
  85. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +26 -6
  86. package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +35 -6
  87. package/vscode/src/vs/workbench/browser/quickaccess.js +6 -6
  88. package/vscode/src/vs/workbench/browser/workbench.contribution.js +918 -185
  89. package/vscode/src/vs/workbench/common/configuration.js +25 -11
  90. package/vscode/src/vs/workbench/common/contextkeys.js +244 -228
  91. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +7 -1
  92. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +44 -0
  93. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +7 -1
  94. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +6 -1
  95. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +23 -0
  96. package/vscode/src/vs/workbench/common/editor.d.ts +26 -1
  97. package/vscode/src/vs/workbench/common/editor.js +26 -5
  98. package/vscode/src/vs/workbench/common/theme.js +676 -136
  99. package/vscode/src/vs/workbench/common/views.js +8 -3
  100. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +71 -14
  101. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +21 -2
  102. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +133 -21
  103. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +36 -8
  104. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +96 -17
  105. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -2
  106. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +22 -4
  107. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +22 -4
  108. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +41 -8
  109. package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +25 -5
  110. package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +30 -6
  111. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +34 -6
  112. package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +44 -0
  113. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +10 -2
  114. package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +320 -63
  115. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +12 -4
  116. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +15 -3
  117. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +30 -6
  118. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +25 -4
  119. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +10 -2
  120. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +20 -4
  121. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +10 -2
  122. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +10 -2
  123. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +25 -9
  124. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +30 -6
  125. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +25 -5
  126. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +16 -3
  127. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +8 -4
  128. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +23 -3
  129. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +15 -9
  130. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +18 -3
  131. package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +142 -26
  132. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +33 -5
  133. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +45 -7
  134. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +63 -10
  135. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +45 -9
  136. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +16 -8
  137. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +41 -21
  138. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +5 -1
  139. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +5 -1
  140. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +60 -12
  141. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +275 -55
  142. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +7 -1
  143. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +255 -94
  144. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +120 -24
  145. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +22 -4
  146. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +21 -4
  147. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +39 -51
  148. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +394 -75
  149. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +17 -6
  150. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +190 -32
  151. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -1
  152. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +21 -4
  153. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +26 -5
  154. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +81 -14
  155. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +26 -5
  156. package/vscode/src/vs/workbench/contrib/files/common/files.js +70 -26
  157. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +11 -3
  158. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +5 -1
  159. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +20 -4
  160. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +75 -111
  161. package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +5 -1
  162. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +6 -1
  163. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +151 -29
  164. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +10 -2
  165. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +0 -42
  166. package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +115 -23
  167. package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +17 -3
  168. package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +49 -9
  169. package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +66 -13
  170. package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +52 -10
  171. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +10 -2
  172. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +110 -26
  173. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +21 -3
  174. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +15 -3
  175. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +56 -9
  176. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +25 -5
  177. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +16 -26
  178. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +7 -8
  179. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +20 -4
  180. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +35 -7
  181. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +106 -21
  182. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +81 -21
  183. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -1
  184. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +6 -2
  185. package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +592 -112
  186. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +5 -1
  187. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +6 -32
  188. package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +5 -1
  189. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +5 -1
  190. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +5 -1
  191. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +15 -3
  192. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +58 -10
  193. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +5 -1
  194. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +392 -80
  195. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +28 -5
  196. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +10 -2
  197. package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +129 -24
  198. package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +10 -2
  199. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +20 -10
  200. package/vscode/src/vs/workbench/services/language/common/languageService.js +122 -22
  201. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +28 -9
  202. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +6 -1
  203. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +48 -9
  204. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -1
  205. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +7 -1
  206. package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +6 -1
  207. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +81 -16
  208. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +1 -50
  209. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +126 -25
  210. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -5
  211. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +6 -14
  212. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +6 -1
@@ -9,26 +9,46 @@ const colorIdPattern = '^\\w+[.\\w+]*$';
9
9
  const configurationExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
10
10
  extensionPoint: 'colors',
11
11
  jsonSchema: {
12
- description: nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'contributes.color', 'Contributes extension defined themable colors'),
12
+ description: ( nls.localizeWithPath(
13
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
14
+ 'contributes.color',
15
+ 'Contributes extension defined themable colors'
16
+ )),
13
17
  type: 'array',
14
18
  items: {
15
19
  type: 'object',
16
20
  properties: {
17
21
  id: {
18
22
  type: 'string',
19
- description: nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'contributes.color.id', 'The identifier of the themable color'),
23
+ description: ( nls.localizeWithPath(
24
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
25
+ 'contributes.color.id',
26
+ 'The identifier of the themable color'
27
+ )),
20
28
  pattern: colorIdPattern,
21
- patternErrorMessage: nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'contributes.color.id.format', 'Identifiers must only contain letters, digits and dots and can not start with a dot'),
29
+ patternErrorMessage: ( nls.localizeWithPath(
30
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
31
+ 'contributes.color.id.format',
32
+ 'Identifiers must only contain letters, digits and dots and can not start with a dot'
33
+ )),
22
34
  },
23
35
  description: {
24
36
  type: 'string',
25
- description: nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'contributes.color.description', 'The description of the themable color'),
37
+ description: ( nls.localizeWithPath(
38
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
39
+ 'contributes.color.description',
40
+ 'The description of the themable color'
41
+ )),
26
42
  },
27
43
  defaults: {
28
44
  type: 'object',
29
45
  properties: {
30
46
  light: {
31
- description: nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'contributes.defaults.light', 'The default color for light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.'),
47
+ description: ( nls.localizeWithPath(
48
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
49
+ 'contributes.defaults.light',
50
+ 'The default color for light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.'
51
+ )),
32
52
  type: 'string',
33
53
  anyOf: [
34
54
  colorReferenceSchema,
@@ -36,7 +56,11 @@ const configurationExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
36
56
  ]
37
57
  },
38
58
  dark: {
39
- description: nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'contributes.defaults.dark', 'The default color for dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.'),
59
+ description: ( nls.localizeWithPath(
60
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
61
+ 'contributes.defaults.dark',
62
+ 'The default color for dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.'
63
+ )),
40
64
  type: 'string',
41
65
  anyOf: [
42
66
  colorReferenceSchema,
@@ -44,7 +68,11 @@ const configurationExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
44
68
  ]
45
69
  },
46
70
  highContrast: {
47
- description: nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'contributes.defaults.highContrast', 'The default color for high contrast dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `dark` color is used as default for high contrast dark themes.'),
71
+ description: ( nls.localizeWithPath(
72
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
73
+ 'contributes.defaults.highContrast',
74
+ 'The default color for high contrast dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `dark` color is used as default for high contrast dark themes.'
75
+ )),
48
76
  type: 'string',
49
77
  anyOf: [
50
78
  colorReferenceSchema,
@@ -52,7 +80,11 @@ const configurationExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
52
80
  ]
53
81
  },
54
82
  highContrastLight: {
55
- description: nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'contributes.defaults.highContrastLight', 'The default color for high contrast light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `light` color is used as default for high contrast light themes.'),
83
+ description: ( nls.localizeWithPath(
84
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
85
+ 'contributes.defaults.highContrastLight',
86
+ 'The default color for high contrast light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `light` color is used as default for high contrast light themes.'
87
+ )),
56
88
  type: 'string',
57
89
  anyOf: [
58
90
  colorReferenceSchema,
@@ -73,7 +105,11 @@ class ColorExtensionPoint {
73
105
  const extensionValue = extension.value;
74
106
  const collector = extension.collector;
75
107
  if (!extensionValue || !Array.isArray(extensionValue)) {
76
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'invalid.colorConfiguration', "'configuration.colors' must be a array"));
108
+ collector.error(( nls.localizeWithPath(
109
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
110
+ 'invalid.colorConfiguration',
111
+ "'configuration.colors' must be a array"
112
+ )));
77
113
  return;
78
114
  }
79
115
  const parseColorValue = (s, name) => {
@@ -85,33 +121,62 @@ class ColorExtensionPoint {
85
121
  return s;
86
122
  }
87
123
  }
88
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'invalid.default.colorType', "{0} must be either a color value in hex (#RRGGBB[AA] or #RGB[A]) or the identifier of a themable color which provides the default.", name));
124
+ collector.error(( nls.localizeWithPath(
125
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
126
+ 'invalid.default.colorType',
127
+ "{0} must be either a color value in hex (#RRGGBB[AA] or #RGB[A]) or the identifier of a themable color which provides the default.",
128
+ name
129
+ )));
89
130
  return Color.red;
90
131
  };
91
132
  for (const colorContribution of extensionValue) {
92
133
  if (typeof colorContribution.id !== 'string' || colorContribution.id.length === 0) {
93
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'invalid.id', "'configuration.colors.id' must be defined and can not be empty"));
134
+ collector.error(( nls.localizeWithPath(
135
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
136
+ 'invalid.id',
137
+ "'configuration.colors.id' must be defined and can not be empty"
138
+ )));
94
139
  return;
95
140
  }
96
141
  if (!colorContribution.id.match(colorIdPattern)) {
97
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'invalid.id.format', "'configuration.colors.id' must only contain letters, digits and dots and can not start with a dot"));
142
+ collector.error(( nls.localizeWithPath(
143
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
144
+ 'invalid.id.format',
145
+ "'configuration.colors.id' must only contain letters, digits and dots and can not start with a dot"
146
+ )));
98
147
  return;
99
148
  }
100
149
  if (typeof colorContribution.description !== 'string' || colorContribution.id.length === 0) {
101
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'invalid.description', "'configuration.colors.description' must be defined and can not be empty"));
150
+ collector.error(( nls.localizeWithPath(
151
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
152
+ 'invalid.description',
153
+ "'configuration.colors.description' must be defined and can not be empty"
154
+ )));
102
155
  return;
103
156
  }
104
157
  const defaults = colorContribution.defaults;
105
158
  if (!defaults || typeof defaults !== 'object' || typeof defaults.light !== 'string' || typeof defaults.dark !== 'string') {
106
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'invalid.defaults', "'configuration.colors.defaults' must be defined and must contain 'light' and 'dark'"));
159
+ collector.error(( nls.localizeWithPath(
160
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
161
+ 'invalid.defaults',
162
+ "'configuration.colors.defaults' must be defined and must contain 'light' and 'dark'"
163
+ )));
107
164
  return;
108
165
  }
109
166
  if (defaults.highContrast && typeof defaults.highContrast !== 'string') {
110
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'invalid.defaults.highContrast', "If defined, 'configuration.colors.defaults.highContrast' must be a string."));
167
+ collector.error(( nls.localizeWithPath(
168
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
169
+ 'invalid.defaults.highContrast',
170
+ "If defined, 'configuration.colors.defaults.highContrast' must be a string."
171
+ )));
111
172
  return;
112
173
  }
113
174
  if (defaults.highContrastLight && typeof defaults.highContrastLight !== 'string') {
114
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/colorExtensionPoint', 'invalid.defaults.highContrastLight', "If defined, 'configuration.colors.defaults.highContrastLight' must be a string."));
175
+ collector.error(( nls.localizeWithPath(
176
+ 'vs/workbench/services/themes/common/colorExtensionPoint',
177
+ 'invalid.defaults.highContrastLight',
178
+ "If defined, 'configuration.colors.defaults.highContrastLight' must be a string."
179
+ )));
115
180
  return;
116
181
  }
117
182
  colorRegistry.registerColor(colorContribution.id, {
@@ -1,53 +1,4 @@
1
- import * as nls from 'monaco-editor/esm/vs/nls.js';
2
- import { ExtensionsRegistry } from '../../extensions/common/extensionsRegistry.js';
3
1
  import { Extensions } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
4
2
  import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
5
- import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
6
3
  const iconRegistry = ( Registry.as(Extensions.IconContribution));
7
- const iconReferenceSchema = iconRegistry.getIconReferenceSchema();
8
- const iconIdPattern = `^${ThemeIcon.iconNameSegment}(-${ThemeIcon.iconNameSegment})+$`;
9
- ( ExtensionsRegistry.registerExtensionPoint({
10
- extensionPoint: 'icons',
11
- jsonSchema: {
12
- description: nls.localizeWithPath('vs/workbench/services/themes/common/iconExtensionPoint', 'contributes.icons', 'Contributes extension defined themable icons'),
13
- type: 'object',
14
- propertyNames: {
15
- pattern: iconIdPattern,
16
- description: nls.localizeWithPath('vs/workbench/services/themes/common/iconExtensionPoint', 'contributes.icon.id', 'The identifier of the themable icon'),
17
- patternErrorMessage: nls.localizeWithPath('vs/workbench/services/themes/common/iconExtensionPoint', 'contributes.icon.id.format', 'Identifiers can only contain letters, digits and minuses and need to consist of at least two segments in the form `component-iconname`.'),
18
- },
19
- additionalProperties: {
20
- type: 'object',
21
- properties: {
22
- description: {
23
- type: 'string',
24
- description: nls.localizeWithPath('vs/workbench/services/themes/common/iconExtensionPoint', 'contributes.icon.description', 'The description of the themable icon'),
25
- },
26
- default: {
27
- anyOf: [
28
- iconReferenceSchema,
29
- {
30
- type: 'object',
31
- properties: {
32
- fontPath: {
33
- description: nls.localizeWithPath('vs/workbench/services/themes/common/iconExtensionPoint', 'contributes.icon.default.fontPath', 'The path of the icon font that defines the icon.'),
34
- type: 'string'
35
- },
36
- fontCharacter: {
37
- description: nls.localizeWithPath('vs/workbench/services/themes/common/iconExtensionPoint', 'contributes.icon.default.fontCharacter', 'The character for the icon in the icon font.'),
38
- type: 'string'
39
- }
40
- },
41
- required: ['fontPath', 'fontCharacter'],
42
- defaultSnippets: [{ body: { fontPath: '${1:myiconfont.woff}', fontCharacter: '${2:\\\\E001}' } }]
43
- }
44
- ],
45
- description: nls.localizeWithPath('vs/workbench/services/themes/common/iconExtensionPoint', 'contributes.icon.default', 'The default of the icon. Either a reference to an extisting ThemeIcon or an icon in an icon font.'),
46
- }
47
- },
48
- required: ['description', 'default'],
49
- defaultSnippets: [{ body: { description: '${1:my icon}', default: { fontPath: '${2:myiconfont.woff}', fontCharacter: '${3:\\\\E001}' } } }]
50
- },
51
- defaultSnippets: [{ body: { '${1:my-icon-id}': { description: '${2:my icon}', default: { fontPath: '${3:myiconfont.woff}', fontCharacter: '${4:\\\\E001}' } } } }]
52
- }
53
- }));
4
+ iconRegistry.getIconReferenceSchema();
@@ -1,30 +1,54 @@
1
1
  import * as nls from 'monaco-editor/esm/vs/nls.js';
2
2
  import { ExtensionsRegistry } from '../../extensions/common/extensionsRegistry.js';
3
- import { typeAndModifierIdPattern, getTokenClassificationRegistry } from '../../../../platform/theme/common/tokenClassificationRegistry.js';
3
+ import { getTokenClassificationRegistry, typeAndModifierIdPattern } from '../../../../platform/theme/common/tokenClassificationRegistry.js';
4
4
  const tokenClassificationRegistry = getTokenClassificationRegistry();
5
5
  const tokenTypeExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
6
6
  extensionPoint: 'semanticTokenTypes',
7
7
  jsonSchema: {
8
- description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenTypes', 'Contributes semantic token types.'),
8
+ description: ( nls.localizeWithPath(
9
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
10
+ 'contributes.semanticTokenTypes',
11
+ 'Contributes semantic token types.'
12
+ )),
9
13
  type: 'array',
10
14
  items: {
11
15
  type: 'object',
12
16
  properties: {
13
17
  id: {
14
18
  type: 'string',
15
- description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenTypes.id', 'The identifier of the semantic token type'),
19
+ description: ( nls.localizeWithPath(
20
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
21
+ 'contributes.semanticTokenTypes.id',
22
+ 'The identifier of the semantic token type'
23
+ )),
16
24
  pattern: typeAndModifierIdPattern,
17
- patternErrorMessage: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenTypes.id.format', 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*'),
25
+ patternErrorMessage: ( nls.localizeWithPath(
26
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
27
+ 'contributes.semanticTokenTypes.id.format',
28
+ 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*'
29
+ )),
18
30
  },
19
31
  superType: {
20
32
  type: 'string',
21
- description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenTypes.superType', 'The super type of the semantic token type'),
33
+ description: ( nls.localizeWithPath(
34
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
35
+ 'contributes.semanticTokenTypes.superType',
36
+ 'The super type of the semantic token type'
37
+ )),
22
38
  pattern: typeAndModifierIdPattern,
23
- patternErrorMessage: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenTypes.superType.format', 'Super types should be in the form letterOrDigit[_-letterOrDigit]*'),
39
+ patternErrorMessage: ( nls.localizeWithPath(
40
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
41
+ 'contributes.semanticTokenTypes.superType.format',
42
+ 'Super types should be in the form letterOrDigit[_-letterOrDigit]*'
43
+ )),
24
44
  },
25
45
  description: {
26
46
  type: 'string',
27
- description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.color.description', 'The description of the semantic token type'),
47
+ description: ( nls.localizeWithPath(
48
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
49
+ 'contributes.color.description',
50
+ 'The description of the semantic token type'
51
+ )),
28
52
  }
29
53
  }
30
54
  }
@@ -33,19 +57,35 @@ const tokenTypeExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
33
57
  const tokenModifierExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
34
58
  extensionPoint: 'semanticTokenModifiers',
35
59
  jsonSchema: {
36
- description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenModifiers', 'Contributes semantic token modifiers.'),
60
+ description: ( nls.localizeWithPath(
61
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
62
+ 'contributes.semanticTokenModifiers',
63
+ 'Contributes semantic token modifiers.'
64
+ )),
37
65
  type: 'array',
38
66
  items: {
39
67
  type: 'object',
40
68
  properties: {
41
69
  id: {
42
70
  type: 'string',
43
- description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenModifiers.id', 'The identifier of the semantic token modifier'),
71
+ description: ( nls.localizeWithPath(
72
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
73
+ 'contributes.semanticTokenModifiers.id',
74
+ 'The identifier of the semantic token modifier'
75
+ )),
44
76
  pattern: typeAndModifierIdPattern,
45
- patternErrorMessage: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenModifiers.id.format', 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*')
77
+ patternErrorMessage: ( nls.localizeWithPath(
78
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
79
+ 'contributes.semanticTokenModifiers.id.format',
80
+ 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*'
81
+ ))
46
82
  },
47
83
  description: {
48
- description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenModifiers.description', 'The description of the semantic token modifier')
84
+ description: ( nls.localizeWithPath(
85
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
86
+ 'contributes.semanticTokenModifiers.description',
87
+ 'The description of the semantic token modifier'
88
+ ))
49
89
  }
50
90
  }
51
91
  }
@@ -54,17 +94,29 @@ const tokenModifierExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
54
94
  const tokenStyleDefaultsExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
55
95
  extensionPoint: 'semanticTokenScopes',
56
96
  jsonSchema: {
57
- description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenScopes', 'Contributes semantic token scope maps.'),
97
+ description: ( nls.localizeWithPath(
98
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
99
+ 'contributes.semanticTokenScopes',
100
+ 'Contributes semantic token scope maps.'
101
+ )),
58
102
  type: 'array',
59
103
  items: {
60
104
  type: 'object',
61
105
  properties: {
62
106
  language: {
63
- description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenScopes.languages', 'Lists the languge for which the defaults are.'),
107
+ description: ( nls.localizeWithPath(
108
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
109
+ 'contributes.semanticTokenScopes.languages',
110
+ 'Lists the languge for which the defaults are.'
111
+ )),
64
112
  type: 'string'
65
113
  },
66
114
  scopes: {
67
- description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenScopes.scopes', 'Maps a semantic token (described by semantic token selector) to one or more textMate scopes used to represent that token.'),
115
+ description: ( nls.localizeWithPath(
116
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
117
+ 'contributes.semanticTokenScopes.scopes',
118
+ 'Maps a semantic token (described by semantic token selector) to one or more textMate scopes used to represent that token.'
119
+ )),
68
120
  type: 'object',
69
121
  additionalProperties: {
70
122
  type: 'array',
@@ -81,20 +133,40 @@ class TokenClassificationExtensionPoints {
81
133
  constructor() {
82
134
  function validateTypeOrModifier(contribution, extensionPoint, collector) {
83
135
  if (typeof contribution.id !== 'string' || contribution.id.length === 0) {
84
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.id', "'configuration.{0}.id' must be defined and can not be empty", extensionPoint));
136
+ collector.error(( nls.localizeWithPath(
137
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
138
+ 'invalid.id',
139
+ "'configuration.{0}.id' must be defined and can not be empty",
140
+ extensionPoint
141
+ )));
85
142
  return false;
86
143
  }
87
144
  if (!contribution.id.match(typeAndModifierIdPattern)) {
88
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.id.format', "'configuration.{0}.id' must follow the pattern letterOrDigit[-_letterOrDigit]*", extensionPoint));
145
+ collector.error(( nls.localizeWithPath(
146
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
147
+ 'invalid.id.format',
148
+ "'configuration.{0}.id' must follow the pattern letterOrDigit[-_letterOrDigit]*",
149
+ extensionPoint
150
+ )));
89
151
  return false;
90
152
  }
91
153
  const superType = contribution.superType;
92
154
  if (superType && !superType.match(typeAndModifierIdPattern)) {
93
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.superType.format', "'configuration.{0}.superType' must follow the pattern letterOrDigit[-_letterOrDigit]*", extensionPoint));
155
+ collector.error(( nls.localizeWithPath(
156
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
157
+ 'invalid.superType.format',
158
+ "'configuration.{0}.superType' must follow the pattern letterOrDigit[-_letterOrDigit]*",
159
+ extensionPoint
160
+ )));
94
161
  return false;
95
162
  }
96
163
  if (typeof contribution.description !== 'string' || contribution.id.length === 0) {
97
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.description', "'configuration.{0}.description' must be defined and can not be empty", extensionPoint));
164
+ collector.error(( nls.localizeWithPath(
165
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
166
+ 'invalid.description',
167
+ "'configuration.{0}.description' must be defined and can not be empty",
168
+ extensionPoint
169
+ )));
98
170
  return false;
99
171
  }
100
172
  return true;
@@ -104,7 +176,11 @@ class TokenClassificationExtensionPoints {
104
176
  const extensionValue = extension.value;
105
177
  const collector = extension.collector;
106
178
  if (!extensionValue || !Array.isArray(extensionValue)) {
107
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenTypeConfiguration', "'configuration.semanticTokenType' must be an array"));
179
+ collector.error(( nls.localizeWithPath(
180
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
181
+ 'invalid.semanticTokenTypeConfiguration',
182
+ "'configuration.semanticTokenType' must be an array"
183
+ )));
108
184
  return;
109
185
  }
110
186
  for (const contribution of extensionValue) {
@@ -125,7 +201,11 @@ class TokenClassificationExtensionPoints {
125
201
  const extensionValue = extension.value;
126
202
  const collector = extension.collector;
127
203
  if (!extensionValue || !Array.isArray(extensionValue)) {
128
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenModifierConfiguration', "'configuration.semanticTokenModifier' must be an array"));
204
+ collector.error(( nls.localizeWithPath(
205
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
206
+ 'invalid.semanticTokenModifierConfiguration',
207
+ "'configuration.semanticTokenModifier' must be an array"
208
+ )));
129
209
  return;
130
210
  }
131
211
  for (const contribution of extensionValue) {
@@ -146,22 +226,38 @@ class TokenClassificationExtensionPoints {
146
226
  const extensionValue = extension.value;
147
227
  const collector = extension.collector;
148
228
  if (!extensionValue || !Array.isArray(extensionValue)) {
149
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenScopes.configuration', "'configuration.semanticTokenScopes' must be an array"));
229
+ collector.error(( nls.localizeWithPath(
230
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
231
+ 'invalid.semanticTokenScopes.configuration',
232
+ "'configuration.semanticTokenScopes' must be an array"
233
+ )));
150
234
  return;
151
235
  }
152
236
  for (const contribution of extensionValue) {
153
237
  if (contribution.language && typeof contribution.language !== 'string') {
154
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenScopes.language', "'configuration.semanticTokenScopes.language' must be a string"));
238
+ collector.error(( nls.localizeWithPath(
239
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
240
+ 'invalid.semanticTokenScopes.language',
241
+ "'configuration.semanticTokenScopes.language' must be a string"
242
+ )));
155
243
  continue;
156
244
  }
157
245
  if (!contribution.scopes || typeof contribution.scopes !== 'object') {
158
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenScopes.scopes', "'configuration.semanticTokenScopes.scopes' must be defined as an object"));
246
+ collector.error(( nls.localizeWithPath(
247
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
248
+ 'invalid.semanticTokenScopes.scopes',
249
+ "'configuration.semanticTokenScopes.scopes' must be defined as an object"
250
+ )));
159
251
  continue;
160
252
  }
161
253
  for (const selectorString in contribution.scopes) {
162
254
  const tmScopes = contribution.scopes[selectorString];
163
255
  if (!Array.isArray(tmScopes) || ( tmScopes.some(l => typeof l !== 'string'))) {
164
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenScopes.scopes.value', "'configuration.semanticTokenScopes.scopes' values must be an array of strings"));
256
+ collector.error(( nls.localizeWithPath(
257
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
258
+ 'invalid.semanticTokenScopes.scopes.value',
259
+ "'configuration.semanticTokenScopes.scopes' values must be an array of strings"
260
+ )));
165
261
  continue;
166
262
  }
167
263
  try {
@@ -169,7 +265,12 @@ class TokenClassificationExtensionPoints {
169
265
  tokenClassificationRegistry.registerTokenStyleDefault(selector, { scopesToProbe: ( tmScopes.map(s => s.split(' '))) });
170
266
  }
171
267
  catch (e) {
172
- collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenScopes.scopes.selector', "configuration.semanticTokenScopes.scopes': Problems parsing selector {0}.", selectorString));
268
+ collector.error(( nls.localizeWithPath(
269
+ 'vs/workbench/services/themes/common/tokenClassificationExtensionPoint',
270
+ 'invalid.semanticTokenScopes.scopes.selector',
271
+ "configuration.semanticTokenScopes.scopes': Problems parsing selector {0}.",
272
+ selectorString
273
+ )));
173
274
  }
174
275
  }
175
276
  }
@@ -5,9 +5,10 @@ import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconReg
5
5
  import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
6
6
  const IUserDataProfileService = ( createDecorator('IUserDataProfileService'));
7
7
  const IUserDataProfileImportExportService = ( createDecorator('IUserDataProfileImportExportService'));
8
- const defaultUserDataProfileIcon = registerIcon('defaultProfile-icon', Codicon.settings, localizeWithPath('vs/workbench/services/userDataProfile/common/userDataProfile', 'defaultProfileIcon', 'Icon for Default Profile.'));
9
- ({ value: localizeWithPath('vs/workbench/services/userDataProfile/common/userDataProfile', 'profiles', "Profiles"), original: 'Profiles' });
10
- const PROFILE_EXTENSION = 'code-profile';
11
- [{ name: localizeWithPath('vs/workbench/services/userDataProfile/common/userDataProfile', 'profile', "Profile"), extensions: [PROFILE_EXTENSION] }];
8
+ const defaultUserDataProfileIcon = registerIcon('defaultProfile-icon', Codicon.settings, ( localizeWithPath(
9
+ 'vs/workbench/services/userDataProfile/common/userDataProfile',
10
+ 'defaultProfileIcon',
11
+ 'Icon for Default Profile.'
12
+ )));
12
13
  const CURRENT_PROFILE_CONTEXT = ( new RawContextKey('currentProfile', ''));
13
- export { CURRENT_PROFILE_CONTEXT, IUserDataProfileImportExportService, IUserDataProfileService, PROFILE_EXTENSION, defaultUserDataProfileIcon };
14
+ export { CURRENT_PROFILE_CONTEXT, IUserDataProfileImportExportService, IUserDataProfileService, defaultUserDataProfileIcon };
@@ -1,19 +1,11 @@
1
1
  import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
2
- import { ContextKeyExpr, RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
3
2
  import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
4
3
  import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
5
4
  import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
6
- import { Categories } from 'monaco-editor/esm/vs/platform/action/common/actionCommonCategories.js';
7
5
  const IUserDataSyncWorkbenchService = ( createDecorator('IUserDataSyncWorkbenchService'));
8
- localizeWithPath('vs/workbench/services/userDataSync/common/userDataSync', 'sync category', "Settings Sync");
9
- registerIcon('settings-sync-view-icon', Codicon.sync, localizeWithPath('vs/workbench/services/userDataSync/common/userDataSync', 'syncViewIcon', 'View icon of the Settings Sync view.'));
10
- const CONTEXT_SYNC_STATE = ( new RawContextKey('syncStatus', "uninitialized" ));
11
- const CONTEXT_ACCOUNT_STATE = ( new RawContextKey('userDataSyncAccountStatus', "unavailable" ));
12
- ({
13
- id: 'workbench.userDataSync.actions.downloadSyncActivity',
14
- title: { original: 'Download Settings Sync Activity', value: localizeWithPath('vs/workbench/services/userDataSync/common/userDataSync', 'download sync activity title', "Download Settings Sync Activity") },
15
- category: Categories.Developer,
16
- f1: true,
17
- precondition: ( ContextKeyExpr.and(( CONTEXT_ACCOUNT_STATE.isEqualTo("available" )), ( CONTEXT_SYNC_STATE.notEqualsTo("uninitialized" ))))
18
- });
19
- export { CONTEXT_ACCOUNT_STATE, CONTEXT_SYNC_STATE, IUserDataSyncWorkbenchService };
6
+ registerIcon('settings-sync-view-icon', Codicon.sync, ( localizeWithPath(
7
+ 'vs/workbench/services/userDataSync/common/userDataSync',
8
+ 'syncViewIcon',
9
+ 'View icon of the Settings Sync view.'
10
+ )));
11
+ export { IUserDataSyncWorkbenchService };
@@ -21,7 +21,12 @@ let StoredFileWorkingCopySaveParticipant = class StoredFileWorkingCopySavePartic
21
21
  participate(workingCopy, context, token) {
22
22
  const cts = ( new CancellationTokenSource(token));
23
23
  return this.progressService.withProgress({
24
- title: localizeWithPath('vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant', 'saveParticipants', "Saving '{0}'", workingCopy.name),
24
+ title: ( localizeWithPath(
25
+ 'vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant',
26
+ 'saveParticipants',
27
+ "Saving '{0}'",
28
+ workingCopy.name
29
+ )),
25
30
  location: 15 ,
26
31
  cancellable: true,
27
32
  delay: workingCopy.isDirty() ? 3000 : 5000