@codingame/monaco-vscode-api 1.85.0 → 1.85.2

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 (298) hide show
  1. package/README.md +31 -13
  2. package/contributions.js +1 -0
  3. package/missing-services.js +396 -68
  4. package/monaco-editor-treemending.patch +957 -950
  5. package/package.json +8 -7
  6. package/service-override/tools/editor.js +1 -1
  7. package/services.js +10 -6
  8. package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +14 -0
  9. package/vscode/src/vs/base/common/jsonFormatter.js +8 -1
  10. package/vscode/src/vs/platform/actions/browser/buttonbar.js +128 -0
  11. package/vscode/src/vs/platform/extensionManagement/common/extensionEnablementService.js +140 -0
  12. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -1
  13. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1062 -93
  14. package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.js +220 -0
  15. package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +58 -0
  16. package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +102 -0
  17. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +56 -1
  18. package/vscode/src/vs/platform/userDataSync/common/content.js +9 -0
  19. package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +514 -0
  20. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +154 -2
  21. package/vscode/src/vs/platform/userDataSync/common/userDataSyncAccount.js +43 -1
  22. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +177 -0
  23. package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +1 -1
  24. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +1 -1
  25. package/vscode/src/vs/workbench/api/common/extHostWebview.js +2 -2
  26. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +186 -4
  27. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +105 -0
  28. package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +4 -0
  29. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +1614 -0
  30. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +191 -0
  31. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +238 -2
  32. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +75 -0
  33. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +205 -1
  34. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +168 -0
  35. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +35 -0
  36. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +340 -0
  37. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +1195 -0
  38. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +115 -0
  39. package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +81 -0
  40. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.css.js +4 -0
  41. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +62 -0
  42. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +583 -0
  43. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +4 -0
  44. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +290 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +167 -0
  46. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +4 -0
  47. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +6 -1
  48. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +562 -0
  49. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +31 -1
  50. package/vscode/src/vs/workbench/contrib/chat/common/chatProvider.js +24 -1
  51. package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +193 -0
  52. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +22 -1
  53. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +52 -1
  54. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +258 -0
  55. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +37 -0
  56. package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +25 -0
  57. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +4 -0
  58. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +388 -0
  59. package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +7 -7
  60. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +61 -0
  61. package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +49 -0
  62. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +647 -0
  63. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +300 -0
  64. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +60 -0
  65. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +249 -0
  66. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +107 -0
  67. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +333 -0
  68. package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +4 -0
  69. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +99 -0
  70. package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +55 -0
  71. package/vscode/src/vs/workbench/contrib/comments/common/commentsConfiguration.js +2 -0
  72. package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +20 -0
  73. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +855 -0
  74. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +410 -0
  75. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +1591 -0
  76. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +178 -0
  77. package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +4 -0
  78. package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +4 -0
  79. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +1485 -0
  80. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +125 -0
  81. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +29 -0
  82. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +41 -0
  83. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +102 -0
  84. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +73 -2
  85. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +4 -0
  86. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +988 -0
  87. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +431 -0
  88. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +417 -0
  89. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +806 -0
  90. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +915 -0
  91. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +19 -0
  92. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +129 -10
  93. package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +205 -0
  94. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +150 -0
  95. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +480 -0
  96. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +5 -0
  97. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +90 -0
  98. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/editing.js +54 -0
  99. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +108 -0
  100. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +258 -0
  101. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +614 -0
  102. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +307 -0
  103. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +44 -0
  104. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +165 -0
  105. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +78 -0
  106. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +169 -0
  107. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +64 -0
  108. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/cellOutputClipboard.js +49 -0
  109. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +70 -0
  110. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +120 -0
  111. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +416 -0
  112. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +4 -0
  113. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +663 -0
  114. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +593 -0
  115. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +72 -0
  116. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +326 -0
  117. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +539 -0
  118. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +265 -0
  119. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +348 -0
  120. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css.js +4 -0
  121. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +4 -0
  122. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellEditorHint.css.js +4 -0
  123. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css.js +4 -0
  124. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellOutput.css.js +4 -0
  125. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css.js +4 -0
  126. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellTitleToolbar.css.js +4 -0
  127. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookDnd.css.js +4 -0
  128. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css.js +4 -0
  129. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFocusIndicator.css.js +4 -0
  130. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css.js +4 -0
  131. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookKernelActionViewItem.css.js +4 -0
  132. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css.js +4 -0
  133. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css.js +4 -0
  134. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +95 -3
  135. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +437 -0
  136. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +29 -0
  137. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +2730 -0
  138. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +139 -0
  139. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.js +17 -0
  140. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +564 -0
  141. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.js +27 -0
  142. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +119 -0
  143. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +27 -0
  144. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +135 -0
  145. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +178 -0
  146. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.js +35 -0
  147. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +377 -0
  148. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.js +97 -0
  149. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +194 -0
  150. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +71 -0
  151. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.js +20 -0
  152. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.js +85 -0
  153. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +652 -0
  154. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +59 -0
  155. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +303 -0
  156. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +24 -0
  157. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +228 -0
  158. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatActions.js +302 -0
  159. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.js +438 -0
  160. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +45 -0
  161. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +435 -0
  162. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +95 -0
  163. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +107 -0
  164. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.js +29 -0
  165. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +59 -0
  166. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +67 -0
  167. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +430 -0
  168. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +54 -0
  169. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +1131 -0
  170. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +21 -0
  171. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +1591 -0
  172. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +341 -0
  173. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +2155 -0
  174. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.js +65 -0
  175. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +95 -0
  176. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +507 -0
  177. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +85 -0
  178. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +47 -0
  179. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.js +40 -0
  180. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +435 -0
  181. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.js +31 -0
  182. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +257 -0
  183. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +239 -0
  184. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +103 -0
  185. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +211 -0
  186. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +808 -0
  187. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.js +8 -0
  188. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +381 -0
  189. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +527 -0
  190. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +163 -0
  191. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +651 -0
  192. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +173 -0
  193. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +98 -0
  194. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +62 -0
  195. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.js +101 -0
  196. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +346 -0
  197. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +152 -1
  198. package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +39 -0
  199. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +296 -0
  200. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +261 -0
  201. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.js +3 -1
  202. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +2 -1
  203. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKeymapService.js +3 -0
  204. package/vscode/src/vs/workbench/contrib/notebook/common/notebookLoggingService.js +3 -0
  205. package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.js +16 -0
  206. package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +66 -0
  207. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.js +4 -0
  208. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +130 -0
  209. package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +4 -0
  210. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +847 -0
  211. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +89 -0
  212. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +1942 -0
  213. package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +107 -0
  214. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +49 -0
  215. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +387 -0
  216. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +2 -2
  217. package/vscode/src/vs/workbench/contrib/search/common/constants.js +66 -0
  218. package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +11 -0
  219. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +24 -0
  220. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +95 -0
  221. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +6 -6
  222. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +12 -2
  223. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +712 -0
  224. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.js +4 -1
  225. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +130 -0
  226. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +2 -1
  227. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/featuredExtensionService.js +159 -0
  228. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +375 -0
  229. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +563 -0
  230. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +932 -0
  231. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +20 -1
  232. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +205 -0
  233. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +11 -0
  234. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +9 -9
  235. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +1 -1
  236. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +2 -2
  237. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.js +24 -1
  238. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +15 -1
  239. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +41 -0
  240. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +588 -0
  241. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +43 -0
  242. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +2 -2
  243. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +190 -2
  244. package/vscode/src/vs/workbench/services/search/common/search.js +3 -3
  245. package/vscode/src/vs/workbench/services/terminal/common/embedderTerminalService.js +75 -1
  246. package/vscode/src/vs/workbench/services/timer/browser/timerService.js +240 -1
  247. package/vscode/src/vs/workbench/services/userData/browser/userDataInit.js +31 -1
  248. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +25 -1
  249. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +75 -1
  250. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +74 -4
  251. package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +77 -0
  252. package/assets/break.mp3 +0 -0
  253. package/assets/chatRequestSent.mp3 +0 -0
  254. package/assets/chatResponsePending.mp3 +0 -0
  255. package/assets/chatResponseReceived1.mp3 +0 -0
  256. package/assets/chatResponseReceived2.mp3 +0 -0
  257. package/assets/chatResponseReceived3.mp3 +0 -0
  258. package/assets/chatResponseReceived4.mp3 +0 -0
  259. package/assets/clear.mp3 +0 -0
  260. package/assets/defaultIcon.png +0 -0
  261. package/assets/diffLineDeleted.mp3 +0 -0
  262. package/assets/diffLineInserted.mp3 +0 -0
  263. package/assets/diffLineModified.mp3 +0 -0
  264. package/assets/error.mp3 +0 -0
  265. package/assets/fake.html +0 -10
  266. package/assets/foldedAreas.mp3 +0 -0
  267. package/assets/format.mp3 +0 -0
  268. package/assets/index-no-csp.html +0 -1226
  269. package/assets/index.html +0 -1227
  270. package/assets/quickFixes.mp3 +0 -0
  271. package/assets/save.mp3 +0 -0
  272. package/assets/service-worker.js +0 -457
  273. package/assets/taskCompleted.mp3 +0 -0
  274. package/assets/taskFailed.mp3 +0 -0
  275. package/assets/terminalBell.mp3 +0 -0
  276. package/assets/warning.mp3 +0 -0
  277. package/assets/webWorkerExtensionHostIframe.html +0 -123
  278. package/override/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +0 -2
  279. package/override/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +0 -2
  280. package/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +0 -5
  281. package/vscode/src/vs/base/parts/request/browser/request.js +0 -60
  282. package/vscode/src/vs/platform/request/browser/requestService.js +0 -28
  283. package/vscode/src/vs/platform/request/common/requestIpc.js +0 -17
  284. package/vscode/src/vs/platform/url/common/urlService.js +0 -17
  285. package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +0 -120
  286. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +0 -319
  287. package/vscode/src/vs/workbench/services/files/browser/elevatedFileService.js +0 -9
  288. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +0 -408
  289. package/vscode/src/vs/workbench/services/request/browser/requestService.js +0 -48
  290. package/vscode/src/vs/workbench/services/textfile/browser/browserTextFileService.js +0 -56
  291. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +0 -639
  292. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +0 -402
  293. package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +0 -62
  294. package/vscode/src/vs/workbench/services/themes/browser/browserHostColorSchemeService.js +0 -38
  295. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +0 -295
  296. package/vscode/src/vs/workbench/services/url/browser/urlService.js +0 -47
  297. package/vscode/src/vs/workbench/services/views/common/treeViewsService.js +0 -20
  298. package/vscode/src/vs/workbench/services/workspaces/common/canonicalUriService.js +0 -19
@@ -0,0 +1,588 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
3
+ import { coalesce, distinct } from 'monaco-editor/esm/vs/base/common/arrays.js';
4
+ import * as strings from 'monaco-editor/esm/vs/base/common/strings.js';
5
+ import { Language } from 'monaco-editor/esm/vs/base/common/platform.js';
6
+ import { or, matchesPrefix, matchesWords, matchesContiguousSubString, matchesCamelCase } from 'monaco-editor/esm/vs/base/common/filters.js';
7
+ import { UILabelProvider, AriaLabelProvider, UserSettingsLabelProvider } from 'monaco-editor/esm/vs/base/common/keybindingLabels.js';
8
+ import { MenuRegistry } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
9
+ import { EditorModel } from '../../../common/editor/editorModel.js';
10
+ import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
11
+ import { ResolvedKeybindingItem } from 'monaco-editor/esm/vs/platform/keybinding/common/resolvedKeybindingItem.js';
12
+ import { getAllUnboundCommands } from '../../keybinding/browser/unboundCommands.js';
13
+ import { isString, isEmptyObject } from 'monaco-editor/esm/vs/base/common/types.js';
14
+ import { IExtensionService } from '../../extensions/common/extensions.js';
15
+ import { ExtensionIdentifier, ExtensionIdentifierMap } from 'monaco-editor/esm/vs/platform/extensions/common/extensions.js';
16
+ var KeybindingsEditorModel_1;
17
+ const KEYBINDING_ENTRY_TEMPLATE_ID = 'keybinding.entry.template';
18
+ const SOURCE_SYSTEM = ( localizeWithPath(
19
+ 'vs/workbench/services/preferences/browser/keybindingsEditorModel',
20
+ 'default',
21
+ "System"
22
+ ));
23
+ const SOURCE_EXTENSION = ( localizeWithPath(
24
+ 'vs/workbench/services/preferences/browser/keybindingsEditorModel',
25
+ 'extension',
26
+ "Extension"
27
+ ));
28
+ const SOURCE_USER = ( localizeWithPath(
29
+ 'vs/workbench/services/preferences/browser/keybindingsEditorModel',
30
+ 'user',
31
+ "User"
32
+ ));
33
+ const wordFilter = or(matchesPrefix, matchesWords, matchesContiguousSubString);
34
+ const SOURCE_REGEX = /@source:\s*(user|default|system|extension)/i;
35
+ const EXTENSION_REGEX = /@ext:\s*((".+")|([^\s]+))/i;
36
+ let KeybindingsEditorModel = KeybindingsEditorModel_1 = class KeybindingsEditorModel extends EditorModel {
37
+ constructor(os, keybindingsService, extensionService) {
38
+ super();
39
+ this.keybindingsService = keybindingsService;
40
+ this.extensionService = extensionService;
41
+ this._keybindingItems = [];
42
+ this._keybindingItemsSortedByPrecedence = [];
43
+ this.modifierLabels = {
44
+ ui: UILabelProvider.modifierLabels[os],
45
+ aria: AriaLabelProvider.modifierLabels[os],
46
+ user: UserSettingsLabelProvider.modifierLabels[os]
47
+ };
48
+ }
49
+ fetch(searchValue, sortByPrecedence = false) {
50
+ let keybindingItems = sortByPrecedence ? this._keybindingItemsSortedByPrecedence : this._keybindingItems;
51
+ const commandIdMatches = /@command:\s*(.+)/i.exec(searchValue);
52
+ if (commandIdMatches && commandIdMatches[1]) {
53
+ return ( keybindingItems.filter(k => k.command === commandIdMatches[1])
54
+ .map(
55
+ keybindingItem => ({ id: KeybindingsEditorModel_1.getId(keybindingItem), keybindingItem, templateId: KEYBINDING_ENTRY_TEMPLATE_ID })
56
+ ));
57
+ }
58
+ if (SOURCE_REGEX.test(searchValue)) {
59
+ keybindingItems = this.filterBySource(keybindingItems, searchValue);
60
+ searchValue = searchValue.replace(SOURCE_REGEX, '');
61
+ }
62
+ else {
63
+ const extensionMatches = EXTENSION_REGEX.exec(searchValue);
64
+ if (extensionMatches && (extensionMatches[2] || extensionMatches[3])) {
65
+ const extensionId = extensionMatches[2] ? extensionMatches[2].substring(1, extensionMatches[2].length - 1) : extensionMatches[3];
66
+ keybindingItems = this.filterByExtension(keybindingItems, extensionId);
67
+ searchValue = searchValue.replace(EXTENSION_REGEX, '');
68
+ }
69
+ else {
70
+ const keybindingMatches = /@keybinding:\s*((\".+\")|(\S+))/i.exec(searchValue);
71
+ if (keybindingMatches && (keybindingMatches[2] || keybindingMatches[3])) {
72
+ searchValue = keybindingMatches[2] || `"${keybindingMatches[3]}"`;
73
+ }
74
+ }
75
+ }
76
+ searchValue = searchValue.trim();
77
+ if (!searchValue) {
78
+ return ( keybindingItems.map(
79
+ keybindingItem => ({ id: KeybindingsEditorModel_1.getId(keybindingItem), keybindingItem, templateId: KEYBINDING_ENTRY_TEMPLATE_ID })
80
+ ));
81
+ }
82
+ return this.filterByText(keybindingItems, searchValue);
83
+ }
84
+ filterBySource(keybindingItems, searchValue) {
85
+ if (/@source:\s*default/i.test(searchValue) || /@source:\s*system/i.test(searchValue)) {
86
+ return keybindingItems.filter(k => k.source === SOURCE_SYSTEM);
87
+ }
88
+ if (/@source:\s*user/i.test(searchValue)) {
89
+ return keybindingItems.filter(k => k.source === SOURCE_USER);
90
+ }
91
+ if (/@source:\s*extension/i.test(searchValue)) {
92
+ return keybindingItems.filter(k => !isString(k.source) || k.source === SOURCE_EXTENSION);
93
+ }
94
+ return keybindingItems;
95
+ }
96
+ filterByExtension(keybindingItems, extension) {
97
+ extension = extension.toLowerCase().trim();
98
+ return keybindingItems.filter(k => !isString(k.source) && (ExtensionIdentifier.equals(k.source.identifier, extension) || k.source.displayName?.toLowerCase() === extension.toLowerCase()));
99
+ }
100
+ filterByText(keybindingItems, searchValue) {
101
+ const quoteAtFirstChar = searchValue.charAt(0) === '"';
102
+ const quoteAtLastChar = searchValue.charAt(searchValue.length - 1) === '"';
103
+ const completeMatch = quoteAtFirstChar && quoteAtLastChar;
104
+ if (quoteAtFirstChar) {
105
+ searchValue = searchValue.substring(1);
106
+ }
107
+ if (quoteAtLastChar) {
108
+ searchValue = searchValue.substring(0, searchValue.length - 1);
109
+ }
110
+ searchValue = searchValue.trim();
111
+ const result = [];
112
+ const words = searchValue.split(' ');
113
+ const keybindingWords = this.splitKeybindingWords(words);
114
+ for (const keybindingItem of keybindingItems) {
115
+ const keybindingMatches = ( new KeybindingItemMatches(
116
+ this.modifierLabels,
117
+ keybindingItem,
118
+ searchValue,
119
+ words,
120
+ keybindingWords,
121
+ completeMatch
122
+ ));
123
+ if (keybindingMatches.commandIdMatches
124
+ || keybindingMatches.commandLabelMatches
125
+ || keybindingMatches.commandDefaultLabelMatches
126
+ || keybindingMatches.sourceMatches
127
+ || keybindingMatches.whenMatches
128
+ || keybindingMatches.keybindingMatches
129
+ || keybindingMatches.extensionIdMatches
130
+ || keybindingMatches.extensionLabelMatches) {
131
+ result.push({
132
+ id: KeybindingsEditorModel_1.getId(keybindingItem),
133
+ templateId: KEYBINDING_ENTRY_TEMPLATE_ID,
134
+ commandLabelMatches: keybindingMatches.commandLabelMatches || undefined,
135
+ commandDefaultLabelMatches: keybindingMatches.commandDefaultLabelMatches || undefined,
136
+ keybindingItem,
137
+ keybindingMatches: keybindingMatches.keybindingMatches || undefined,
138
+ commandIdMatches: keybindingMatches.commandIdMatches || undefined,
139
+ sourceMatches: keybindingMatches.sourceMatches || undefined,
140
+ whenMatches: keybindingMatches.whenMatches || undefined,
141
+ extensionIdMatches: keybindingMatches.extensionIdMatches || undefined,
142
+ extensionLabelMatches: keybindingMatches.extensionLabelMatches || undefined
143
+ });
144
+ }
145
+ }
146
+ return result;
147
+ }
148
+ splitKeybindingWords(wordsSeparatedBySpaces) {
149
+ const result = [];
150
+ for (const word of wordsSeparatedBySpaces) {
151
+ result.push(...coalesce(word.split('+')));
152
+ }
153
+ return result;
154
+ }
155
+ async resolve(actionLabels = ( new Map())) {
156
+ const extensions = ( new ExtensionIdentifierMap());
157
+ for (const extension of this.extensionService.extensions) {
158
+ extensions.set(extension.identifier, extension);
159
+ }
160
+ this._keybindingItemsSortedByPrecedence = [];
161
+ const boundCommands = ( new Map());
162
+ for (const keybinding of this.keybindingsService.getKeybindings()) {
163
+ if (keybinding.command) {
164
+ this._keybindingItemsSortedByPrecedence.push(KeybindingsEditorModel_1.toKeybindingEntry(keybinding.command, keybinding, actionLabels, extensions));
165
+ boundCommands.set(keybinding.command, true);
166
+ }
167
+ }
168
+ const commandsWithDefaultKeybindings = ( this.keybindingsService.getDefaultKeybindings().map(keybinding => keybinding.command));
169
+ for (const command of getAllUnboundCommands(boundCommands)) {
170
+ const keybindingItem = ( new ResolvedKeybindingItem(
171
+ undefined,
172
+ command,
173
+ null,
174
+ undefined,
175
+ commandsWithDefaultKeybindings.indexOf(command) === -1,
176
+ null,
177
+ false
178
+ ));
179
+ this._keybindingItemsSortedByPrecedence.push(KeybindingsEditorModel_1.toKeybindingEntry(command, keybindingItem, actionLabels, extensions));
180
+ }
181
+ this._keybindingItemsSortedByPrecedence = distinct(this._keybindingItemsSortedByPrecedence, keybindingItem => KeybindingsEditorModel_1.getId(keybindingItem));
182
+ this._keybindingItems = this._keybindingItemsSortedByPrecedence.slice(0).sort((a, b) => KeybindingsEditorModel_1.compareKeybindingData(a, b));
183
+ return super.resolve();
184
+ }
185
+ static getId(keybindingItem) {
186
+ return keybindingItem.command + (keybindingItem?.keybinding?.getAriaLabel() ?? '') + keybindingItem.when + (isString(keybindingItem.source) ? keybindingItem.source : keybindingItem.source.identifier.value);
187
+ }
188
+ static compareKeybindingData(a, b) {
189
+ if (a.keybinding && !b.keybinding) {
190
+ return -1;
191
+ }
192
+ if (b.keybinding && !a.keybinding) {
193
+ return 1;
194
+ }
195
+ if (a.commandLabel && !b.commandLabel) {
196
+ return -1;
197
+ }
198
+ if (b.commandLabel && !a.commandLabel) {
199
+ return 1;
200
+ }
201
+ if (a.commandLabel && b.commandLabel) {
202
+ if (a.commandLabel !== b.commandLabel) {
203
+ return a.commandLabel.localeCompare(b.commandLabel);
204
+ }
205
+ }
206
+ if (a.command === b.command) {
207
+ return a.keybindingItem.isDefault ? 1 : -1;
208
+ }
209
+ return a.command.localeCompare(b.command);
210
+ }
211
+ static toKeybindingEntry(command, keybindingItem, actions, extensions) {
212
+ const menuCommand = MenuRegistry.getCommand(command);
213
+ const editorActionLabel = actions.get(command);
214
+ let source = SOURCE_USER;
215
+ if (keybindingItem.isDefault) {
216
+ const extensionId = keybindingItem.extensionId ?? (keybindingItem.resolvedKeybinding ? undefined : menuCommand?.source?.id);
217
+ source = extensionId ? extensions.get(extensionId) ?? SOURCE_EXTENSION : SOURCE_SYSTEM;
218
+ }
219
+ return {
220
+ keybinding: keybindingItem.resolvedKeybinding,
221
+ keybindingItem,
222
+ command,
223
+ commandLabel: KeybindingsEditorModel_1.getCommandLabel(menuCommand, editorActionLabel),
224
+ commandDefaultLabel: KeybindingsEditorModel_1.getCommandDefaultLabel(menuCommand),
225
+ when: keybindingItem.when ? keybindingItem.when.serialize() : '',
226
+ source
227
+ };
228
+ }
229
+ static getCommandDefaultLabel(menuCommand) {
230
+ if (!Language.isDefaultVariant()) {
231
+ if (menuCommand && menuCommand.title && menuCommand.title.original) {
232
+ const category = menuCommand.category ? menuCommand.category.original : undefined;
233
+ const title = menuCommand.title.original;
234
+ return category ? ( localizeWithPath(
235
+ 'vs/workbench/services/preferences/browser/keybindingsEditorModel',
236
+ 'cat.title',
237
+ "{0}: {1}",
238
+ category,
239
+ title
240
+ )) : title;
241
+ }
242
+ }
243
+ return null;
244
+ }
245
+ static getCommandLabel(menuCommand, editorActionLabel) {
246
+ if (menuCommand) {
247
+ const category = menuCommand.category ? typeof menuCommand.category === 'string' ? menuCommand.category : menuCommand.category.value : undefined;
248
+ const title = typeof menuCommand.title === 'string' ? menuCommand.title : menuCommand.title.value;
249
+ return category ? ( localizeWithPath(
250
+ 'vs/workbench/services/preferences/browser/keybindingsEditorModel',
251
+ 'cat.title',
252
+ "{0}: {1}",
253
+ category,
254
+ title
255
+ )) : title;
256
+ }
257
+ if (editorActionLabel) {
258
+ return editorActionLabel;
259
+ }
260
+ return '';
261
+ }
262
+ };
263
+ KeybindingsEditorModel = KeybindingsEditorModel_1 = ( __decorate([
264
+ ( __param(1, IKeybindingService)),
265
+ ( __param(2, IExtensionService))
266
+ ], KeybindingsEditorModel));
267
+ class KeybindingItemMatches {
268
+ constructor(modifierLabels, keybindingItem, searchValue, words, keybindingWords, completeMatch) {
269
+ this.modifierLabels = modifierLabels;
270
+ this.commandIdMatches = null;
271
+ this.commandLabelMatches = null;
272
+ this.commandDefaultLabelMatches = null;
273
+ this.sourceMatches = null;
274
+ this.whenMatches = null;
275
+ this.keybindingMatches = null;
276
+ this.extensionIdMatches = null;
277
+ this.extensionLabelMatches = null;
278
+ if (!completeMatch) {
279
+ this.commandIdMatches = this.matches(searchValue, keybindingItem.command, or(matchesWords, matchesCamelCase), words);
280
+ this.commandLabelMatches = keybindingItem.commandLabel ? this.matches(searchValue, keybindingItem.commandLabel, (word, wordToMatchAgainst) => matchesWords(word, keybindingItem.commandLabel, true), words) : null;
281
+ this.commandDefaultLabelMatches = keybindingItem.commandDefaultLabel ? this.matches(searchValue, keybindingItem.commandDefaultLabel, (word, wordToMatchAgainst) => matchesWords(word, keybindingItem.commandDefaultLabel, true), words) : null;
282
+ this.whenMatches = keybindingItem.when ? this.matches(null, keybindingItem.when, or(matchesWords, matchesCamelCase), words) : null;
283
+ if (isString(keybindingItem.source)) {
284
+ this.sourceMatches = this.matches(searchValue, keybindingItem.source, (word, wordToMatchAgainst) => matchesWords(word, keybindingItem.source, true), words);
285
+ }
286
+ else {
287
+ this.extensionLabelMatches = keybindingItem.source.displayName ? this.matches(searchValue, keybindingItem.source.displayName, (word, wordToMatchAgainst) => matchesWords(word, keybindingItem.commandLabel, true), words) : null;
288
+ }
289
+ }
290
+ this.keybindingMatches = keybindingItem.keybinding ? this.matchesKeybinding(keybindingItem.keybinding, searchValue, keybindingWords, completeMatch) : null;
291
+ }
292
+ matches(searchValue, wordToMatchAgainst, wordMatchesFilter, words) {
293
+ let matches = searchValue ? wordFilter(searchValue, wordToMatchAgainst) : null;
294
+ if (!matches) {
295
+ matches = this.matchesWords(words, wordToMatchAgainst, wordMatchesFilter);
296
+ }
297
+ if (matches) {
298
+ matches = this.filterAndSort(matches);
299
+ }
300
+ return matches;
301
+ }
302
+ matchesWords(words, wordToMatchAgainst, wordMatchesFilter) {
303
+ let matches = [];
304
+ for (const word of words) {
305
+ const wordMatches = wordMatchesFilter(word, wordToMatchAgainst);
306
+ if (wordMatches) {
307
+ matches = [...(matches || []), ...wordMatches];
308
+ }
309
+ else {
310
+ matches = null;
311
+ break;
312
+ }
313
+ }
314
+ return matches;
315
+ }
316
+ filterAndSort(matches) {
317
+ return distinct(matches, (a => a.start + '.' + a.end)).filter(match => !( matches.some(
318
+ m => !(m.start === match.start && m.end === match.end) && (m.start <= match.start && m.end >= match.end)
319
+ ))).sort((a, b) => a.start - b.start);
320
+ }
321
+ matchesKeybinding(keybinding, searchValue, words, completeMatch) {
322
+ const [firstPart, chordPart] = keybinding.getChords();
323
+ const userSettingsLabel = keybinding.getUserSettingsLabel();
324
+ const ariaLabel = keybinding.getAriaLabel();
325
+ const label = keybinding.getLabel();
326
+ if ((userSettingsLabel && strings.compareIgnoreCase(searchValue, userSettingsLabel) === 0)
327
+ || (ariaLabel && strings.compareIgnoreCase(searchValue, ariaLabel) === 0)
328
+ || (label && strings.compareIgnoreCase(searchValue, label) === 0)) {
329
+ return {
330
+ firstPart: this.createCompleteMatch(firstPart),
331
+ chordPart: this.createCompleteMatch(chordPart)
332
+ };
333
+ }
334
+ const firstPartMatch = {};
335
+ let chordPartMatch = {};
336
+ const matchedWords = [];
337
+ const firstPartMatchedWords = [];
338
+ let chordPartMatchedWords = [];
339
+ let matchFirstPart = true;
340
+ for (let index = 0; index < words.length; index++) {
341
+ const word = words[index];
342
+ let firstPartMatched = false;
343
+ let chordPartMatched = false;
344
+ matchFirstPart = matchFirstPart && !firstPartMatch.keyCode;
345
+ let matchChordPart = !chordPartMatch.keyCode;
346
+ if (matchFirstPart) {
347
+ firstPartMatched = this.matchPart(firstPart, firstPartMatch, word, completeMatch);
348
+ if (firstPartMatch.keyCode) {
349
+ for (const cordPartMatchedWordIndex of chordPartMatchedWords) {
350
+ if (firstPartMatchedWords.indexOf(cordPartMatchedWordIndex) === -1) {
351
+ matchedWords.splice(matchedWords.indexOf(cordPartMatchedWordIndex), 1);
352
+ }
353
+ }
354
+ chordPartMatch = {};
355
+ chordPartMatchedWords = [];
356
+ matchChordPart = false;
357
+ }
358
+ }
359
+ if (matchChordPart) {
360
+ chordPartMatched = this.matchPart(chordPart, chordPartMatch, word, completeMatch);
361
+ }
362
+ if (firstPartMatched) {
363
+ firstPartMatchedWords.push(index);
364
+ }
365
+ if (chordPartMatched) {
366
+ chordPartMatchedWords.push(index);
367
+ }
368
+ if (firstPartMatched || chordPartMatched) {
369
+ matchedWords.push(index);
370
+ }
371
+ matchFirstPart = matchFirstPart && this.isModifier(word);
372
+ }
373
+ if (matchedWords.length !== words.length) {
374
+ return null;
375
+ }
376
+ if (completeMatch) {
377
+ if (!this.isCompleteMatch(firstPart, firstPartMatch)) {
378
+ return null;
379
+ }
380
+ if (!isEmptyObject(chordPartMatch) && !this.isCompleteMatch(chordPart, chordPartMatch)) {
381
+ return null;
382
+ }
383
+ }
384
+ return this.hasAnyMatch(firstPartMatch) || this.hasAnyMatch(chordPartMatch) ? { firstPart: firstPartMatch, chordPart: chordPartMatch } : null;
385
+ }
386
+ matchPart(chord, match, word, completeMatch) {
387
+ let matched = false;
388
+ if (this.matchesMetaModifier(chord, word)) {
389
+ matched = true;
390
+ match.metaKey = true;
391
+ }
392
+ if (this.matchesCtrlModifier(chord, word)) {
393
+ matched = true;
394
+ match.ctrlKey = true;
395
+ }
396
+ if (this.matchesShiftModifier(chord, word)) {
397
+ matched = true;
398
+ match.shiftKey = true;
399
+ }
400
+ if (this.matchesAltModifier(chord, word)) {
401
+ matched = true;
402
+ match.altKey = true;
403
+ }
404
+ if (this.matchesKeyCode(chord, word, completeMatch)) {
405
+ match.keyCode = true;
406
+ matched = true;
407
+ }
408
+ return matched;
409
+ }
410
+ matchesKeyCode(chord, word, completeMatch) {
411
+ if (!chord) {
412
+ return false;
413
+ }
414
+ const ariaLabel = chord.keyAriaLabel || '';
415
+ if (completeMatch || ariaLabel.length === 1 || word.length === 1) {
416
+ if (strings.compareIgnoreCase(ariaLabel, word) === 0) {
417
+ return true;
418
+ }
419
+ }
420
+ else {
421
+ if (matchesContiguousSubString(word, ariaLabel)) {
422
+ return true;
423
+ }
424
+ }
425
+ return false;
426
+ }
427
+ matchesMetaModifier(chord, word) {
428
+ if (!chord) {
429
+ return false;
430
+ }
431
+ if (!chord.metaKey) {
432
+ return false;
433
+ }
434
+ return this.wordMatchesMetaModifier(word);
435
+ }
436
+ matchesCtrlModifier(chord, word) {
437
+ if (!chord) {
438
+ return false;
439
+ }
440
+ if (!chord.ctrlKey) {
441
+ return false;
442
+ }
443
+ return this.wordMatchesCtrlModifier(word);
444
+ }
445
+ matchesShiftModifier(chord, word) {
446
+ if (!chord) {
447
+ return false;
448
+ }
449
+ if (!chord.shiftKey) {
450
+ return false;
451
+ }
452
+ return this.wordMatchesShiftModifier(word);
453
+ }
454
+ matchesAltModifier(chord, word) {
455
+ if (!chord) {
456
+ return false;
457
+ }
458
+ if (!chord.altKey) {
459
+ return false;
460
+ }
461
+ return this.wordMatchesAltModifier(word);
462
+ }
463
+ hasAnyMatch(keybindingMatch) {
464
+ return !!keybindingMatch.altKey ||
465
+ !!keybindingMatch.ctrlKey ||
466
+ !!keybindingMatch.metaKey ||
467
+ !!keybindingMatch.shiftKey ||
468
+ !!keybindingMatch.keyCode;
469
+ }
470
+ isCompleteMatch(chord, match) {
471
+ if (!chord) {
472
+ return true;
473
+ }
474
+ if (!match.keyCode) {
475
+ return false;
476
+ }
477
+ if (chord.metaKey && !match.metaKey) {
478
+ return false;
479
+ }
480
+ if (chord.altKey && !match.altKey) {
481
+ return false;
482
+ }
483
+ if (chord.ctrlKey && !match.ctrlKey) {
484
+ return false;
485
+ }
486
+ if (chord.shiftKey && !match.shiftKey) {
487
+ return false;
488
+ }
489
+ return true;
490
+ }
491
+ createCompleteMatch(chord) {
492
+ const match = {};
493
+ if (chord) {
494
+ match.keyCode = true;
495
+ if (chord.metaKey) {
496
+ match.metaKey = true;
497
+ }
498
+ if (chord.altKey) {
499
+ match.altKey = true;
500
+ }
501
+ if (chord.ctrlKey) {
502
+ match.ctrlKey = true;
503
+ }
504
+ if (chord.shiftKey) {
505
+ match.shiftKey = true;
506
+ }
507
+ }
508
+ return match;
509
+ }
510
+ isModifier(word) {
511
+ if (this.wordMatchesAltModifier(word)) {
512
+ return true;
513
+ }
514
+ if (this.wordMatchesCtrlModifier(word)) {
515
+ return true;
516
+ }
517
+ if (this.wordMatchesMetaModifier(word)) {
518
+ return true;
519
+ }
520
+ if (this.wordMatchesShiftModifier(word)) {
521
+ return true;
522
+ }
523
+ return false;
524
+ }
525
+ wordMatchesAltModifier(word) {
526
+ if (strings.equalsIgnoreCase(this.modifierLabels.ui.altKey, word)) {
527
+ return true;
528
+ }
529
+ if (strings.equalsIgnoreCase(this.modifierLabels.aria.altKey, word)) {
530
+ return true;
531
+ }
532
+ if (strings.equalsIgnoreCase(this.modifierLabels.user.altKey, word)) {
533
+ return true;
534
+ }
535
+ if (strings.equalsIgnoreCase(( localizeWithPath(
536
+ 'vs/workbench/services/preferences/browser/keybindingsEditorModel',
537
+ 'option',
538
+ "option"
539
+ )), word)) {
540
+ return true;
541
+ }
542
+ return false;
543
+ }
544
+ wordMatchesCtrlModifier(word) {
545
+ if (strings.equalsIgnoreCase(this.modifierLabels.ui.ctrlKey, word)) {
546
+ return true;
547
+ }
548
+ if (strings.equalsIgnoreCase(this.modifierLabels.aria.ctrlKey, word)) {
549
+ return true;
550
+ }
551
+ if (strings.equalsIgnoreCase(this.modifierLabels.user.ctrlKey, word)) {
552
+ return true;
553
+ }
554
+ return false;
555
+ }
556
+ wordMatchesMetaModifier(word) {
557
+ if (strings.equalsIgnoreCase(this.modifierLabels.ui.metaKey, word)) {
558
+ return true;
559
+ }
560
+ if (strings.equalsIgnoreCase(this.modifierLabels.aria.metaKey, word)) {
561
+ return true;
562
+ }
563
+ if (strings.equalsIgnoreCase(this.modifierLabels.user.metaKey, word)) {
564
+ return true;
565
+ }
566
+ if (strings.equalsIgnoreCase(( localizeWithPath(
567
+ 'vs/workbench/services/preferences/browser/keybindingsEditorModel',
568
+ 'meta',
569
+ "meta"
570
+ )), word)) {
571
+ return true;
572
+ }
573
+ return false;
574
+ }
575
+ wordMatchesShiftModifier(word) {
576
+ if (strings.equalsIgnoreCase(this.modifierLabels.ui.shiftKey, word)) {
577
+ return true;
578
+ }
579
+ if (strings.equalsIgnoreCase(this.modifierLabels.aria.shiftKey, word)) {
580
+ return true;
581
+ }
582
+ if (strings.equalsIgnoreCase(this.modifierLabels.user.shiftKey, word)) {
583
+ return true;
584
+ }
585
+ return false;
586
+ }
587
+ }
588
+ export { KEYBINDING_ENTRY_TEMPLATE_ID, KeybindingsEditorModel };
@@ -0,0 +1,43 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
3
+ import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
4
+ import * as nls from 'monaco-editor/esm/vs/nls.js';
5
+ import { EditorInput } from '../../../common/editor/editorInput.js';
6
+ import { IPreferencesService } from './preferences.js';
7
+ var SettingsEditor2Input_1;
8
+ let SettingsEditor2Input = class SettingsEditor2Input extends EditorInput {
9
+ static { SettingsEditor2Input_1 = this; }
10
+ static { this.ID = 'workbench.input.settings2'; }
11
+ constructor(_preferencesService) {
12
+ super();
13
+ this.resource = ( URI.from({
14
+ scheme: Schemas.vscodeSettings,
15
+ path: `settingseditor`
16
+ }));
17
+ this._settingsModel = _preferencesService.createSettings2EditorModel();
18
+ }
19
+ matches(otherInput) {
20
+ return super.matches(otherInput) || otherInput instanceof SettingsEditor2Input_1;
21
+ }
22
+ get typeId() {
23
+ return SettingsEditor2Input_1.ID;
24
+ }
25
+ getName() {
26
+ return ( nls.localizeWithPath(
27
+ 'vs/workbench/services/preferences/common/preferencesEditorInput',
28
+ 'settingsEditor2InputName',
29
+ "Settings"
30
+ ));
31
+ }
32
+ async resolve() {
33
+ return this._settingsModel;
34
+ }
35
+ dispose() {
36
+ this._settingsModel.dispose();
37
+ super.dispose();
38
+ }
39
+ };
40
+ SettingsEditor2Input = SettingsEditor2Input_1 = ( __decorate([
41
+ ( __param(0, IPreferencesService))
42
+ ], SettingsEditor2Input));
43
+ export { SettingsEditor2Input };
@@ -1,10 +1,10 @@
1
1
  import { ServiceIdentifier } from '../../../../platform/instantiation/common/instantiation.js';
2
2
  import { Event } from '../../../../base/common/event.js';
3
- import { RemoteTunnel, TunnelProtocol } from '../../../../platform/tunnel/common/tunnel.js';
4
3
  import { IDisposable } from '../../../../base/common/lifecycle.js';
4
+ import { URI } from '../../../../base/common/uri.js';
5
+ import { RemoteTunnel, TunnelProtocol } from '../../../../platform/tunnel/common/tunnel.js';
5
6
  import { IEditableData } from '../../../common/views.js';
6
7
  import { TunnelInformation, TunnelPrivacy } from '../../../../platform/remote/common/remoteAuthorityResolver.js';
7
- import { URI } from '../../../../base/common/uri.js';
8
8
  import { TunnelModel, TunnelProperties, Attributes, TunnelCloseReason, CandidatePort, TunnelSource } from './tunnelModel.js';
9
9
  import { IExtensionPointUser } from '../../extensions/common/extensionsRegistry.js';
10
10
  import { IExtensionDescription } from '../../../../platform/extensions/common/extensions.js';