@vscode/chat-lib 0.0.1 → 0.0.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 (391) hide show
  1. package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts.map +1 -1
  2. package/dist/src/_internal/extension/xtab/common/promptCrafting.js +6 -5
  3. package/dist/src/_internal/extension/xtab/common/promptCrafting.js.map +1 -1
  4. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +1 -0
  5. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -1
  6. package/dist/src/_internal/platform/configuration/common/configurationService.js +1 -0
  7. package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -1
  8. package/dist/src/_internal/platform/env/common/envService.d.ts +5 -0
  9. package/dist/src/_internal/platform/env/common/envService.d.ts.map +1 -1
  10. package/dist/src/_internal/platform/env/common/envService.js +2 -1
  11. package/dist/src/_internal/platform/env/common/envService.js.map +1 -1
  12. package/dist/src/_internal/platform/env/common/nullEnvService.d.ts +3 -0
  13. package/dist/src/_internal/platform/env/common/nullEnvService.d.ts.map +1 -1
  14. package/dist/src/_internal/platform/env/common/nullEnvService.js +8 -1
  15. package/dist/src/_internal/platform/env/common/nullEnvService.js.map +1 -1
  16. package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.d.ts +7 -0
  17. package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.d.ts.map +1 -1
  18. package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.js +1 -0
  19. package/dist/src/_internal/platform/telemetry/common/nullExperimentationService.js.map +1 -1
  20. package/dist/src/_internal/util/common/test/shims/chatTypes.d.ts +8 -0
  21. package/dist/src/_internal/util/common/test/shims/chatTypes.d.ts.map +1 -1
  22. package/dist/src/_internal/util/common/test/shims/chatTypes.js +19 -1
  23. package/dist/src/_internal/util/common/test/shims/chatTypes.js.map +1 -1
  24. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.d.ts.map +1 -1
  25. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js +8 -1
  26. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js.map +1 -1
  27. package/dist/src/_internal/vscodeTypes.d.ts +4 -0
  28. package/dist/src/_internal/vscodeTypes.d.ts.map +1 -1
  29. package/dist/src/_internal/vscodeTypes.js +5 -1
  30. package/dist/src/_internal/vscodeTypes.js.map +1 -1
  31. package/dist/src/main.d.ts +5 -0
  32. package/dist/src/main.d.ts.map +1 -1
  33. package/dist/src/main.js +12 -0
  34. package/dist/src/main.js.map +1 -1
  35. package/dist/src/package.json +46 -19
  36. package/package.json +3 -6
  37. package/src/_internal/extension/byok/node/openAIEndpoint.ts +0 -171
  38. package/src/_internal/extension/common/constants.ts +0 -90
  39. package/src/_internal/extension/inlineEdits/common/delayer.ts +0 -108
  40. package/src/_internal/extension/inlineEdits/common/editRebase.ts +0 -268
  41. package/src/_internal/extension/inlineEdits/common/ghNearbyNesProvider.tsx +0 -163
  42. package/src/_internal/extension/inlineEdits/common/nearbyCursorInlineEditProvider.ts +0 -225
  43. package/src/_internal/extension/inlineEdits/common/rejectionCollector.ts +0 -164
  44. package/src/_internal/extension/inlineEdits/node/debugRecorder.ts +0 -205
  45. package/src/_internal/extension/inlineEdits/node/importFiltering.ts +0 -25
  46. package/src/_internal/extension/inlineEdits/node/nesConfigs.ts +0 -12
  47. package/src/_internal/extension/inlineEdits/node/nextEditCache.ts +0 -278
  48. package/src/_internal/extension/inlineEdits/node/nextEditProvider.ts +0 -778
  49. package/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.ts +0 -983
  50. package/src/_internal/extension/inlineEdits/node/nextEditResult.ts +0 -40
  51. package/src/_internal/extension/prompt/common/importStatement.ts +0 -25
  52. package/src/_internal/extension/prompt/node/chatMLFetcher.ts +0 -706
  53. package/src/_internal/extension/prompts/node/inline/summarizedDocument/fragments.ts +0 -146
  54. package/src/_internal/extension/prompts/node/inline/summarizedDocument/implementation.ts +0 -527
  55. package/src/_internal/extension/prompts/node/inline/summarizedDocument/projectedText.ts +0 -76
  56. package/src/_internal/extension/prompts/node/inline/visualization.ts +0 -65
  57. package/src/_internal/extension/vscode.proposed.activeComment.d.ts +0 -23
  58. package/src/_internal/extension/vscode.proposed.aiRelatedInformation.d.ts +0 -49
  59. package/src/_internal/extension/vscode.proposed.aiSettingsSearch.d.ts +0 -31
  60. package/src/_internal/extension/vscode.proposed.aiTextSearchProvider.d.ts +0 -41
  61. package/src/_internal/extension/vscode.proposed.authLearnMore.d.ts +0 -16
  62. package/src/_internal/extension/vscode.proposed.chatBinaryReferenceData.d.ts +0 -41
  63. package/src/_internal/extension/vscode.proposed.chatEditing.d.ts +0 -29
  64. package/src/_internal/extension/vscode.proposed.chatParticipantAdditions.d.ts +0 -636
  65. package/src/_internal/extension/vscode.proposed.chatParticipantPrivate.d.ts +0 -276
  66. package/src/_internal/extension/vscode.proposed.chatProvider.d.ts +0 -62
  67. package/src/_internal/extension/vscode.proposed.chatReadonlyPromptReference.d.ts +0 -17
  68. package/src/_internal/extension/vscode.proposed.chatReferenceDiagnostic.d.ts +0 -23
  69. package/src/_internal/extension/vscode.proposed.chatSessionsProvider.d.ts +0 -218
  70. package/src/_internal/extension/vscode.proposed.chatStatusItem.d.ts +0 -61
  71. package/src/_internal/extension/vscode.proposed.codeActionAI.d.ts +0 -16
  72. package/src/_internal/extension/vscode.proposed.commentReveal.d.ts +0 -32
  73. package/src/_internal/extension/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts +0 -8
  74. package/src/_internal/extension/vscode.proposed.contribCommentsViewThreadMenus.d.ts +0 -6
  75. package/src/_internal/extension/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +0 -7
  76. package/src/_internal/extension/vscode.proposed.dataChannels.d.ts +0 -19
  77. package/src/_internal/extension/vscode.proposed.defaultChatParticipant.d.ts +0 -52
  78. package/src/_internal/extension/vscode.proposed.documentFiltersExclusive.d.ts +0 -13
  79. package/src/_internal/extension/vscode.proposed.embeddings.d.ts +0 -33
  80. package/src/_internal/extension/vscode.proposed.extensionsAny.d.ts +0 -40
  81. package/src/_internal/extension/vscode.proposed.findFiles2.d.ts +0 -125
  82. package/src/_internal/extension/vscode.proposed.findTextInFiles.d.ts +0 -104
  83. package/src/_internal/extension/vscode.proposed.findTextInFiles2.d.ts +0 -144
  84. package/src/_internal/extension/vscode.proposed.inlineCompletionsAdditions.d.ts +0 -202
  85. package/src/_internal/extension/vscode.proposed.interactive.d.ts +0 -11
  86. package/src/_internal/extension/vscode.proposed.languageModelCapabilities.d.ts +0 -25
  87. package/src/_internal/extension/vscode.proposed.languageModelDataPart.d.ts +0 -163
  88. package/src/_internal/extension/vscode.proposed.languageModelSystem.d.ts +0 -17
  89. package/src/_internal/extension/vscode.proposed.languageModelThinkingPart.d.ts +0 -49
  90. package/src/_internal/extension/vscode.proposed.languageModelToolResultAudience.d.ts +0 -36
  91. package/src/_internal/extension/vscode.proposed.mappedEditsProvider.d.ts +0 -110
  92. package/src/_internal/extension/vscode.proposed.newSymbolNamesProvider.d.ts +0 -47
  93. package/src/_internal/extension/vscode.proposed.readonlyMessage.d.ts +0 -14
  94. package/src/_internal/extension/vscode.proposed.resolvers.d.ts +0 -475
  95. package/src/_internal/extension/vscode.proposed.scmInputBoxValueProvider.d.ts +0 -25
  96. package/src/_internal/extension/vscode.proposed.taskProblemMatcherStatus.d.ts +0 -42
  97. package/src/_internal/extension/vscode.proposed.terminalDataWriteEvent.d.ts +0 -32
  98. package/src/_internal/extension/vscode.proposed.terminalExecuteCommandEvent.d.ts +0 -48
  99. package/src/_internal/extension/vscode.proposed.terminalQuickFixProvider.d.ts +0 -87
  100. package/src/_internal/extension/vscode.proposed.terminalSelection.d.ts +0 -16
  101. package/src/_internal/extension/vscode.proposed.testObserver.d.ts +0 -199
  102. package/src/_internal/extension/vscode.proposed.textDocumentChangeReason.d.ts +0 -30
  103. package/src/_internal/extension/vscode.proposed.textSearchProvider.d.ts +0 -281
  104. package/src/_internal/extension/vscode.proposed.textSearchProvider2.d.ts +0 -297
  105. package/src/_internal/extension/xtab/common/promptCrafting.ts +0 -670
  106. package/src/_internal/extension/xtab/node/xtabEndpoint.ts +0 -102
  107. package/src/_internal/extension/xtab/node/xtabProvider.ts +0 -976
  108. package/src/_internal/extension/xtab/node/xtabUtils.ts +0 -62
  109. package/src/_internal/platform/authentication/common/authentication.ts +0 -309
  110. package/src/_internal/platform/authentication/common/copilotToken.ts +0 -300
  111. package/src/_internal/platform/authentication/common/copilotTokenManager.ts +0 -59
  112. package/src/_internal/platform/authentication/common/copilotTokenStore.ts +0 -40
  113. package/src/_internal/platform/authentication/common/staticGitHubAuthenticationService.ts +0 -96
  114. package/src/_internal/platform/authentication/node/copilotTokenManager.ts +0 -303
  115. package/src/_internal/platform/chat/common/chatMLFetcher.ts +0 -124
  116. package/src/_internal/platform/chat/common/chatQuotaService.ts +0 -63
  117. package/src/_internal/platform/chat/common/chatQuotaServiceImpl.ts +0 -96
  118. package/src/_internal/platform/chat/common/commonTypes.ts +0 -353
  119. package/src/_internal/platform/chat/common/conversationOptions.ts +0 -16
  120. package/src/_internal/platform/chat/common/globalStringUtils.ts +0 -54
  121. package/src/_internal/platform/chat/common/interactionService.ts +0 -35
  122. package/src/_internal/platform/configuration/common/configurationService.ts +0 -803
  123. package/src/_internal/platform/configuration/common/defaultsOnlyConfigurationService.ts +0 -39
  124. package/src/_internal/platform/configuration/common/jsonSchema.ts +0 -139
  125. package/src/_internal/platform/configuration/common/validator.ts +0 -242
  126. package/src/_internal/platform/diff/common/diffService.ts +0 -41
  127. package/src/_internal/platform/diff/common/diffWorker.ts +0 -83
  128. package/src/_internal/platform/diff/node/diffServiceImpl.ts +0 -85
  129. package/src/_internal/platform/editing/common/abstractText.ts +0 -177
  130. package/src/_internal/platform/editing/common/notebookDocumentSnapshot.ts +0 -122
  131. package/src/_internal/platform/editing/common/positionOffsetTransformer.ts +0 -202
  132. package/src/_internal/platform/editing/common/textDocumentSnapshot.ts +0 -274
  133. package/src/_internal/platform/endpoint/common/capiClient.ts +0 -37
  134. package/src/_internal/platform/endpoint/common/chatModelCapabilities.ts +0 -115
  135. package/src/_internal/platform/endpoint/common/domainService.ts +0 -27
  136. package/src/_internal/platform/endpoint/common/endpointProvider.ts +0 -104
  137. package/src/_internal/platform/endpoint/common/endpointTypes.ts +0 -12
  138. package/src/_internal/platform/endpoint/common/licenseAgreement.ts +0 -11
  139. package/src/_internal/platform/endpoint/common/statefulMarkerContainer.tsx +0 -85
  140. package/src/_internal/platform/endpoint/common/thinkingDataContainer.tsx +0 -44
  141. package/src/_internal/platform/endpoint/node/capiClientImpl.ts +0 -18
  142. package/src/_internal/platform/endpoint/node/chatEndpoint.ts +0 -435
  143. package/src/_internal/platform/endpoint/node/domainServiceImpl.ts +0 -80
  144. package/src/_internal/platform/endpoint/node/proxyXtabEndpoint.ts +0 -43
  145. package/src/_internal/platform/endpoint/node/responsesApi.ts +0 -326
  146. package/src/_internal/platform/env/common/envService.ts +0 -134
  147. package/src/_internal/platform/env/common/nullEnvService.ts +0 -68
  148. package/src/_internal/platform/env/common/packagejson.ts +0 -49
  149. package/src/_internal/platform/git/common/gitExtensionService.ts +0 -21
  150. package/src/_internal/platform/git/common/nullGitExtensionService.ts +0 -20
  151. package/src/_internal/platform/git/vscode/git.d.ts +0 -414
  152. package/src/_internal/platform/github/common/githubAPI.ts +0 -44
  153. package/src/_internal/platform/github/common/githubService.ts +0 -87
  154. package/src/_internal/platform/github/common/nullOctokitServiceImpl.ts +0 -21
  155. package/src/_internal/platform/ignore/common/ignoreService.ts +0 -72
  156. package/src/_internal/platform/inlineCompletions/common/api.ts +0 -198
  157. package/src/_internal/platform/inlineEdits/common/dataTypes/diagnosticData.ts +0 -32
  158. package/src/_internal/platform/inlineEdits/common/dataTypes/documentId.ts +0 -52
  159. package/src/_internal/platform/inlineEdits/common/dataTypes/edit.ts +0 -165
  160. package/src/_internal/platform/inlineEdits/common/dataTypes/editUtils.ts +0 -74
  161. package/src/_internal/platform/inlineEdits/common/dataTypes/fetchCancellationError.ts +0 -14
  162. package/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.ts +0 -107
  163. package/src/_internal/platform/inlineEdits/common/dataTypes/languageId.ts +0 -14
  164. package/src/_internal/platform/inlineEdits/common/dataTypes/permutation.ts +0 -69
  165. package/src/_internal/platform/inlineEdits/common/dataTypes/rootedLineEdit.ts +0 -49
  166. package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.ts +0 -74
  167. package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/combineTextEditInfos.ts +0 -132
  168. package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/length.ts +0 -184
  169. package/src/_internal/platform/inlineEdits/common/dataTypes/textEditLengthHelper/textEditInfo.ts +0 -32
  170. package/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.ts +0 -89
  171. package/src/_internal/platform/inlineEdits/common/debugRecorderBookmark.ts +0 -10
  172. package/src/_internal/platform/inlineEdits/common/editReason.ts +0 -134
  173. package/src/_internal/platform/inlineEdits/common/inlineEditLogContext.ts +0 -490
  174. package/src/_internal/platform/inlineEdits/common/observableGit.ts +0 -49
  175. package/src/_internal/platform/inlineEdits/common/observableWorkspace.ts +0 -239
  176. package/src/_internal/platform/inlineEdits/common/responseProcessor.ts +0 -249
  177. package/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.ts +0 -468
  178. package/src/_internal/platform/inlineEdits/common/statelessNextEditProviders.ts +0 -59
  179. package/src/_internal/platform/inlineEdits/common/utils/observable.ts +0 -54
  180. package/src/_internal/platform/inlineEdits/common/utils/stringifyChatMessages.ts +0 -29
  181. package/src/_internal/platform/inlineEdits/common/utils/utils.ts +0 -56
  182. package/src/_internal/platform/inlineEdits/common/workspaceEditTracker/historyContextProvider.ts +0 -60
  183. package/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesHistoryContextProvider.ts +0 -353
  184. package/src/_internal/platform/inlineEdits/common/workspaceEditTracker/nesXtabHistoryTracker.ts +0 -176
  185. package/src/_internal/platform/languageContextProvider/common/languageContextProviderService.ts +0 -25
  186. package/src/_internal/platform/languageContextProvider/common/nullLanguageContextProviderService.ts +0 -38
  187. package/src/_internal/platform/languageServer/common/languageContextService.ts +0 -186
  188. package/src/_internal/platform/languages/common/languageDiagnosticsService.ts +0 -67
  189. package/src/_internal/platform/languages/common/testLanguageDiagnosticsService.ts +0 -28
  190. package/src/_internal/platform/log/common/logService.ts +0 -232
  191. package/src/_internal/platform/nesFetch/common/completionsAPI.ts +0 -78
  192. package/src/_internal/platform/nesFetch/common/completionsFetchService.ts +0 -118
  193. package/src/_internal/platform/nesFetch/common/responseStream.ts +0 -151
  194. package/src/_internal/platform/nesFetch/node/completionsFetchServiceImpl.ts +0 -236
  195. package/src/_internal/platform/nesFetch/node/streamTransformer.ts +0 -95
  196. package/src/_internal/platform/networking/common/fetch.ts +0 -349
  197. package/src/_internal/platform/networking/common/fetcherService.ts +0 -84
  198. package/src/_internal/platform/networking/common/networking.ts +0 -442
  199. package/src/_internal/platform/networking/common/openai.ts +0 -273
  200. package/src/_internal/platform/networking/node/chatStream.ts +0 -137
  201. package/src/_internal/platform/networking/node/stream.ts +0 -749
  202. package/src/_internal/platform/notebook/common/alternativeContent.ts +0 -89
  203. package/src/_internal/platform/notebook/common/alternativeContentFormat.ts +0 -10
  204. package/src/_internal/platform/notebook/common/alternativeContentProvider.json.ts +0 -262
  205. package/src/_internal/platform/notebook/common/alternativeContentProvider.text.ts +0 -243
  206. package/src/_internal/platform/notebook/common/alternativeContentProvider.ts +0 -41
  207. package/src/_internal/platform/notebook/common/alternativeContentProvider.xml.ts +0 -205
  208. package/src/_internal/platform/notebook/common/alternativeNotebookDocument.ts +0 -155
  209. package/src/_internal/platform/notebook/common/helpers.ts +0 -212
  210. package/src/_internal/platform/notebook/common/notebookService.ts +0 -43
  211. package/src/_internal/platform/openai/node/fetch.ts +0 -596
  212. package/src/_internal/platform/parser/node/nodes.ts +0 -190
  213. package/src/_internal/platform/requestLogger/node/nullRequestLogger.ts +0 -26
  214. package/src/_internal/platform/requestLogger/node/requestLogger.ts +0 -383
  215. package/src/_internal/platform/simulationTestContext/common/simulationTestContext.ts +0 -29
  216. package/src/_internal/platform/snippy/common/snippyService.ts +0 -25
  217. package/src/_internal/platform/telemetry/common/nullExperimentationService.ts +0 -64
  218. package/src/_internal/platform/telemetry/common/nullTelemetryService.ts +0 -53
  219. package/src/_internal/platform/telemetry/common/telemetry.ts +0 -215
  220. package/src/_internal/platform/telemetry/common/telemetryData.ts +0 -205
  221. package/src/_internal/platform/thinking/common/thinking.ts +0 -61
  222. package/src/_internal/platform/thinking/common/thinkingUtils.ts +0 -57
  223. package/src/_internal/platform/tokenizer/node/parseTikTokens.ts +0 -23
  224. package/src/_internal/platform/tokenizer/node/tikTokenizerImpl.ts +0 -74
  225. package/src/_internal/platform/tokenizer/node/tikTokenizerWorker.ts +0 -24
  226. package/src/_internal/platform/tokenizer/node/tokenizer.ts +0 -357
  227. package/src/_internal/platform/workspace/common/workspaceService.ts +0 -226
  228. package/src/_internal/platform/workspaceRecorder/common/workspaceLog.ts +0 -118
  229. package/src/_internal/util/common/anomalyDetection.ts +0 -112
  230. package/src/_internal/util/common/arrays.ts +0 -81
  231. package/src/_internal/util/common/async.ts +0 -155
  232. package/src/_internal/util/common/cache.ts +0 -183
  233. package/src/_internal/util/common/crypto.ts +0 -41
  234. package/src/_internal/util/common/errors.ts +0 -22
  235. package/src/_internal/util/common/globals.d.ts +0 -12
  236. package/src/_internal/util/common/imageUtils.ts +0 -154
  237. package/src/_internal/util/common/languages.ts +0 -940
  238. package/src/_internal/util/common/notebooks.ts +0 -286
  239. package/src/_internal/util/common/result.ts +0 -71
  240. package/src/_internal/util/common/services.ts +0 -43
  241. package/src/_internal/util/common/test/shims/chatTypes.ts +0 -448
  242. package/src/_internal/util/common/test/shims/editing.ts +0 -233
  243. package/src/_internal/util/common/test/shims/enums.ts +0 -61
  244. package/src/_internal/util/common/test/shims/l10n.ts +0 -37
  245. package/src/_internal/util/common/test/shims/newSymbolName.ts +0 -23
  246. package/src/_internal/util/common/test/shims/terminal.ts +0 -33
  247. package/src/_internal/util/common/test/shims/vscodeTypesShim.ts +0 -115
  248. package/src/_internal/util/common/time.ts +0 -31
  249. package/src/_internal/util/common/tokenizer.ts +0 -30
  250. package/src/_internal/util/common/tracing.ts +0 -52
  251. package/src/_internal/util/common/types.ts +0 -33
  252. package/src/_internal/util/common/variableLengthQuantity.ts +0 -40
  253. package/src/_internal/util/node/worker.ts +0 -130
  254. package/src/_internal/util/vs/base/common/arrays.ts +0 -926
  255. package/src/_internal/util/vs/base/common/arraysFind.ts +0 -206
  256. package/src/_internal/util/vs/base/common/assert.ts +0 -89
  257. package/src/_internal/util/vs/base/common/async.ts +0 -2582
  258. package/src/_internal/util/vs/base/common/buffer.ts +0 -501
  259. package/src/_internal/util/vs/base/common/cache.ts +0 -122
  260. package/src/_internal/util/vs/base/common/cancellation.ts +0 -150
  261. package/src/_internal/util/vs/base/common/charCode.ts +0 -452
  262. package/src/_internal/util/vs/base/common/codicons.ts +0 -66
  263. package/src/_internal/util/vs/base/common/codiconsLibrary.ts +0 -618
  264. package/src/_internal/util/vs/base/common/codiconsUtil.ts +0 -30
  265. package/src/_internal/util/vs/base/common/collections.ts +0 -156
  266. package/src/_internal/util/vs/base/common/diff/diff.ts +0 -1317
  267. package/src/_internal/util/vs/base/common/diff/diffChange.ts +0 -62
  268. package/src/_internal/util/vs/base/common/equals.ts +0 -148
  269. package/src/_internal/util/vs/base/common/errors.ts +0 -342
  270. package/src/_internal/util/vs/base/common/event.ts +0 -1782
  271. package/src/_internal/util/vs/base/common/extpath.ts +0 -425
  272. package/src/_internal/util/vs/base/common/filters.ts +0 -928
  273. package/src/_internal/util/vs/base/common/functional.ts +0 -34
  274. package/src/_internal/util/vs/base/common/glob.ts +0 -839
  275. package/src/_internal/util/vs/base/common/hash.ts +0 -326
  276. package/src/_internal/util/vs/base/common/htmlContent.ts +0 -212
  277. package/src/_internal/util/vs/base/common/iconLabels.ts +0 -118
  278. package/src/_internal/util/vs/base/common/iterator.ts +0 -196
  279. package/src/_internal/util/vs/base/common/lazy.ts +0 -59
  280. package/src/_internal/util/vs/base/common/lifecycle.ts +0 -845
  281. package/src/_internal/util/vs/base/common/linkedList.ts +0 -144
  282. package/src/_internal/util/vs/base/common/map.ts +0 -954
  283. package/src/_internal/util/vs/base/common/marshallingIds.ts +0 -35
  284. package/src/_internal/util/vs/base/common/mime.ts +0 -136
  285. package/src/_internal/util/vs/base/common/naturalLanguage/korean.ts +0 -425
  286. package/src/_internal/util/vs/base/common/network.ts +0 -429
  287. package/src/_internal/util/vs/base/common/numbers.ts +0 -166
  288. package/src/_internal/util/vs/base/common/objects.ts +0 -242
  289. package/src/_internal/util/vs/base/common/observable.ts +0 -10
  290. package/src/_internal/util/vs/base/common/observableInternal/base.ts +0 -208
  291. package/src/_internal/util/vs/base/common/observableInternal/changeTracker.ts +0 -96
  292. package/src/_internal/util/vs/base/common/observableInternal/commonFacade/cancellation.ts +0 -9
  293. package/src/_internal/util/vs/base/common/observableInternal/commonFacade/deps.ts +0 -12
  294. package/src/_internal/util/vs/base/common/observableInternal/debugLocation.ts +0 -88
  295. package/src/_internal/util/vs/base/common/observableInternal/debugName.ts +0 -150
  296. package/src/_internal/util/vs/base/common/observableInternal/experimental/utils.ts +0 -62
  297. package/src/_internal/util/vs/base/common/observableInternal/index.ts +0 -61
  298. package/src/_internal/util/vs/base/common/observableInternal/logging/consoleObservableLogger.ts +0 -388
  299. package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerApi.d.ts +0 -154
  300. package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/debuggerRpc.ts +0 -80
  301. package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/devToolsLogger.ts +0 -485
  302. package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/rpc.ts +0 -103
  303. package/src/_internal/util/vs/base/common/observableInternal/logging/debugger/utils.ts +0 -69
  304. package/src/_internal/util/vs/base/common/observableInternal/logging/logging.ts +0 -133
  305. package/src/_internal/util/vs/base/common/observableInternal/map.ts +0 -81
  306. package/src/_internal/util/vs/base/common/observableInternal/observables/baseObservable.ts +0 -172
  307. package/src/_internal/util/vs/base/common/observableInternal/observables/constObservable.ts +0 -44
  308. package/src/_internal/util/vs/base/common/observableInternal/observables/derived.ts +0 -190
  309. package/src/_internal/util/vs/base/common/observableInternal/observables/derivedImpl.ts +0 -445
  310. package/src/_internal/util/vs/base/common/observableInternal/observables/lazyObservableValue.ts +0 -154
  311. package/src/_internal/util/vs/base/common/observableInternal/observables/observableFromEvent.ts +0 -174
  312. package/src/_internal/util/vs/base/common/observableInternal/observables/observableSignal.ts +0 -67
  313. package/src/_internal/util/vs/base/common/observableInternal/observables/observableSignalFromEvent.ts +0 -62
  314. package/src/_internal/util/vs/base/common/observableInternal/observables/observableValue.ts +0 -131
  315. package/src/_internal/util/vs/base/common/observableInternal/observables/observableValueOpts.ts +0 -37
  316. package/src/_internal/util/vs/base/common/observableInternal/reactions/autorun.ts +0 -188
  317. package/src/_internal/util/vs/base/common/observableInternal/reactions/autorunImpl.ts +0 -256
  318. package/src/_internal/util/vs/base/common/observableInternal/set.ts +0 -78
  319. package/src/_internal/util/vs/base/common/observableInternal/transaction.ts +0 -115
  320. package/src/_internal/util/vs/base/common/observableInternal/utils/promise.ts +0 -129
  321. package/src/_internal/util/vs/base/common/observableInternal/utils/runOnChange.ts +0 -65
  322. package/src/_internal/util/vs/base/common/observableInternal/utils/utils.ts +0 -281
  323. package/src/_internal/util/vs/base/common/observableInternal/utils/utilsCancellation.ts +0 -101
  324. package/src/_internal/util/vs/base/common/observableInternal/utils/valueWithChangeEvent.ts +0 -31
  325. package/src/_internal/util/vs/base/common/path.ts +0 -1591
  326. package/src/_internal/util/vs/base/common/platform.ts +0 -282
  327. package/src/_internal/util/vs/base/common/process.ts +0 -78
  328. package/src/_internal/util/vs/base/common/resources.ts +0 -446
  329. package/src/_internal/util/vs/base/common/sequence.ts +0 -36
  330. package/src/_internal/util/vs/base/common/sseParser.ts +0 -247
  331. package/src/_internal/util/vs/base/common/stopwatch.ts +0 -43
  332. package/src/_internal/util/vs/base/common/stream.ts +0 -792
  333. package/src/_internal/util/vs/base/common/strings.ts +0 -1364
  334. package/src/_internal/util/vs/base/common/symbols.ts +0 -11
  335. package/src/_internal/util/vs/base/common/themables.ts +0 -106
  336. package/src/_internal/util/vs/base/common/types.ts +0 -345
  337. package/src/_internal/util/vs/base/common/uint.ts +0 -61
  338. package/src/_internal/util/vs/base/common/uri.ts +0 -752
  339. package/src/_internal/util/vs/base/common/uuid.ts +0 -72
  340. package/src/_internal/util/vs/base-common.d.ts +0 -42
  341. package/src/_internal/util/vs/editor/common/core/editOperation.ts +0 -62
  342. package/src/_internal/util/vs/editor/common/core/edits/edit.ts +0 -399
  343. package/src/_internal/util/vs/editor/common/core/edits/lineEdit.ts +0 -414
  344. package/src/_internal/util/vs/editor/common/core/edits/stringEdit.ts +0 -568
  345. package/src/_internal/util/vs/editor/common/core/edits/textEdit.ts +0 -411
  346. package/src/_internal/util/vs/editor/common/core/position.ts +0 -186
  347. package/src/_internal/util/vs/editor/common/core/range.ts +0 -519
  348. package/src/_internal/util/vs/editor/common/core/ranges/lineRange.ts +0 -416
  349. package/src/_internal/util/vs/editor/common/core/ranges/offsetRange.ts +0 -275
  350. package/src/_internal/util/vs/editor/common/core/text/abstractText.ts +0 -127
  351. package/src/_internal/util/vs/editor/common/core/text/positionToOffset.ts +0 -26
  352. package/src/_internal/util/vs/editor/common/core/text/positionToOffsetImpl.ts +0 -144
  353. package/src/_internal/util/vs/editor/common/core/text/textLength.ts +0 -150
  354. package/src/_internal/util/vs/editor/common/core/wordHelper.ts +0 -177
  355. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.ts +0 -210
  356. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.ts +0 -109
  357. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.ts +0 -178
  358. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.ts +0 -331
  359. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.ts +0 -273
  360. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.ts +0 -475
  361. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.ts +0 -47
  362. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.ts +0 -248
  363. package/src/_internal/util/vs/editor/common/diff/defaultLinesDiffComputer/utils.ts +0 -76
  364. package/src/_internal/util/vs/editor/common/diff/legacyLinesDiffComputer.ts +0 -693
  365. package/src/_internal/util/vs/editor/common/diff/linesDiffComputer.ts +0 -61
  366. package/src/_internal/util/vs/editor/common/diff/rangeMapping.ts +0 -418
  367. package/src/_internal/util/vs/editor/common/model/prefixSumComputer.ts +0 -304
  368. package/src/_internal/util/vs/nls.messages.ts +0 -21
  369. package/src/_internal/util/vs/nls.ts +0 -243
  370. package/src/_internal/util/vs/platform/instantiation/common/descriptors.ts +0 -23
  371. package/src/_internal/util/vs/platform/instantiation/common/graph.ts +0 -113
  372. package/src/_internal/util/vs/platform/instantiation/common/instantiation.ts +0 -127
  373. package/src/_internal/util/vs/platform/instantiation/common/instantiationService.ts +0 -483
  374. package/src/_internal/util/vs/platform/instantiation/common/serviceCollection.ts +0 -34
  375. package/src/_internal/util/vs/vscode-globals-nls.d.ts +0 -42
  376. package/src/_internal/util/vs/vscode-globals-product.d.ts +0 -35
  377. package/src/_internal/util/vs/workbench/api/common/extHostTypes/diagnostic.ts +0 -109
  378. package/src/_internal/util/vs/workbench/api/common/extHostTypes/es5ClassCompat.ts +0 -34
  379. package/src/_internal/util/vs/workbench/api/common/extHostTypes/location.ts +0 -51
  380. package/src/_internal/util/vs/workbench/api/common/extHostTypes/markdownString.ts +0 -83
  381. package/src/_internal/util/vs/workbench/api/common/extHostTypes/notebooks.ts +0 -296
  382. package/src/_internal/util/vs/workbench/api/common/extHostTypes/position.ts +0 -195
  383. package/src/_internal/util/vs/workbench/api/common/extHostTypes/range.ts +0 -167
  384. package/src/_internal/util/vs/workbench/api/common/extHostTypes/selection.ts +0 -94
  385. package/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetString.ts +0 -103
  386. package/src/_internal/util/vs/workbench/api/common/extHostTypes/snippetTextEdit.ts +0 -44
  387. package/src/_internal/util/vs/workbench/api/common/extHostTypes/symbolInformation.ts +0 -89
  388. package/src/_internal/util/vs/workbench/api/common/extHostTypes/textEdit.ts +0 -99
  389. package/src/_internal/vscodeTypes.ts +0 -100
  390. package/src/main.ts +0 -207
  391. package/src/package.json +0 -4063
@@ -1,475 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- declare module 'vscode' {
7
-
8
- //resolvers: @alexdima
9
-
10
- export interface MessageOptions {
11
- /**
12
- * Do not render a native message box.
13
- */
14
- useCustom?: boolean;
15
- }
16
-
17
- export interface RemoteAuthorityResolverContext {
18
- resolveAttempt: number;
19
- /**
20
- * Exec server from a recursively-resolved remote authority. If the
21
- * remote authority includes nested authorities delimited by `@`, it is
22
- * resolved from outer to inner authorities with ExecServer passed down
23
- * to each resolver in the chain.
24
- */
25
- execServer?: ExecServer;
26
- }
27
-
28
- export class ResolvedAuthority {
29
- readonly host: string;
30
- readonly port: number;
31
- readonly connectionToken: string | undefined;
32
-
33
- constructor(host: string, port: number, connectionToken?: string);
34
- }
35
-
36
- export interface ManagedMessagePassing {
37
- onDidReceiveMessage: Event<Uint8Array>;
38
- onDidClose: Event<Error | undefined>;
39
- onDidEnd: Event<void>;
40
-
41
- send: (data: Uint8Array) => void;
42
- end: () => void;
43
- drain?: () => Thenable<void>;
44
- }
45
-
46
- export class ManagedResolvedAuthority {
47
- readonly makeConnection: () => Thenable<ManagedMessagePassing>;
48
- readonly connectionToken: string | undefined;
49
-
50
- constructor(makeConnection: () => Thenable<ManagedMessagePassing>, connectionToken?: string);
51
- }
52
-
53
- export interface ResolvedOptions {
54
- extensionHostEnv?: { [key: string]: string | null };
55
-
56
- isTrusted?: boolean;
57
-
58
- /**
59
- * When provided, remote server will be initialized with the extensions synced using the given user account.
60
- */
61
- authenticationSessionForInitializingExtensions?: AuthenticationSession & { providerId: string };
62
- }
63
-
64
- export interface TunnelPrivacy {
65
- themeIcon: string;
66
- id: string;
67
- label: string;
68
- }
69
-
70
- export namespace env {
71
- /** Quality of the application. May be undefined if running from sources. */
72
- export const appQuality: string | undefined;
73
- /** Commit of the application. May be undefined if running from sources. */
74
- export const appCommit: string | undefined;
75
- }
76
-
77
- export interface TunnelOptions {
78
- remoteAddress: { port: number; host: string };
79
- // The desired local port. If this port can't be used, then another will be chosen.
80
- localAddressPort?: number;
81
- label?: string;
82
- /**
83
- * @deprecated Use privacy instead
84
- */
85
- public?: boolean;
86
- privacy?: string;
87
- protocol?: string;
88
- }
89
-
90
- export interface TunnelDescription {
91
- remoteAddress: { port: number; host: string };
92
- //The complete local address(ex. localhost:1234)
93
- localAddress: { port: number; host: string } | string;
94
- /**
95
- * @deprecated Use privacy instead
96
- */
97
- public?: boolean;
98
- privacy?: string;
99
- // If protocol is not provided it is assumed to be http, regardless of the localAddress.
100
- protocol?: string;
101
- }
102
-
103
- export interface Tunnel extends TunnelDescription {
104
- // Implementers of Tunnel should fire onDidDispose when dispose is called.
105
- onDidDispose: Event<void>;
106
- dispose(): void | Thenable<void>;
107
- }
108
-
109
- /**
110
- * Used as part of the ResolverResult if the extension has any candidate,
111
- * published, or forwarded ports.
112
- */
113
- export interface TunnelInformation {
114
- /**
115
- * Tunnels that are detected by the extension. The remotePort is used for display purposes.
116
- * The localAddress should be the complete local address (ex. localhost:1234) for connecting to the port. Tunnels provided through
117
- * detected are read-only from the forwarded ports UI.
118
- */
119
- environmentTunnels?: TunnelDescription[];
120
-
121
- tunnelFeatures?: {
122
- elevation: boolean;
123
- /**
124
- * One of the options must have the ID "private".
125
- */
126
- privacyOptions: TunnelPrivacy[];
127
- /**
128
- * Defaults to true for backwards compatibility.
129
- */
130
- protocol?: boolean;
131
- };
132
- }
133
-
134
- export interface TunnelCreationOptions {
135
- /**
136
- * True when the local operating system will require elevation to use the requested local port.
137
- */
138
- elevationRequired?: boolean;
139
- }
140
-
141
- export enum CandidatePortSource {
142
- None = 0,
143
- Process = 1,
144
- Output = 2,
145
- Hybrid = 3
146
- }
147
-
148
- export type ResolverResult = (ResolvedAuthority | ManagedResolvedAuthority) & ResolvedOptions & TunnelInformation;
149
-
150
- export class RemoteAuthorityResolverError extends Error {
151
- static NotAvailable(message?: string, handled?: boolean): RemoteAuthorityResolverError;
152
- static TemporarilyNotAvailable(message?: string): RemoteAuthorityResolverError;
153
-
154
- constructor(message?: string);
155
- }
156
-
157
- /**
158
- * An ExecServer allows spawning processes on a remote machine. An ExecServer is provided by resolvers. It can be
159
- * acquired by `workspace.getRemoteExecServer` or from the context when in a resolver (`RemoteAuthorityResolverContext.execServer`).
160
- */
161
- export interface ExecServer {
162
- /**
163
- * Spawns a given subprocess with the given command and arguments.
164
- * @param command The command to execute.
165
- * @param args The arguments to pass to the command.
166
- * @param options Additional options for the spawned process.
167
- * @returns A promise that gives access to the process' stdin, stdout and stderr streams, as well as the process' exit code.
168
- */
169
- spawn(command: string, args: string[], options?: ExecServerSpawnOptions): Thenable<SpawnedCommand>;
170
-
171
- /**
172
- * Spawns an connector that allows to start a remote server. It is assumed the command starts a Code CLI. Additional
173
- * arguments will be passed to the connector.
174
- * @param command The command to execute. It is assumed the command spawns a Code CLI executable.
175
- * @param args The arguments to pass to the connector
176
- * @param options Additional options for the spawned process.
177
- * @returns A promise that gives access to the spawned {@link RemoteServerConnector}. It also provides a stream to which standard
178
- * log messages are written.
179
- */
180
- spawnRemoteServerConnector?(command: string, args: string[], options?: ExecServerSpawnOptions): Thenable<RemoteServerConnector>;
181
-
182
- /**
183
- * Downloads the CLI executable of the desired platform and quality and pipes it to the
184
- * provided process' stdin.
185
- * @param buildTarget The CLI build target to download.
186
- * @param command The command to execute. The downloaded bits will be piped to the command's stdin.
187
- * @param args The arguments to pass to the command.
188
- * @param options Additional options for the spawned process.
189
- * @returns A promise that resolves when the process exits with a {@link ProcessExit} object.
190
- */
191
- downloadCliExecutable?(buildTarget: CliBuild, command: string, args: string[], options?: ExecServerSpawnOptions): Thenable<ProcessExit>;
192
-
193
- /**
194
- * Gets the environment where the exec server is running.
195
- * @returns A promise that resolves to an {@link ExecEnvironment} object.
196
- */
197
- env(): Thenable<ExecEnvironment>;
198
-
199
- /**
200
- * Kills a process with the given ID.
201
- *
202
- * @param processId process ID to kill.
203
- */
204
- kill(processId: number): Thenable<void>;
205
-
206
- /**
207
- * Connects to the given TCP host/port on the remote.
208
- *
209
- * @param host The hostname or IP to connect to
210
- * @param port The port number to connect to
211
- * @returns a duplex stream, and a promise the resolves when both sides
212
- * have closed.
213
- */
214
- tcpConnect(
215
- host: string,
216
- port: number,
217
- ): Thenable<{ stream: WriteStream & ReadStream; done: Thenable<void> }>;
218
-
219
- /**
220
- * Access to the file system of the remote.
221
- */
222
- readonly fs: RemoteFileSystem;
223
- }
224
-
225
- export type ProcessEnv = Record<string, string>;
226
-
227
- export interface ExecServerSpawnOptions {
228
- readonly env?: ProcessEnv;
229
- readonly cwd?: string;
230
- }
231
-
232
- export interface SpawnedCommand {
233
- readonly stdin: WriteStream;
234
- readonly stdout: ReadStream;
235
- readonly stderr: ReadStream;
236
- readonly onExit: Thenable<ProcessExit>;
237
- }
238
-
239
- export interface RemoteServerConnector {
240
- readonly logs: ReadStream;
241
- readonly onExit: Thenable<ProcessExit>;
242
- /**
243
- * Connect to a new code server, returning a stream that can be used to communicate with it.
244
- * @param params The parameters for the code server.
245
- * @returns A promise that resolves to a {@link ManagedMessagePassing} object that can be used with a resolver
246
- */
247
- connect(params: ServeParams): Thenable<ManagedMessagePassing>;
248
- }
249
-
250
- export interface ProcessExit {
251
- readonly status: number;
252
- readonly message?: string;
253
- }
254
-
255
- export interface ReadStream {
256
- readonly onDidReceiveMessage: Event<Uint8Array>;
257
- readonly onEnd: Thenable<void>;
258
- }
259
-
260
- export interface WriteStream {
261
- write(data: Uint8Array): void;
262
- end(): void;
263
- }
264
-
265
- export interface ServeParams {
266
- readonly socketId: number;
267
- readonly commit?: string;
268
- readonly quality: string;
269
- readonly extensions: string[];
270
- /** Whether server traffic should be compressed. */
271
- readonly compress?: boolean;
272
- /** Optional explicit connection token for the server. */
273
- readonly connectionToken?: string;
274
- }
275
-
276
- export interface CliBuild {
277
- readonly quality: string;
278
- /** 'LinuxAlpineX64' | 'LinuxAlpineARM64', 'LinuxX64' | 'LinuxARM64' | 'LinuxARM32' | 'DarwinX64' | 'DarwinARM64' | 'WindowsX64' | 'WindowsX86' | 'WindowsARM64' */
279
- readonly buildTarget: string;
280
- readonly commit: string;
281
- }
282
-
283
- export interface ExecEnvironment {
284
- readonly env: ProcessEnv;
285
- /** 'darwin' | 'linux' | 'win32' */
286
- readonly osPlatform: string;
287
- /** uname.version or windows version number, undefined if it could not be read. */
288
- readonly osRelease?: string;
289
- }
290
-
291
- export interface RemoteFileSystem {
292
- /**
293
- * Retrieve metadata about a file.
294
- *
295
- * @param path The path of the file to retrieve metadata about.
296
- * @returns The file metadata about the file.
297
- * @throws an exception when `path` doesn't exist.
298
- */
299
- stat(path: string): Thenable<FileStat>;
300
-
301
- /**
302
- * Recursively creates the given directory on the remote.
303
- *
304
- * @param path The path of the folder to create
305
- * @throws an exception when `path` is a file, or other i/o operations happen
306
- */
307
- mkdirp(path: string): Thenable<void>;
308
-
309
- /**
310
- * Recursively deletes the given path on the remote.
311
- *
312
- * @param path The path of the file or folder to delete.
313
- * @throws if an i/o error happens during removal. It does not throw if
314
- * the path already does not exist.
315
- */
316
- rm(path: string): Thenable<void>;
317
-
318
- /**
319
- * Reads the given file from the remote.
320
- *
321
- * @param path The path of the file to read.
322
- * @throws if the path doesn't exist or can't be accessed
323
- * @returns a readable stream of the file data
324
- */
325
- read(path: string): Thenable<ReadStream>;
326
-
327
- /**
328
- * Writes the given file on the remote. Truncates the file if it exists.
329
- *
330
- * @param path The path of the file to write.
331
- * @throws if the path can't be accessed
332
- * @returns a writable `stream` that accepts data, and a `done` promise that
333
- * will resolve after `stream.end()` is called once the write is complete.
334
- */
335
- write(path: string): Thenable<{ stream: WriteStream; done: Thenable<void> }>;
336
-
337
- /**
338
- * Connects to the given unix socket or named pipe on the remote.
339
- *
340
- * @param path The path of the unix socket or named pipe
341
- * @throws if the path can't be accessed
342
- * @returns a duplex stream, and a promise the resolves when both sides
343
- * have closed.
344
- */
345
- connect(path: string): Thenable<{ stream: WriteStream & ReadStream; done: Thenable<void> }>;
346
-
347
- /**
348
- * Renames the file.
349
- *
350
- * @param fromPath The existing file path.
351
- * @param toPath The new file path.
352
- * @throws if the original path doesn't exist, or the toPath can't be accessed
353
- */
354
- rename(fromPath: string, toPath: string): Thenable<void>;
355
-
356
- /**
357
- * Reads the contents of a directory.
358
- *
359
- * @param path The path of the folder to read.
360
- * @throws if the folder doesn't exist
361
- * @returns a list of directory entries
362
- */
363
- readdir(path: string): Thenable<DirectoryEntry[]>;
364
- }
365
-
366
- export interface DirectoryEntry {
367
- /**
368
- * The type of the file, e.g. is a regular file, a directory, or symbolic link
369
- * to a file.
370
- *
371
- * *Note:* This value might be a bitmask, e.g. `FileType.File | FileType.SymbolicLink`.
372
- */
373
- type: FileType;
374
-
375
- /**
376
- * Non-absolute name of the file in the directory.
377
- */
378
- name: string;
379
- }
380
-
381
- export interface RemoteAuthorityResolver {
382
- /**
383
- * Resolve the authority part of the current opened `vscode-remote://` URI.
384
- *
385
- * This method will be invoked once during the startup of the editor and again each time
386
- * the editor detects a disconnection.
387
- *
388
- * @param authority The authority part of the current opened `vscode-remote://` URI.
389
- * @param context A context indicating if this is the first call or a subsequent call.
390
- */
391
- resolve(authority: string, context: RemoteAuthorityResolverContext): ResolverResult | Thenable<ResolverResult>;
392
-
393
- /**
394
- * Resolves an exec server interface for the authority. Called if an
395
- * authority is a midpoint in a transit to the desired remote.
396
- *
397
- * @param authority The authority part of the current opened `vscode-remote://` URI.
398
- * @returns The exec server interface, as defined in a contract between extensions.
399
- */
400
- resolveExecServer?(remoteAuthority: string, context: RemoteAuthorityResolverContext): ExecServer | Thenable<ExecServer>;
401
-
402
- /**
403
- * Get the canonical URI (if applicable) for a `vscode-remote://` URI.
404
- *
405
- * @returns The canonical URI or undefined if the uri is already canonical.
406
- */
407
- getCanonicalURI?(uri: Uri): ProviderResult<Uri>;
408
-
409
- /**
410
- * Can be optionally implemented if the extension can forward ports better than the core.
411
- * When not implemented, the core will use its default forwarding logic.
412
- * When implemented, the core will use this to forward ports.
413
- *
414
- * To enable the "Change Local Port" action on forwarded ports, make sure to set the `localAddress` of
415
- * the returned `Tunnel` to a `{ port: number, host: string; }` and not a string.
416
- */
417
- tunnelFactory?: (tunnelOptions: TunnelOptions, tunnelCreationOptions: TunnelCreationOptions) => Thenable<Tunnel> | undefined;
418
-
419
- /**p
420
- * Provides filtering for candidate ports.
421
- */
422
- showCandidatePort?: (host: string, port: number, detail: string) => Thenable<boolean>;
423
-
424
- /**
425
- * @deprecated Return tunnelFeatures as part of the resolver result in tunnelInformation.
426
- */
427
- tunnelFeatures?: {
428
- elevation: boolean;
429
- public: boolean;
430
- privacyOptions: TunnelPrivacy[];
431
- };
432
-
433
- candidatePortSource?: CandidatePortSource;
434
- }
435
-
436
- export interface ResourceLabelFormatter {
437
- scheme: string;
438
- authority?: string;
439
- formatting: ResourceLabelFormatting;
440
- }
441
-
442
- export interface ResourceLabelFormatting {
443
- label: string; // myLabel:/${path}
444
- // For historic reasons we use an or string here. Once we finalize this API we should start using enums instead and adopt it in extensions.
445
- // eslint-disable-next-line local/vscode-dts-literal-or-types, local/vscode-dts-string-type-literals
446
- separator: '/' | '\\' | '';
447
- tildify?: boolean;
448
- normalizeDriveLetter?: boolean;
449
- workspaceSuffix?: string;
450
- workspaceTooltip?: string;
451
- authorityPrefix?: string;
452
- stripPathStartingSeparator?: boolean;
453
- }
454
-
455
- export namespace workspace {
456
- export function registerRemoteAuthorityResolver(authorityPrefix: string, resolver: RemoteAuthorityResolver): Disposable;
457
- export function registerResourceLabelFormatter(formatter: ResourceLabelFormatter): Disposable;
458
- export function getRemoteExecServer(authority: string): Thenable<ExecServer | undefined>;
459
- }
460
-
461
- export namespace env {
462
-
463
- /**
464
- * The authority part of the current opened `vscode-remote://` URI.
465
- * Defined by extensions, e.g. `ssh-remote+${host}` for remotes using a secure shell.
466
- *
467
- * *Note* that the value is `undefined` when there is no remote extension host but that the
468
- * value is defined in all extension hosts (local and remote) in case a remote extension host
469
- * exists. Use {@link Extension.extensionKind} to know if
470
- * a specific extension runs remote or not.
471
- */
472
- export const remoteAuthority: string | undefined;
473
-
474
- }
475
- }
@@ -1,25 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- declare module 'vscode' {
7
- // https://github.com/microsoft/vscode/issues/195474
8
-
9
- export namespace scm {
10
- export function registerSourceControlInputBoxValueProvider(sourceControlId: string, provider: SourceControlInputBoxValueProvider): Disposable;
11
- }
12
-
13
- export interface SourceControlInputBoxValueProviderContext {
14
- readonly resourceGroupId: string;
15
- readonly resources: readonly Uri[];
16
- }
17
-
18
- export interface SourceControlInputBoxValueProvider {
19
- readonly label: string;
20
- readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
21
-
22
- provideValue(rootUri: Uri, context: SourceControlInputBoxValueProviderContext[], token: CancellationToken): ProviderResult<string | undefined>;
23
- }
24
-
25
- }
@@ -1,42 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
-
7
- declare module 'vscode' {
8
-
9
-
10
- export interface TaskProblemMatcherStartedEvent {
11
- /**
12
- * The task item representing the task for which the problem matcher processing started.
13
- */
14
- readonly execution: TaskExecution;
15
- }
16
-
17
- export interface TaskProblemMatcherEndedEvent {
18
- /**
19
- * The task item representing the task for which the problem matcher processing ended.
20
- */
21
- readonly execution: TaskExecution;
22
-
23
- /**
24
- * Whether errors were found during the task execution
25
- */
26
- readonly hasErrors: boolean;
27
- }
28
-
29
- export namespace tasks {
30
-
31
- /**
32
- * An event that is emitted when the task's problem matchers start processing lines.
33
- */
34
- export const onDidStartTaskProblemMatchers: Event<TaskProblemMatcherStartedEvent>;
35
-
36
- /**
37
- * An event that is emitted when the task problem matchers have finished processing lines.
38
- */
39
- export const onDidEndTaskProblemMatchers: Event<TaskProblemMatcherEndedEvent>;
40
- }
41
-
42
- }
@@ -1,32 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- declare module 'vscode' {
7
-
8
- // https://github.com/microsoft/vscode/issues/78502
9
- //
10
- // This API is still proposed but we don't intent on promoting it to stable due to problems
11
- // around performance. See #145234 for a more likely API to get stabilized.
12
-
13
- export interface TerminalDataWriteEvent {
14
- /**
15
- * The {@link Terminal} for which the data was written.
16
- */
17
- readonly terminal: Terminal;
18
- /**
19
- * The data being written.
20
- */
21
- readonly data: string;
22
- }
23
-
24
- namespace window {
25
- /**
26
- * An event which fires when the terminal's child pseudo-device is written to (the shell).
27
- * In other words, this provides access to the raw data stream from the process running
28
- * within the terminal, including VT sequences.
29
- */
30
- export const onDidWriteTerminalData: Event<TerminalDataWriteEvent>;
31
- }
32
- }
@@ -1,48 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- declare module 'vscode' {
7
-
8
- // https://github.com/microsoft/vscode/issues/145234
9
-
10
- export interface TerminalExecutedCommand {
11
- /**
12
- * The {@link Terminal} the command was executed in.
13
- */
14
- terminal: Terminal;
15
- /**
16
- * The full command line that was executed, including both the command and the arguments.
17
- */
18
- commandLine: string | undefined;
19
- /**
20
- * The current working directory that was reported by the shell. This will be a {@link Uri}
21
- * if the string reported by the shell can reliably be mapped to the connected machine.
22
- */
23
- cwd: Uri | string | undefined;
24
- /**
25
- * The exit code reported by the shell.
26
- */
27
- exitCode: number | undefined;
28
- /**
29
- * The output of the command when it has finished executing. This is the plain text shown in
30
- * the terminal buffer and does not include raw escape sequences. Depending on the shell
31
- * setup, this may include the command line as part of the output.
32
- */
33
- output: string | undefined;
34
- }
35
-
36
- export namespace window {
37
- /**
38
- * An event that is emitted when a terminal with shell integration activated has completed
39
- * executing a command.
40
- *
41
- * Note that this event will not fire if the executed command exits the shell, listen to
42
- * {@link onDidCloseTerminal} to handle that case.
43
- *
44
- * @deprecated Use {@link window.onDidStartTerminalShellExecution}
45
- */
46
- export const onDidExecuteTerminalCommand: Event<TerminalExecutedCommand>;
47
- }
48
- }