@codingame/monaco-vscode-extensions-service-override 11.1.2 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/index.d.ts +40 -2
  2. package/index.js +266 -1
  3. package/package.json +81 -11
  4. package/vscode/src/vs/base/common/console.d.ts +22 -0
  5. package/vscode/src/vs/base/common/console.js +3 -0
  6. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.d.ts +24 -0
  7. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +54 -53
  8. package/vscode/src/vs/platform/extensionResourceLoader/browser/extensionResourceLoaderService.d.ts +14 -0
  9. package/vscode/src/vs/platform/extensionResourceLoader/browser/extensionResourceLoaderService.js +4 -2
  10. package/vscode/src/vs/platform/lifecycle/common/lifecycle.d.ts +1 -0
  11. package/vscode/src/vs/platform/lifecycle/common/lifecycle.js +1 -0
  12. package/vscode/src/vs/platform/remote/common/managedSocket.d.ts +30 -0
  13. package/vscode/src/vs/platform/remote/common/managedSocket.js +1 -0
  14. package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.d.ts +12 -0
  15. package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js +2 -1
  16. package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.d.ts +15 -0
  17. package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js +2 -1
  18. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.d.ts +73 -0
  19. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +67 -39
  20. package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.d.ts +18 -0
  21. package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +5 -3
  22. package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.d.ts +1 -0
  23. package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +12 -11
  24. package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.d.ts +65 -0
  25. package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +33 -14
  26. package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.d.ts +15 -0
  27. package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.js +2 -1
  28. package/vscode/src/vs/workbench/api/browser/mainThreadChatVariables.d.ts +15 -0
  29. package/vscode/src/vs/workbench/api/browser/mainThreadChatVariables.js +2 -1
  30. package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.d.ts +9 -0
  31. package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.js +2 -1
  32. package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.d.ts +21 -0
  33. package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.js +2 -1
  34. package/vscode/src/vs/workbench/api/browser/mainThreadCommands.d.ts +20 -0
  35. package/vscode/src/vs/workbench/api/browser/mainThreadCommands.js +2 -1
  36. package/vscode/src/vs/workbench/api/browser/mainThreadComments.d.ts +169 -0
  37. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +50 -58
  38. package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.d.ts +20 -0
  39. package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.js +13 -10
  40. package/vscode/src/vs/workbench/api/browser/mainThreadConsole.d.ts +13 -0
  41. package/vscode/src/vs/workbench/api/browser/mainThreadConsole.js +2 -1
  42. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.d.ts +38 -0
  43. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +82 -75
  44. package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.d.ts +53 -0
  45. package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +7 -6
  46. package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.d.ts +14 -0
  47. package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.js +2 -1
  48. package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.d.ts +21 -0
  49. package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js +2 -1
  50. package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.d.ts +13 -0
  51. package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.js +2 -1
  52. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.d.ts +21 -0
  53. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +2 -1
  54. package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.d.ts +58 -0
  55. package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +5 -3
  56. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.d.ts +40 -0
  57. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +23 -13
  58. package/vscode/src/vs/workbench/api/browser/mainThreadDownloadService.d.ts +10 -0
  59. package/vscode/src/vs/workbench/api/browser/mainThreadDownloadService.js +2 -1
  60. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.d.ts +9 -0
  61. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +8 -7
  62. package/vscode/src/vs/workbench/api/browser/mainThreadEditor.d.ts +65 -0
  63. package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +15 -16
  64. package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.d.ts +37 -0
  65. package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +53 -52
  66. package/vscode/src/vs/workbench/api/browser/mainThreadEditors.d.ts +60 -0
  67. package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +97 -5
  68. package/vscode/src/vs/workbench/api/browser/mainThreadEmbeddings.d.ts +34 -0
  69. package/vscode/src/vs/workbench/api/browser/mainThreadEmbeddings.js +4 -3
  70. package/vscode/src/vs/workbench/api/browser/mainThreadErrors.d.ts +6 -0
  71. package/vscode/src/vs/workbench/api/browser/mainThreadErrors.js +2 -1
  72. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.d.ts +42 -0
  73. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +42 -45
  74. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.d.ts +32 -0
  75. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +7 -6
  76. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.d.ts +25 -0
  77. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +64 -60
  78. package/vscode/src/vs/workbench/api/browser/mainThreadInteractive.d.ts +9 -0
  79. package/vscode/src/vs/workbench/api/browser/mainThreadInteractive.js +2 -1
  80. package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.d.ts +12 -0
  81. package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.js +2 -1
  82. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.d.ts +108 -0
  83. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +31 -28
  84. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.d.ts +18 -0
  85. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.js +2 -1
  86. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.d.ts +42 -0
  87. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +23 -22
  88. package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.d.ts +29 -0
  89. package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.js +2 -1
  90. package/vscode/src/vs/workbench/api/browser/mainThreadLocalization.d.ts +13 -0
  91. package/vscode/src/vs/workbench/api/browser/mainThreadLocalization.js +2 -1
  92. package/vscode/src/vs/workbench/api/browser/mainThreadLogService.d.ts +20 -0
  93. package/vscode/src/vs/workbench/api/browser/mainThreadLogService.js +2 -1
  94. package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.d.ts +27 -0
  95. package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.js +6 -3
  96. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.d.ts +22 -0
  97. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +46 -47
  98. package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.d.ts +22 -0
  99. package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +3 -2
  100. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.d.ts +24 -0
  101. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +2 -1
  102. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.d.ts +29 -0
  103. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +4 -3
  104. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.d.ts +17 -0
  105. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.js +5 -3
  106. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.d.ts +27 -0
  107. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +4 -3
  108. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.d.ts +49 -0
  109. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +3 -2
  110. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.d.ts +10 -0
  111. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +2 -1
  112. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.d.ts +9 -0
  113. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +9 -8
  114. package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.d.ts +26 -0
  115. package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +39 -6
  116. package/vscode/src/vs/workbench/api/browser/mainThreadProfileContentHandlers.d.ts +12 -0
  117. package/vscode/src/vs/workbench/api/browser/mainThreadProfileContentHandlers.js +2 -1
  118. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.d.ts +17 -0
  119. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +13 -13
  120. package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.d.ts +13 -0
  121. package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.js +4 -2
  122. package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.d.ts +19 -0
  123. package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.js +2 -1
  124. package/vscode/src/vs/workbench/api/browser/mainThreadRemoteConnectionData.d.ts +9 -0
  125. package/vscode/src/vs/workbench/api/browser/mainThreadRemoteConnectionData.js +2 -1
  126. package/vscode/src/vs/workbench/api/browser/mainThreadSCM.d.ts +52 -0
  127. package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +11 -7
  128. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.d.ts +9 -0
  129. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +9 -8
  130. package/vscode/src/vs/workbench/api/browser/mainThreadSearch.d.ts +24 -0
  131. package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +9 -19
  132. package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.d.ts +21 -0
  133. package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +2 -1
  134. package/vscode/src/vs/workbench/api/browser/mainThreadShare.d.ts +13 -0
  135. package/vscode/src/vs/workbench/api/browser/mainThreadShare.js +2 -1
  136. package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.d.ts +21 -0
  137. package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.js +2 -1
  138. package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.d.ts +15 -0
  139. package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.js +6 -4
  140. package/vscode/src/vs/workbench/api/browser/mainThreadStorage.d.ts +22 -0
  141. package/vscode/src/vs/workbench/api/browser/mainThreadStorage.js +4 -2
  142. package/vscode/src/vs/workbench/api/browser/mainThreadTask.d.ts +28 -0
  143. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +174 -195
  144. package/vscode/src/vs/workbench/api/browser/mainThreadTelemetry.d.ts +20 -0
  145. package/vscode/src/vs/workbench/api/browser/mainThreadTelemetry.js +4 -3
  146. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.d.ts +80 -0
  147. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +27 -9
  148. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.d.ts +12 -0
  149. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +7 -5
  150. package/vscode/src/vs/workbench/api/browser/mainThreadTesting.d.ts +44 -0
  151. package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +6 -5
  152. package/vscode/src/vs/workbench/api/browser/mainThreadTheming.d.ts +10 -0
  153. package/vscode/src/vs/workbench/api/browser/mainThreadTheming.js +2 -1
  154. package/vscode/src/vs/workbench/api/browser/mainThreadTimeline.d.ts +16 -0
  155. package/vscode/src/vs/workbench/api/browser/mainThreadTimeline.js +2 -1
  156. package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.d.ts +45 -0
  157. package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.js +41 -16
  158. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.d.ts +44 -0
  159. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +29 -30
  160. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.d.ts +25 -0
  161. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +21 -25
  162. package/vscode/src/vs/workbench/api/browser/mainThreadUrls.d.ts +17 -0
  163. package/vscode/src/vs/workbench/api/browser/mainThreadUrls.js +2 -1
  164. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.d.ts +6 -0
  165. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.js +2 -1
  166. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.d.ts +42 -0
  167. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +9 -8
  168. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.d.ts +26 -0
  169. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.js +2 -1
  170. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.d.ts +29 -0
  171. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +19 -18
  172. package/vscode/src/vs/workbench/api/browser/mainThreadWindow.d.ts +22 -0
  173. package/vscode/src/vs/workbench/api/browser/mainThreadWindow.js +10 -1
  174. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.d.ts +71 -0
  175. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +34 -35
  176. package/vscode/src/vs/workbench/api/common/shared/dataTransferCache.d.ts +12 -0
  177. package/vscode/src/vs/workbench/api/common/shared/dataTransferCache.js +1 -0
  178. package/vscode/src/vs/workbench/common/comments.d.ts +10 -0
  179. package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.d.ts +39 -0
  180. package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +14 -12
  181. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.d.ts +16 -0
  182. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +6 -4
  183. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.d.ts +25 -0
  184. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +62 -60
  185. package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +74 -0
  186. package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +63 -45
  187. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +57 -0
  188. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +16 -12
  189. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerFileSystemProvider.d.ts +20 -0
  190. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerFileSystemProvider.js +3 -2
  191. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +203 -0
  192. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +217 -180
  193. package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.d.ts +32 -0
  194. package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.js +4 -2
  195. package/vscode/src/vs/workbench/services/extensions/common/extensionDevOptions.d.ts +8 -0
  196. package/vscode/src/vs/workbench/services/extensions/common/extensionDevOptions.js +1 -0
  197. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.d.ts +68 -0
  198. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +37 -39
  199. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +40 -0
  200. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +38 -0
  201. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +15 -14
  202. package/vscode/src/vs/workbench/services/extensions/common/extensionStorageMigration.d.ts +2 -0
  203. package/vscode/src/vs/workbench/services/extensions/common/extensionStorageMigration.js +4 -2
  204. package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.d.ts +14 -0
  205. package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +18 -19
  206. package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.d.ts +3 -0
  207. package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +8 -7
  208. package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.d.ts +54 -0
  209. package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.js +4 -3
  210. package/vscode/src/vs/workbench/services/extensions/common/remoteConsoleUtil.d.ts +4 -0
  211. package/vscode/src/vs/workbench/services/extensions/common/remoteConsoleUtil.js +1 -0
  212. package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.d.ts +68 -0
  213. package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.js +12 -9
  214. package/_virtual/semver.js +0 -5
  215. package/extensions.js +0 -257
  216. package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +0 -11
  217. package/tools/url.js +0 -10
@@ -1,4 +1,5 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { localize } from 'vscode/vscode/vs/nls';
3
4
  import { ExtHostContext, CandidatePortSource, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
4
5
  import { TunnelDtoConverter } from 'vscode/vscode/vs/workbench/api/common/extHostTunnelService';
@@ -17,7 +18,7 @@ import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
17
18
  import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
18
19
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
19
20
  import { TunnelSource, TunnelCloseReason, makeAddress, forwardedPortsFeaturesEnabled } from 'vscode/vscode/vs/workbench/services/remote/common/tunnelModel';
20
- import Severity$1 from 'vscode/vscode/vs/base/common/severity';
21
+ import Severity from 'vscode/vscode/vs/base/common/severity';
21
22
 
22
23
  let MainThreadTunnelService = class MainThreadTunnelService extends Disposable {
23
24
  constructor(extHostContext, remoteExplorerService, tunnelService, notificationService, configurationService, logService, remoteAgentService, contextKeyService) {
@@ -30,9 +31,9 @@ let MainThreadTunnelService = class MainThreadTunnelService extends Disposable {
30
31
  this.remoteAgentService = remoteAgentService;
31
32
  this.contextKeyService = contextKeyService;
32
33
  this.elevateionRetry = false;
33
- this.portsAttributesProviders = ( (new Map()));
34
+ this.portsAttributesProviders = ( new Map());
34
35
  this._alreadyRegistered = false;
35
- this._proxy = ( (extHostContext.getProxy(ExtHostContext.ExtHostTunnelService)));
36
+ this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostTunnelService));
36
37
  this._register(tunnelService.onTunnelOpened(() => this._proxy.$onDidTunnelsChange()));
37
38
  this._register(tunnelService.onTunnelClosed(() => this._proxy.$onDidTunnelsChange()));
38
39
  }
@@ -73,13 +74,13 @@ let MainThreadTunnelService = class MainThreadTunnelService extends Disposable {
73
74
  if (this.portsAttributesProviders.size === 0) {
74
75
  return [];
75
76
  }
76
- const appropriateHandles = ( (Array.from(this.portsAttributesProviders.entries()).filter(entry => {
77
+ const appropriateHandles = ( Array.from(this.portsAttributesProviders.entries()).filter(entry => {
77
78
  const selector = entry[1];
78
79
  const portRange = (typeof selector.portRange === 'number') ? [selector.portRange, selector.portRange + 1] : selector.portRange;
79
- const portInRange = portRange ? ( (ports.some(port => portRange[0] <= port && port < portRange[1]))) : true;
80
+ const portInRange = portRange ? ( ports.some(port => portRange[0] <= port && port < portRange[1])) : true;
80
81
  const commandMatches = !selector.commandPattern || (commandLine && (commandLine.match(selector.commandPattern)));
81
82
  return portInRange && commandMatches;
82
- }).map(entry => entry[0])));
83
+ }).map(entry => entry[0]));
83
84
  if (appropriateHandles.length === 0) {
84
85
  return [];
85
86
  }
@@ -110,14 +111,14 @@ let MainThreadTunnelService = class MainThreadTunnelService extends Disposable {
110
111
  return TunnelDtoConverter.fromServiceTunnel(tunnel);
111
112
  }
112
113
  async elevationPrompt(tunnelOptions, tunnel, source) {
113
- return this.notificationService.prompt(Severity$1.Info, ( localize(
114
- 4556,
114
+ return this.notificationService.prompt(Severity.Info, ( localize(
115
+ 2300,
115
116
  "The extension {0} has forwarded port {1}. You'll need to run as superuser to use port {2} locally.",
116
117
  source,
117
118
  tunnelOptions.remoteAddress.port,
118
119
  tunnelOptions.localAddressPort
119
120
  )), [{
120
- label: ( localize(4557, "Use Port {0} as Sudo...", tunnel.tunnelRemotePort)),
121
+ label: ( localize(2301, "Use Port {0} as Sudo...", tunnel.tunnelRemotePort)),
121
122
  run: async () => {
122
123
  this.elevateionRetry = true;
123
124
  await this.remoteExplorerService.close({ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }, TunnelCloseReason.Other);
@@ -139,16 +140,14 @@ let MainThreadTunnelService = class MainThreadTunnelService extends Disposable {
139
140
  return this.remoteExplorerService.close(remote, TunnelCloseReason.Other);
140
141
  }
141
142
  async $getTunnels() {
142
- return (
143
- ((await this.tunnelService.tunnels).map(tunnel => {
144
- return {
145
- remoteAddress: { port: tunnel.tunnelRemotePort, host: tunnel.tunnelRemoteHost },
146
- localAddress: tunnel.localAddress,
147
- privacy: tunnel.privacy,
148
- protocol: tunnel.protocol
149
- };
150
- }))
151
- );
143
+ return ( (await this.tunnelService.tunnels).map(tunnel => {
144
+ return {
145
+ remoteAddress: { port: tunnel.tunnelRemotePort, host: tunnel.tunnelRemoteHost },
146
+ localAddress: tunnel.localAddress,
147
+ privacy: tunnel.privacy,
148
+ protocol: tunnel.protocol
149
+ };
150
+ }));
152
151
  }
153
152
  async $onFoundNewCandidates(candidates) {
154
153
  this.remoteExplorerService.onFoundNewCandidates(candidates);
@@ -199,17 +198,17 @@ let MainThreadTunnelService = class MainThreadTunnelService extends Disposable {
199
198
  this.remoteAgentService.getEnvironment().then(() => {
200
199
  switch (source) {
201
200
  case CandidatePortSource.None: {
202
- ( (Registry.as(Extensions.Configuration)))
201
+ ( Registry.as(Extensions.Configuration))
203
202
  .registerDefaultConfigurations([{ overrides: { 'remote.autoForwardPorts': false } }]);
204
203
  break;
205
204
  }
206
205
  case CandidatePortSource.Output: {
207
- ( (Registry.as(Extensions.Configuration)))
206
+ ( Registry.as(Extensions.Configuration))
208
207
  .registerDefaultConfigurations([{ overrides: { 'remote.autoForwardPortsSource': PORT_AUTO_SOURCE_SETTING_OUTPUT } }]);
209
208
  break;
210
209
  }
211
210
  case CandidatePortSource.Hybrid: {
212
- ( (Registry.as(Extensions.Configuration)))
211
+ ( Registry.as(Extensions.Configuration))
213
212
  .registerDefaultConfigurations([{ overrides: { 'remote.autoForwardPortsSource': PORT_AUTO_SOURCE_SETTING_HYBRID } }]);
214
213
  break;
215
214
  }
@@ -220,13 +219,13 @@ let MainThreadTunnelService = class MainThreadTunnelService extends Disposable {
220
219
  };
221
220
  MainThreadTunnelService = __decorate([
222
221
  extHostNamedCustomer(MainContext.MainThreadTunnelService),
223
- ( (__param(1, IRemoteExplorerService))),
224
- ( (__param(2, ITunnelService))),
225
- ( (__param(3, INotificationService))),
226
- ( (__param(4, IConfigurationService))),
227
- ( (__param(5, ILogService))),
228
- ( (__param(6, IRemoteAgentService))),
229
- ( (__param(7, IContextKeyService)))
222
+ ( __param(1, IRemoteExplorerService)),
223
+ ( __param(2, ITunnelService)),
224
+ ( __param(3, INotificationService)),
225
+ ( __param(4, IConfigurationService)),
226
+ ( __param(5, ILogService)),
227
+ ( __param(6, IRemoteAgentService)),
228
+ ( __param(7, IContextKeyService))
230
229
  ], MainThreadTunnelService);
231
230
 
232
231
  export { MainThreadTunnelService };
@@ -0,0 +1,25 @@
1
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
2
+ import { URI } from "vscode/vscode/vs/base/common/uri";
3
+ import { ExtensionIdentifier } from "vscode/vscode/vs/platform/extensions/common/extensions";
4
+ import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
5
+ import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
6
+ import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
7
+ import { MainThreadUriOpenersShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
8
+ import { IExternalOpenerProvider, IExternalUriOpener } from "@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService";
9
+ import { IExternalUriOpenerService } from "vscode/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service";
10
+ import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
11
+ import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
12
+ export declare class MainThreadUriOpeners extends Disposable implements MainThreadUriOpenersShape, IExternalOpenerProvider {
13
+ private readonly extensionService;
14
+ private readonly openerService;
15
+ private readonly notificationService;
16
+ private readonly proxy;
17
+ private readonly _registeredOpeners;
18
+ private readonly _contributedExternalUriOpenersStore;
19
+ constructor(context: IExtHostContext, storageService: IStorageService, externalUriOpenerService: IExternalUriOpenerService, extensionService: IExtensionService, openerService: IOpenerService, notificationService: INotificationService);
20
+ getOpeners(targetUri: URI): AsyncIterable<IExternalUriOpener>;
21
+ private createOpener;
22
+ $registerUriOpener(id: string, schemes: readonly string[], extensionId: ExtensionIdentifier, label: string): Promise<void>;
23
+ $unregisterUriOpener(id: string): Promise<void>;
24
+ dispose(): void;
25
+ }
@@ -1,4 +1,5 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { Action } from 'vscode/vscode/vs/base/common/actions';
3
4
  import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
4
5
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
@@ -9,12 +10,12 @@ import { INotificationService } from 'vscode/vscode/vs/platform/notification/com
9
10
  import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
10
11
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
11
12
  import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
12
- import { defaultExternalUriOpenerId } from 'vscode/vscode/vs/workbench/contrib/externalUriOpener/common/configuration';
13
+ import { defaultExternalUriOpenerId } from '@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common/vscode/vs/workbench/contrib/externalUriOpener/common/configuration';
13
14
  import { ContributedExternalUriOpenersStore } from '../../contrib/externalUriOpener/common/contributedOpeners.js';
14
15
  import { IExternalUriOpenerService } from 'vscode/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service';
15
16
  import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
16
17
  import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
17
- import Severity$1 from 'vscode/vscode/vs/base/common/severity';
18
+ import Severity from 'vscode/vscode/vs/base/common/severity';
18
19
 
19
20
  let MainThreadUriOpeners = class MainThreadUriOpeners extends Disposable {
20
21
  constructor(context, storageService, externalUriOpenerService, extensionService, openerService, notificationService) {
@@ -22,10 +23,10 @@ let MainThreadUriOpeners = class MainThreadUriOpeners extends Disposable {
22
23
  this.extensionService = extensionService;
23
24
  this.openerService = openerService;
24
25
  this.notificationService = notificationService;
25
- this._registeredOpeners = ( (new Map()));
26
- this.proxy = ( (context.getProxy(ExtHostContext.ExtHostUriOpeners)));
26
+ this._registeredOpeners = ( new Map());
27
+ this.proxy = ( context.getProxy(ExtHostContext.ExtHostUriOpeners));
27
28
  this._register(externalUriOpenerService.registerExternalOpenerProvider(this));
28
- this._contributedExternalUriOpenersStore = this._register(( (new ContributedExternalUriOpenersStore(storageService, extensionService))));
29
+ this._contributedExternalUriOpenersStore = this._register(( new ContributedExternalUriOpenersStore(storageService, extensionService)));
29
30
  }
30
31
  async *getOpeners(targetUri) {
31
32
  if (targetUri.scheme !== Schemas.http && targetUri.scheme !== Schemas.https) {
@@ -33,7 +34,7 @@ let MainThreadUriOpeners = class MainThreadUriOpeners extends Disposable {
33
34
  }
34
35
  await this.extensionService.activateByEvent(`onOpenExternalUri:${targetUri.scheme}`);
35
36
  for (const [id, openerMetadata] of this._registeredOpeners) {
36
- if (( (openerMetadata.schemes.has(targetUri.scheme)))) {
37
+ if (( openerMetadata.schemes.has(targetUri.scheme))) {
37
38
  yield this.createOpener(id, openerMetadata);
38
39
  }
39
40
  }
@@ -51,21 +52,16 @@ let MainThreadUriOpeners = class MainThreadUriOpeners extends Disposable {
51
52
  }
52
53
  catch (e) {
53
54
  if (!isCancellationError(e)) {
54
- const openDefaultAction = ( (new Action('default', ( localize(4546, "Open using default opener")), undefined, undefined, async () => {
55
+ const openDefaultAction = ( new Action('default', ( localize(2302, "Open using default opener")), undefined, undefined, async () => {
55
56
  await this.openerService.open(uri, {
56
57
  allowTunneling: false,
57
58
  allowContributedOpeners: defaultExternalUriOpenerId,
58
59
  });
59
- })));
60
- openDefaultAction.tooltip = ( (uri.toString()));
60
+ }));
61
+ openDefaultAction.tooltip = ( uri.toString());
61
62
  this.notificationService.notify({
62
- severity: Severity$1.Error,
63
- message: ( localize(
64
- 4547,
65
- 'Could not open uri with \'{0}\': {1}',
66
- id,
67
- (e.toString())
68
- )),
63
+ severity: Severity.Error,
64
+ message: ( localize(2303, 'Could not open uri with \'{0}\': {1}', id, (e.toString()))),
69
65
  actions: {
70
66
  primary: [
71
67
  openDefaultAction
@@ -79,11 +75,11 @@ let MainThreadUriOpeners = class MainThreadUriOpeners extends Disposable {
79
75
  };
80
76
  }
81
77
  async $registerUriOpener(id, schemes, extensionId, label) {
82
- if (( (this._registeredOpeners.has(id)))) {
83
- throw ( (new Error(`Opener with id '${id}' already registered`)));
78
+ if (( this._registeredOpeners.has(id))) {
79
+ throw ( new Error(`Opener with id '${id}' already registered`));
84
80
  }
85
81
  this._registeredOpeners.set(id, {
86
- schemes: ( (new Set(schemes))),
82
+ schemes: ( new Set(schemes)),
87
83
  label,
88
84
  extensionId,
89
85
  });
@@ -100,11 +96,11 @@ let MainThreadUriOpeners = class MainThreadUriOpeners extends Disposable {
100
96
  };
101
97
  MainThreadUriOpeners = __decorate([
102
98
  extHostNamedCustomer(MainContext.MainThreadUriOpeners),
103
- ( (__param(1, IStorageService))),
104
- ( (__param(2, IExternalUriOpenerService))),
105
- ( (__param(3, IExtensionService))),
106
- ( (__param(4, IOpenerService))),
107
- ( (__param(5, INotificationService)))
99
+ ( __param(1, IStorageService)),
100
+ ( __param(2, IExternalUriOpenerService)),
101
+ ( __param(3, IExtensionService)),
102
+ ( __param(4, IOpenerService)),
103
+ ( __param(5, INotificationService))
108
104
  ], MainThreadUriOpeners);
109
105
 
110
106
  export { MainThreadUriOpeners };
@@ -0,0 +1,17 @@
1
+ import { MainThreadUrlsShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
2
+ import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
3
+ import { IURLService } from "vscode/vscode/vs/platform/url/common/url.service";
4
+ import { URI, UriComponents } from "vscode/vscode/vs/base/common/uri";
5
+ import { IExtensionUrlHandler } from "vscode/vscode/vs/workbench/services/extensions/browser/extensionUrlHandler.service";
6
+ import { ExtensionIdentifier } from "vscode/vscode/vs/platform/extensions/common/extensions";
7
+ export declare class MainThreadUrls implements MainThreadUrlsShape {
8
+ private readonly urlService;
9
+ private readonly extensionUrlHandler;
10
+ private readonly proxy;
11
+ private handlers;
12
+ constructor(context: IExtHostContext, urlService: IURLService, extensionUrlHandler: IExtensionUrlHandler);
13
+ $registerUriHandler(handle: number, extensionId: ExtensionIdentifier, extensionDisplayName: string): Promise<void>;
14
+ $unregisterUriHandler(handle: number): Promise<void>;
15
+ $createAppUri(uri: UriComponents): Promise<URI>;
16
+ dispose(): void;
17
+ }
@@ -1,4 +1,5 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
3
4
  import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
4
5
  import { IURLService } from 'vscode/vscode/vs/platform/url/common/url.service';
@@ -0,0 +1,6 @@
1
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
2
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
3
+ import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
4
+ export declare class MainThreadWebviewManager extends Disposable {
5
+ constructor(context: IExtHostContext, instantiationService: IInstantiationService);
6
+ }
@@ -1,4 +1,5 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
3
4
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
4
5
  import { MainThreadCustomEditors } from './mainThreadCustomEditors.js';
@@ -0,0 +1,42 @@
1
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
2
+ import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
3
+ import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
4
+ import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
5
+ import { MainThreadWebviews } from "./mainThreadWebviews.js";
6
+ import * as extHostProtocol from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
7
+ import { WebviewInput } from "@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput";
8
+ import { IWebviewWorkbenchService } from "vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
9
+ import { IEditorGroupsService } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
10
+ import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
11
+ import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
12
+ import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
13
+ export declare class MainThreadWebviewPanels extends Disposable implements extHostProtocol.MainThreadWebviewPanelsShape {
14
+ private readonly _mainThreadWebviews;
15
+ private readonly _configurationService;
16
+ private readonly _editorGroupService;
17
+ private readonly _editorService;
18
+ private readonly _telemetryService;
19
+ private readonly _webviewWorkbenchService;
20
+ private readonly webviewPanelViewType;
21
+ private readonly _proxy;
22
+ private readonly _webviewInputs;
23
+ private readonly _revivers;
24
+ private readonly webviewOriginStore;
25
+ constructor(context: IExtHostContext, _mainThreadWebviews: MainThreadWebviews, _configurationService: IConfigurationService, _editorGroupService: IEditorGroupsService, _editorService: IEditorService, extensionService: IExtensionService, storageService: IStorageService, _telemetryService: ITelemetryService, _webviewWorkbenchService: IWebviewWorkbenchService);
26
+ get webviewInputs(): Iterable<WebviewInput>;
27
+ addWebviewInput(handle: extHostProtocol.WebviewHandle, input: WebviewInput, options: {
28
+ serializeBuffersForPostMessage: boolean;
29
+ }): void;
30
+ $createWebviewPanel(extensionData: extHostProtocol.WebviewExtensionDescription, handle: extHostProtocol.WebviewHandle, viewType: string, initData: extHostProtocol.IWebviewInitData, showOptions: extHostProtocol.WebviewPanelShowOptions): void;
31
+ $disposeWebview(handle: extHostProtocol.WebviewHandle): void;
32
+ $setTitle(handle: extHostProtocol.WebviewHandle, value: string): void;
33
+ $setIconPath(handle: extHostProtocol.WebviewHandle, value: extHostProtocol.IWebviewIconPath | undefined): void;
34
+ $reveal(handle: extHostProtocol.WebviewHandle, showOptions: extHostProtocol.WebviewPanelShowOptions): void;
35
+ private getTargetGroupFromShowOptions;
36
+ $registerSerializer(viewType: string, options: {
37
+ serializeBuffersForPostMessage: boolean;
38
+ }): void;
39
+ $unregisterSerializer(viewType: string): void;
40
+ private updateWebviewViewStates;
41
+ private tryGetWebviewInput;
42
+ }
@@ -1,4 +1,5 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
3
4
  import { Event } from 'vscode/vscode/vs/base/common/event';
4
5
  import { Disposable, DisposableMap } from 'vscode/vscode/vs/base/common/lifecycle';
@@ -9,12 +10,12 @@ import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storag
9
10
  import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
10
11
  import { reviveWebviewExtension, reviveWebviewContentOptions } from './mainThreadWebviews.js';
11
12
  import { ExtHostContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
12
- import { DiffEditorInput } from 'vscode/vscode/vs/workbench/common/editor/diffEditorInput';
13
- import { ExtensionKeyedWebviewOriginStore } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview';
14
- import { WebviewInput } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
13
+ import { DiffEditorInput } from '@codingame/monaco-vscode-5108c2c9-4ada-52d8-8c4b-fe03b3160e71-common/vscode/vs/workbench/common/editor/diffEditorInput';
14
+ import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webview/browser/webview';
15
+ import { WebviewInput } from '@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
15
16
  import { IWebviewWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
16
- import { editorGroupToColumn } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupColumn';
17
- import { preferredSideBySideGroupDirection } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
17
+ import { editorGroupToColumn } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
18
+ import { GroupsOrder, GroupLocation, preferredSideBySideGroupDirection } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
18
19
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
19
20
  import { ACTIVE_GROUP, SIDE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
20
21
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
@@ -160,11 +161,11 @@ let MainThreadWebviewPanels = class MainThreadWebviewPanels extends Disposable {
160
161
  return SIDE_GROUP;
161
162
  }
162
163
  if (showOptions.viewColumn >= 0) {
163
- const groupInColumn = this._editorGroupService.getGroups(2 )[showOptions.viewColumn];
164
+ const groupInColumn = this._editorGroupService.getGroups(GroupsOrder.GRID_APPEARANCE)[showOptions.viewColumn];
164
165
  if (groupInColumn) {
165
166
  return groupInColumn.id;
166
167
  }
167
- const newGroup = this._editorGroupService.findGroup({ location: 1 });
168
+ const newGroup = this._editorGroupService.findGroup({ location: GroupLocation.LAST });
168
169
  if (newGroup) {
169
170
  const direction = preferredSideBySideGroupDirection(this._configurationService);
170
171
  return this._editorGroupService.addGroup(newGroup, direction);
@@ -0,0 +1,26 @@
1
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
2
+ import { MainThreadWebviews } from "./mainThreadWebviews.js";
3
+ import * as extHostProtocol from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
4
+ import { IViewBadge } from "vscode/vscode/vs/workbench/common/views";
5
+ import { IWebviewViewService } from "vscode/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService.service";
6
+ import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
7
+ import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
8
+ export declare class MainThreadWebviewsViews extends Disposable implements extHostProtocol.MainThreadWebviewViewsShape {
9
+ private readonly mainThreadWebviews;
10
+ private readonly _telemetryService;
11
+ private readonly _webviewViewService;
12
+ private readonly _proxy;
13
+ private readonly _webviewViews;
14
+ private readonly _webviewViewProviders;
15
+ constructor(context: IExtHostContext, mainThreadWebviews: MainThreadWebviews, _telemetryService: ITelemetryService, _webviewViewService: IWebviewViewService);
16
+ $setWebviewViewTitle(handle: extHostProtocol.WebviewHandle, value: string | undefined): void;
17
+ $setWebviewViewDescription(handle: extHostProtocol.WebviewHandle, value: string | undefined): void;
18
+ $setWebviewViewBadge(handle: string, badge: IViewBadge | undefined): void;
19
+ $show(handle: extHostProtocol.WebviewHandle, preserveFocus: boolean): void;
20
+ $registerWebviewViewProvider(extensionData: extHostProtocol.WebviewExtensionDescription, viewType: string, options: {
21
+ retainContextWhenHidden?: boolean;
22
+ serializeBuffersForPostMessage: boolean;
23
+ }): void;
24
+ $unregisterWebviewViewProvider(viewType: string): void;
25
+ private getWebviewView;
26
+ }
@@ -1,4 +1,5 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
3
4
  import { Disposable, DisposableMap } from 'vscode/vscode/vs/base/common/lifecycle';
4
5
  import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
@@ -0,0 +1,29 @@
1
+ import { VSBuffer } from "vscode/vscode/vs/base/common/buffer";
2
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
3
+ import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
4
+ import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
5
+ import * as extHostProtocol from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
6
+ import { IOverlayWebview, WebviewContentOptions, WebviewExtensionDescription } from "@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/webview/browser/webview";
7
+ import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
8
+ export declare class MainThreadWebviews extends Disposable implements extHostProtocol.MainThreadWebviewsShape {
9
+ private readonly _openerService;
10
+ private readonly _productService;
11
+ private static readonly standardSupportedLinkSchemes;
12
+ private readonly _proxy;
13
+ private readonly _webviews;
14
+ constructor(context: IExtHostContext, _openerService: IOpenerService, _productService: IProductService);
15
+ addWebview(handle: extHostProtocol.WebviewHandle, webview: IOverlayWebview, options: {
16
+ serializeBuffersForPostMessage: boolean;
17
+ }): void;
18
+ $setHtml(handle: extHostProtocol.WebviewHandle, value: string): void;
19
+ $setOptions(handle: extHostProtocol.WebviewHandle, options: extHostProtocol.IWebviewContentOptions): void;
20
+ $postMessage(handle: extHostProtocol.WebviewHandle, jsonMessage: string, ...buffers: VSBuffer[]): Promise<boolean>;
21
+ private hookupWebviewEventDelegate;
22
+ private onDidClickLink;
23
+ private isSupportedLink;
24
+ private tryGetWebview;
25
+ private getWebview;
26
+ getWebviewResolvedFailedContent(viewType: string): string;
27
+ }
28
+ export declare function reviveWebviewExtension(extensionData: extHostProtocol.WebviewExtensionDescription): WebviewExtensionDescription;
29
+ export declare function reviveWebviewContentOptions(webviewOptions: extHostProtocol.IWebviewContentOptions): WebviewContentOptions;
@@ -1,4 +1,5 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
3
4
  import { Schemas } from 'vscode/vscode/vs/base/common/network';
4
5
  import { isWeb } from 'vscode/vscode/vs/base/common/platform';
@@ -14,23 +15,23 @@ import { SerializableObjectWithBuffers } from 'vscode/vscode/vs/workbench/servic
14
15
  var MainThreadWebviews_1;
15
16
  let MainThreadWebviews = class MainThreadWebviews extends Disposable {
16
17
  static { MainThreadWebviews_1 = this; }
17
- static { this.standardSupportedLinkSchemes = ( (new Set([
18
+ static { this.standardSupportedLinkSchemes = ( new Set([
18
19
  Schemas.http,
19
20
  Schemas.https,
20
21
  Schemas.mailto,
21
22
  Schemas.vscode,
22
23
  'vscode-insider',
23
- ]))); }
24
+ ])); }
24
25
  constructor(context, _openerService, _productService) {
25
26
  super();
26
27
  this._openerService = _openerService;
27
28
  this._productService = _productService;
28
- this._webviews = ( (new Map()));
29
- this._proxy = ( (context.getProxy(ExtHostContext.ExtHostWebviews)));
29
+ this._webviews = ( new Map());
30
+ this._proxy = ( context.getProxy(ExtHostContext.ExtHostWebviews));
30
31
  }
31
32
  addWebview(handle, webview, options) {
32
- if (( (this._webviews.has(handle)))) {
33
- throw ( (new Error('Webview already registered')));
33
+ if (( this._webviews.has(handle))) {
34
+ throw ( new Error('Webview already registered'));
34
35
  }
35
36
  this._webviews.set(handle, webview);
36
37
  this.hookupWebviewEventDelegate(handle, webview, options);
@@ -53,11 +54,11 @@ let MainThreadWebviews = class MainThreadWebviews extends Disposable {
53
54
  return webview.postMessage(message, arrayBuffers);
54
55
  }
55
56
  hookupWebviewEventDelegate(handle, webview, options) {
56
- const disposables = ( (new DisposableStore()));
57
+ const disposables = ( new DisposableStore());
57
58
  disposables.add(webview.onDidClickLink((uri) => this.onDidClickLink(handle, uri)));
58
59
  disposables.add(webview.onMessage((message) => {
59
60
  const serialized = serializeWebviewMessage(message.message, options);
60
- this._proxy.$onMessage(handle, serialized.message, ( (new SerializableObjectWithBuffers(serialized.buffers))));
61
+ this._proxy.$onMessage(handle, serialized.message, ( new SerializableObjectWithBuffers(serialized.buffers)));
61
62
  }));
62
63
  disposables.add(webview.onMissingCsp((extension) => this._proxy.$onMissingCsp(handle, extension.value)));
63
64
  disposables.add(webview.onDidDispose(() => {
@@ -67,12 +68,12 @@ let MainThreadWebviews = class MainThreadWebviews extends Disposable {
67
68
  }
68
69
  onDidClickLink(handle, link) {
69
70
  const webview = this.getWebview(handle);
70
- if (this.isSupportedLink(webview, ( (URI.parse(link))))) {
71
+ if (this.isSupportedLink(webview, ( URI.parse(link)))) {
71
72
  this._openerService.open(link, { fromUserGesture: true, allowContributedOpeners: true, allowCommands: Array.isArray(webview.contentOptions.enableCommandUris) || webview.contentOptions.enableCommandUris === true, fromWorkspace: true });
72
73
  }
73
74
  }
74
75
  isSupportedLink(webview, link) {
75
- if (( (MainThreadWebviews_1.standardSupportedLinkSchemes.has(link.scheme)))) {
76
+ if (( MainThreadWebviews_1.standardSupportedLinkSchemes.has(link.scheme))) {
76
77
  return true;
77
78
  }
78
79
  if (!isWeb && this._productService.urlProtocol === link.scheme) {
@@ -92,7 +93,7 @@ let MainThreadWebviews = class MainThreadWebviews extends Disposable {
92
93
  getWebview(handle) {
93
94
  const webview = this.tryGetWebview(handle);
94
95
  if (!webview) {
95
- throw ( (new Error(`Unknown webview handle:${handle}`)));
96
+ throw ( new Error(`Unknown webview handle:${handle}`));
96
97
  }
97
98
  return webview;
98
99
  }
@@ -103,14 +104,14 @@ let MainThreadWebviews = class MainThreadWebviews extends Disposable {
103
104
  <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
104
105
  <meta http-equiv="Content-Security-Policy" content="default-src 'none';">
105
106
  </head>
106
- <body>${( localize(9984, "An error occurred while loading view: {0}", escape(viewType)))}</body>
107
+ <body>${( localize(2304, "An error occurred while loading view: {0}", escape(viewType)))}</body>
107
108
  </html>`;
108
109
  }
109
110
  };
110
- MainThreadWebviews = MainThreadWebviews_1 = ( (__decorate([
111
- ( (__param(1, IOpenerService))),
112
- ( (__param(2, IProductService)))
113
- ], MainThreadWebviews)));
111
+ MainThreadWebviews = MainThreadWebviews_1 = ( __decorate([
112
+ ( __param(1, IOpenerService)),
113
+ ( __param(2, IProductService))
114
+ ], MainThreadWebviews));
114
115
  function reviveWebviewExtension(extensionData) {
115
116
  return {
116
117
  id: extensionData.id,
@@ -122,7 +123,7 @@ function reviveWebviewContentOptions(webviewOptions) {
122
123
  allowScripts: webviewOptions.enableScripts,
123
124
  allowForms: webviewOptions.enableForms,
124
125
  enableCommandUris: webviewOptions.enableCommandUris,
125
- localResourceRoots: Array.isArray(webviewOptions.localResourceRoots) ? ( (webviewOptions.localResourceRoots.map(r => URI.revive(r)))) : undefined,
126
+ localResourceRoots: Array.isArray(webviewOptions.localResourceRoots) ? ( webviewOptions.localResourceRoots.map(r => URI.revive(r))) : undefined,
126
127
  portMapping: webviewOptions.portMapping,
127
128
  };
128
129
  }
@@ -0,0 +1,22 @@
1
+ import { UriComponents } from "vscode/vscode/vs/base/common/uri";
2
+ import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
3
+ import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
4
+ import { IOpenUriOptions, MainThreadWindowShape } from "vscode/vscode/vs/workbench/api/common/extHost.protocol";
5
+ import { IHostService } from "vscode/vscode/vs/workbench/services/host/browser/host.service";
6
+ import { IUserActivityService } from "vscode/vscode/vs/workbench/services/userActivity/common/userActivityService.service";
7
+ export declare class MainThreadWindow implements MainThreadWindowShape {
8
+ private readonly hostService;
9
+ private readonly openerService;
10
+ private readonly userActivityService;
11
+ private readonly proxy;
12
+ private readonly disposables;
13
+ constructor(extHostContext: IExtHostContext, hostService: IHostService, openerService: IOpenerService, userActivityService: IUserActivityService);
14
+ dispose(): void;
15
+ registerNativeHandle(): void;
16
+ $getInitialState(): Promise<{
17
+ isFocused: boolean;
18
+ isActive: boolean;
19
+ }>;
20
+ $openUri(uriComponents: UriComponents, uriString: string | undefined, options: IOpenUriOptions): Promise<boolean>;
21
+ $asExternalUri(uriComponents: UriComponents, options: IOpenUriOptions): Promise<UriComponents>;
22
+ }
@@ -1,4 +1,5 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { Event } from 'vscode/vscode/vs/base/common/event';
3
4
  import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
4
5
  import { URI } from 'vscode/vscode/vs/base/common/uri';
@@ -7,6 +8,7 @@ import { extHostNamedCustomer } from '../../services/extensions/common/extHostCu
7
8
  import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
8
9
  import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
9
10
  import { IUserActivityService } from 'vscode/vscode/vs/workbench/services/userActivity/common/userActivityService.service';
11
+ import { encodeBase64 } from 'vscode/vscode/vs/base/common/buffer';
10
12
 
11
13
  let MainThreadWindow = class MainThreadWindow {
12
14
  constructor(extHostContext, hostService, openerService, userActivityService) {
@@ -17,10 +19,17 @@ let MainThreadWindow = class MainThreadWindow {
17
19
  this.proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostWindow));
18
20
  Event.latch(hostService.onDidChangeFocus)(this.proxy.$onDidChangeWindowFocus, this.proxy, this.disposables);
19
21
  userActivityService.onDidChangeIsActive(this.proxy.$onDidChangeWindowActive, this.proxy, this.disposables);
22
+ this.registerNativeHandle();
20
23
  }
21
24
  dispose() {
22
25
  this.disposables.dispose();
23
26
  }
27
+ registerNativeHandle() {
28
+ Event.latch(this.hostService.onDidChangeActiveWindow)(async (windowId) => {
29
+ const handle = await this.hostService.getNativeWindowHandle(windowId);
30
+ this.proxy.$onDidChangeActiveNativeWindowHandle(handle ? encodeBase64(handle) : undefined);
31
+ }, this, this.disposables);
32
+ }
24
33
  $getInitialState() {
25
34
  return Promise.resolve({
26
35
  isFocused: this.hostService.hasFocus,