@vscode/chat-lib 0.75.2026111108 → 0.76.2026112006

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 (266) hide show
  1. package/dist/src/_internal/extension/byok/node/openAIEndpoint.d.ts.map +1 -1
  2. package/dist/src/_internal/extension/byok/node/openAIEndpoint.js +5 -0
  3. package/dist/src/_internal/extension/byok/node/openAIEndpoint.js.map +1 -1
  4. package/dist/src/_internal/extension/completions/common/config.d.ts +0 -1
  5. package/dist/src/_internal/extension/completions/common/config.d.ts.map +1 -1
  6. package/dist/src/_internal/extension/completions/common/config.js +0 -4
  7. package/dist/src/_internal/extension/completions/common/config.js.map +1 -1
  8. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/completionState.d.ts +0 -1
  9. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/completionState.d.ts.map +1 -1
  10. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/completionState.js +0 -3
  11. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/completionState.js.map +1 -1
  12. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/config.d.ts +0 -7
  13. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/config.d.ts.map +1 -1
  14. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/config.js +0 -6
  15. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/config.js.map +1 -1
  16. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/expConfig.d.ts +2 -13
  17. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/expConfig.d.ts.map +1 -1
  18. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/expConfig.js +0 -14
  19. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/expConfig.js.map +1 -1
  20. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/features.d.ts +0 -7
  21. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/features.d.ts.map +1 -1
  22. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/features.js +1 -23
  23. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/features.js.map +1 -1
  24. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/featuresService.d.ts +0 -6
  25. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/featuresService.d.ts.map +1 -1
  26. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/filters.d.ts +1 -16
  27. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/filters.d.ts.map +1 -1
  28. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/filters.js +0 -17
  29. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/experiments/filters.js.map +1 -1
  30. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/asyncCompletions.d.ts.map +1 -1
  31. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/asyncCompletions.js +0 -1
  32. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/asyncCompletions.js.map +1 -1
  33. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/blockTrimmer.d.ts +0 -21
  34. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/blockTrimmer.d.ts.map +1 -1
  35. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/blockTrimmer.js +1 -75
  36. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/blockTrimmer.js.map +1 -1
  37. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/cacheUtils.d.ts +0 -5
  38. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/cacheUtils.d.ts.map +1 -1
  39. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/cacheUtils.js.map +1 -1
  40. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/ghostText.d.ts +0 -5
  41. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/ghostText.d.ts.map +1 -1
  42. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/ghostText.js +1 -9
  43. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/ghostText.js.map +1 -1
  44. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/helpers/iterableHelpers.d.ts +0 -7
  45. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/helpers/iterableHelpers.d.ts.map +1 -1
  46. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/helpers/iterableHelpers.js +0 -49
  47. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/helpers/iterableHelpers.js.map +1 -1
  48. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/helpers/radix.d.ts +0 -2
  49. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/helpers/radix.d.ts.map +1 -1
  50. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/helpers/radix.js +0 -10
  51. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/helpers/radix.js.map +1 -1
  52. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/language/languages.d.ts +0 -4
  53. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/language/languages.d.ts.map +1 -1
  54. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/language/languages.js.map +1 -1
  55. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/networking.d.ts +0 -15
  56. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/networking.d.ts.map +1 -1
  57. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/networking.js +1 -16
  58. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/networking.js.map +1 -1
  59. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/networkingTypes.d.ts +5 -7
  60. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/networkingTypes.d.ts.map +1 -1
  61. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/networkingTypes.js +3 -9
  62. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/networkingTypes.js.map +1 -1
  63. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/fetch.d.ts +0 -7
  64. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/fetch.d.ts.map +1 -1
  65. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/fetch.js.map +1 -1
  66. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/model.d.ts +0 -1
  67. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/model.d.ts.map +1 -1
  68. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/model.js +0 -3
  69. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/model.js.map +1 -1
  70. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/asyncUtils.d.ts +0 -7
  71. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/asyncUtils.d.ts.map +1 -1
  72. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/asyncUtils.js +0 -14
  73. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/asyncUtils.js.map +1 -1
  74. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/completionsPromptFactory/componentsCompletionsPromptFactory.d.ts +0 -3
  75. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/completionsPromptFactory/componentsCompletionsPromptFactory.d.ts.map +1 -1
  76. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/completionsPromptFactory/componentsCompletionsPromptFactory.js +1 -16
  77. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/completionsPromptFactory/componentsCompletionsPromptFactory.js.map +1 -1
  78. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/contextProviderRegistryMultiLanguage.d.ts +0 -25
  79. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/contextProviderRegistryMultiLanguage.d.ts.map +1 -1
  80. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/contextProviderRegistryMultiLanguage.js +2 -17
  81. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/contextProviderRegistryMultiLanguage.js.map +1 -1
  82. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/similarFiles/compositeRelatedFilesProvider.d.ts +1 -7
  83. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/similarFiles/compositeRelatedFilesProvider.d.ts.map +1 -1
  84. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/similarFiles/compositeRelatedFilesProvider.js +2 -20
  85. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/similarFiles/compositeRelatedFilesProvider.js.map +1 -1
  86. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/similarFiles/neighborFiles.d.ts +0 -7
  87. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/similarFiles/neighborFiles.d.ts.map +1 -1
  88. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/similarFiles/neighborFiles.js +0 -7
  89. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/prompt/similarFiles/neighborFiles.js.map +1 -1
  90. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/snippy/snippy.proto.d.ts +0 -1
  91. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/snippy/snippy.proto.d.ts.map +1 -1
  92. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/snippy/snippy.proto.js.map +1 -1
  93. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/snippy/telemetryHandlers.d.ts +0 -8
  94. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/snippy/telemetryHandlers.d.ts.map +1 -1
  95. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/snippy/telemetryHandlers.js +1 -14
  96. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/snippy/telemetryHandlers.js.map +1 -1
  97. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/suggestions/partialSuggestions.d.ts +0 -7
  98. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/suggestions/partialSuggestions.d.ts.map +1 -1
  99. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/suggestions/partialSuggestions.js +0 -18
  100. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/suggestions/partialSuggestions.js.map +1 -1
  101. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/telemetry.d.ts +1 -4
  102. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/telemetry.d.ts.map +1 -1
  103. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/telemetry.js +5 -21
  104. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/telemetry.js.map +1 -1
  105. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/textDocument.d.ts +0 -6
  106. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/textDocument.d.ts.map +1 -1
  107. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/textDocument.js +0 -9
  108. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/textDocument.js.map +1 -1
  109. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/languageMarker.d.ts +0 -15
  110. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/languageMarker.d.ts.map +1 -1
  111. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/languageMarker.js +0 -74
  112. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/languageMarker.js.map +1 -1
  113. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/prompt.d.ts +1 -5
  114. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/prompt.d.ts.map +1 -1
  115. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/prompt.js +1 -4
  116. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/prompt.js.map +1 -1
  117. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/snippetInclusion/similarFiles.d.ts +0 -1
  118. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/snippetInclusion/similarFiles.d.ts.map +1 -1
  119. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/snippetInclusion/similarFiles.js +1 -9
  120. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/snippetInclusion/similarFiles.js.map +1 -1
  121. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/snippetInclusion/windowDelineations.d.ts +0 -14
  122. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/snippetInclusion/windowDelineations.d.ts.map +1 -1
  123. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/snippetInclusion/windowDelineations.js +0 -102
  124. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/snippetInclusion/windowDelineations.js.map +1 -1
  125. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/contextProviderApiV1.d.ts +1 -20
  126. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/contextProviderApiV1.d.ts.map +1 -1
  127. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/contextProviderApiV1.js.map +1 -1
  128. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/core.d.ts +0 -11
  129. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/core.d.ts.map +1 -1
  130. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/core.js +1 -10
  131. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/core.js.map +1 -1
  132. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/index.d.ts +0 -2
  133. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/index.d.ts.map +1 -1
  134. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/index.js +0 -2
  135. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/index.js.map +1 -1
  136. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts +10 -0
  137. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts.map +1 -1
  138. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js +28 -6
  139. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js.map +1 -1
  140. package/dist/src/_internal/extension/xtab/common/lintErrors.d.ts +0 -7
  141. package/dist/src/_internal/extension/xtab/common/lintErrors.d.ts.map +1 -1
  142. package/dist/src/_internal/extension/xtab/common/lintErrors.js +0 -26
  143. package/dist/src/_internal/extension/xtab/common/lintErrors.js.map +1 -1
  144. package/dist/src/_internal/extension/xtab/common/recentFilesForPrompt.d.ts.map +1 -1
  145. package/dist/src/_internal/extension/xtab/common/recentFilesForPrompt.js +2 -1
  146. package/dist/src/_internal/extension/xtab/common/recentFilesForPrompt.js.map +1 -1
  147. package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts.map +1 -1
  148. package/dist/src/_internal/extension/xtab/node/xtabProvider.js +3 -1
  149. package/dist/src/_internal/extension/xtab/node/xtabProvider.js.map +1 -1
  150. package/dist/src/_internal/platform/authentication/common/copilotToken.d.ts +0 -24
  151. package/dist/src/_internal/platform/authentication/common/copilotToken.d.ts.map +1 -1
  152. package/dist/src/_internal/platform/authentication/common/copilotToken.js +0 -4
  153. package/dist/src/_internal/platform/authentication/common/copilotToken.js.map +1 -1
  154. package/dist/src/_internal/platform/configuration/common/validator.d.ts +0 -1
  155. package/dist/src/_internal/platform/configuration/common/validator.d.ts.map +1 -1
  156. package/dist/src/_internal/platform/configuration/common/validator.js.map +1 -1
  157. package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.d.ts +0 -1
  158. package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.d.ts.map +1 -1
  159. package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.js +0 -3
  160. package/dist/src/_internal/platform/editing/common/notebookDocumentSnapshot.js.map +1 -1
  161. package/dist/src/_internal/platform/env/common/packagejson.d.ts +0 -1
  162. package/dist/src/_internal/platform/env/common/packagejson.d.ts.map +1 -1
  163. package/dist/src/_internal/platform/env/common/packagejson.js +1 -2
  164. package/dist/src/_internal/platform/env/common/packagejson.js.map +1 -1
  165. package/dist/src/_internal/platform/git/common/gitService.d.ts +0 -1
  166. package/dist/src/_internal/platform/git/common/gitService.d.ts.map +1 -1
  167. package/dist/src/_internal/platform/git/common/gitService.js +0 -4
  168. package/dist/src/_internal/platform/git/common/gitService.js.map +1 -1
  169. package/dist/src/_internal/platform/github/common/githubAPI.d.ts +0 -28
  170. package/dist/src/_internal/platform/github/common/githubAPI.d.ts.map +1 -1
  171. package/dist/src/_internal/platform/github/common/githubAPI.js.map +1 -1
  172. package/dist/src/_internal/platform/github/common/githubService.d.ts +0 -1
  173. package/dist/src/_internal/platform/github/common/githubService.d.ts.map +1 -1
  174. package/dist/src/_internal/platform/github/common/githubService.js +1 -2
  175. package/dist/src/_internal/platform/github/common/githubService.js.map +1 -1
  176. package/dist/src/_internal/platform/image/common/imageTelemetry.d.ts +0 -5
  177. package/dist/src/_internal/platform/image/common/imageTelemetry.d.ts.map +1 -1
  178. package/dist/src/_internal/platform/image/common/imageTelemetry.js +0 -91
  179. package/dist/src/_internal/platform/image/common/imageTelemetry.js.map +1 -1
  180. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.d.ts +2 -5
  181. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.d.ts.map +1 -1
  182. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.js +2 -10
  183. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/languageContext.js.map +1 -1
  184. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.d.ts +0 -1
  185. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.d.ts.map +1 -1
  186. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.js +0 -3
  187. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/textEditLength.js.map +1 -1
  188. package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.d.ts +0 -19
  189. package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.d.ts.map +1 -1
  190. package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.js +1 -1
  191. package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.js.map +1 -1
  192. package/dist/src/_internal/platform/inlineEdits/common/sensitiveFiles.d.ts +18 -0
  193. package/dist/src/_internal/platform/inlineEdits/common/sensitiveFiles.d.ts.map +1 -0
  194. package/dist/src/_internal/platform/inlineEdits/common/sensitiveFiles.js +47 -0
  195. package/dist/src/_internal/platform/inlineEdits/common/sensitiveFiles.js.map +1 -0
  196. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts +0 -1
  197. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts.map +1 -1
  198. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js.map +1 -1
  199. package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.d.ts +0 -1
  200. package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.d.ts.map +1 -1
  201. package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.js +0 -5
  202. package/dist/src/_internal/platform/languages/common/languageDiagnosticsService.js.map +1 -1
  203. package/dist/src/_internal/platform/networking/common/anthropic.d.ts +0 -10
  204. package/dist/src/_internal/platform/networking/common/anthropic.d.ts.map +1 -1
  205. package/dist/src/_internal/platform/networking/common/anthropic.js +0 -18
  206. package/dist/src/_internal/platform/networking/common/anthropic.js.map +1 -1
  207. package/dist/src/_internal/platform/networking/common/fetch.d.ts +1 -89
  208. package/dist/src/_internal/platform/networking/common/fetch.d.ts.map +1 -1
  209. package/dist/src/_internal/platform/networking/common/fetch.js +0 -8
  210. package/dist/src/_internal/platform/networking/common/fetch.js.map +1 -1
  211. package/dist/src/_internal/platform/networking/common/openai.d.ts +0 -8
  212. package/dist/src/_internal/platform/networking/common/openai.d.ts.map +1 -1
  213. package/dist/src/_internal/platform/networking/common/openai.js +1 -24
  214. package/dist/src/_internal/platform/networking/common/openai.js.map +1 -1
  215. package/dist/src/_internal/platform/telemetry/common/telemetry.d.ts +5 -3
  216. package/dist/src/_internal/platform/telemetry/common/telemetry.d.ts.map +1 -1
  217. package/dist/src/_internal/platform/telemetry/common/telemetry.js.map +1 -1
  218. package/dist/src/_internal/util/common/asyncIterableUtils.d.ts +0 -3
  219. package/dist/src/_internal/util/common/asyncIterableUtils.d.ts.map +1 -1
  220. package/dist/src/_internal/util/common/asyncIterableUtils.js +0 -26
  221. package/dist/src/_internal/util/common/asyncIterableUtils.js.map +1 -1
  222. package/dist/src/_internal/util/common/cache.d.ts +0 -10
  223. package/dist/src/_internal/util/common/cache.d.ts.map +1 -1
  224. package/dist/src/_internal/util/common/cache.js +0 -27
  225. package/dist/src/_internal/util/common/cache.js.map +1 -1
  226. package/dist/src/_internal/util/common/imageUtils.d.ts +0 -16
  227. package/dist/src/_internal/util/common/imageUtils.d.ts.map +1 -1
  228. package/dist/src/_internal/util/common/imageUtils.js +0 -4
  229. package/dist/src/_internal/util/common/imageUtils.js.map +1 -1
  230. package/dist/src/_internal/util/common/result.d.ts +0 -2
  231. package/dist/src/_internal/util/common/result.d.ts.map +1 -1
  232. package/dist/src/_internal/util/common/result.js +0 -18
  233. package/dist/src/_internal/util/common/result.js.map +1 -1
  234. package/dist/src/_internal/util/common/test/shims/enums.d.ts +10 -0
  235. package/dist/src/_internal/util/common/test/shims/enums.d.ts.map +1 -1
  236. package/dist/src/_internal/util/common/test/shims/enums.js +13 -1
  237. package/dist/src/_internal/util/common/test/shims/enums.js.map +1 -1
  238. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.d.ts.map +1 -1
  239. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js +2 -0
  240. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js.map +1 -1
  241. package/dist/src/_internal/vscodeTypes.d.ts +2 -0
  242. package/dist/src/_internal/vscodeTypes.d.ts.map +1 -1
  243. package/dist/src/_internal/vscodeTypes.js +4 -2
  244. package/dist/src/_internal/vscodeTypes.js.map +1 -1
  245. package/dist/src/package.json +5 -9
  246. package/package.json +1 -1
  247. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/classes.d.ts +0 -69
  248. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/classes.d.ts.map +0 -1
  249. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/classes.js +0 -84
  250. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/classes.js.map +0 -1
  251. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/manipulation.d.ts +0 -51
  252. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/manipulation.d.ts.map +0 -1
  253. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/manipulation.js +0 -159
  254. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/manipulation.js.map +0 -1
  255. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/parsing.d.ts +0 -67
  256. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/parsing.d.ts.map +0 -1
  257. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/parsing.js +0 -300
  258. package/dist/src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/parsing.js.map +0 -1
  259. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/auth.d.ts +0 -26
  260. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/auth.d.ts.map +0 -1
  261. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/auth.js +0 -57
  262. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/auth.js.map +0 -1
  263. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/codeCitation.d.ts +0 -20
  264. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/codeCitation.d.ts.map +0 -1
  265. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/codeCitation.js +0 -47
  266. package/dist/src/_internal/extension/completions-core/vscode-node/types/src/codeCitation.js.map +0 -1
@@ -1,159 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Microsoft Corporation. All rights reserved.
4
- * Licensed under the MIT License. See License.txt in the project root for license information.
5
- *--------------------------------------------------------------------------------------------*/
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.clearLabels = clearLabels;
8
- exports.clearLabelsIf = clearLabelsIf;
9
- exports.mapLabels = mapLabels;
10
- exports.resetLineNumbers = resetLineNumbers;
11
- exports.visitTree = visitTree;
12
- exports.visitTreeConditionally = visitTreeConditionally;
13
- exports.foldTree = foldTree;
14
- exports.rebuildTree = rebuildTree;
15
- const classes_1 = require("./classes");
16
- /**
17
- * Clear all labels (and their types) from the tree.
18
- * This will modify the tree in place, or return a retyped tree.
19
- */
20
- function clearLabels(tree) {
21
- visitTree(tree, (tree) => {
22
- tree.label = undefined;
23
- }, 'bottomUp');
24
- return tree;
25
- }
26
- /** clear labels if condition is true */
27
- function clearLabelsIf(tree, condition) {
28
- visitTree(tree, (tree) => {
29
- tree.label = tree.label ? (condition(tree.label) ? undefined : tree.label) : undefined;
30
- }, 'bottomUp');
31
- return tree;
32
- }
33
- /**
34
- * Apply a type changing function to all labels.
35
- * This will return a new, retyped tree.
36
- * (For applying a type keeping function to a tree
37
- * that modifies it in place, use `visitTree`.)
38
- */
39
- function mapLabels(tree, map) {
40
- switch (tree.type) {
41
- case 'line':
42
- case 'virtual': {
43
- const newSubs = tree.subs.map(sub => mapLabels(sub, map));
44
- return { ...tree, subs: newSubs, label: tree.label ? map(tree.label) : undefined };
45
- }
46
- case 'blank':
47
- return { ...tree, label: tree.label ? map(tree.label) : undefined };
48
- case 'top':
49
- return {
50
- ...tree,
51
- subs: tree.subs.map(sub => mapLabels(sub, map)),
52
- label: tree.label ? map(tree.label) : undefined,
53
- };
54
- }
55
- }
56
- /**
57
- * Renumber the line numbers of the tree contiguously from 0 and up.
58
- */
59
- function resetLineNumbers(tree) {
60
- let lineNumber = 0;
61
- function visitor(tree) {
62
- if (!(0, classes_1.isVirtual)(tree) && !(0, classes_1.isTop)(tree)) {
63
- tree.lineNumber = lineNumber;
64
- lineNumber++;
65
- }
66
- }
67
- visitTree(tree, visitor, 'topDown');
68
- }
69
- /**
70
- * Visit the tree with a function that is called on each node.
71
- *
72
- * If direction is topDown, then parents are visited before their children.
73
- * If direction is bottomUp, children are visited in order before their parents,
74
- * so that leaf nodes are visited first.
75
- */
76
- function visitTree(tree, visitor, direction) {
77
- function _visit(tree) {
78
- if (direction === 'topDown') {
79
- visitor(tree);
80
- }
81
- tree.subs.forEach(subtree => {
82
- _visit(subtree);
83
- });
84
- if (direction === 'bottomUp') {
85
- visitor(tree);
86
- }
87
- }
88
- _visit(tree);
89
- }
90
- /**
91
- * Visit the tree with a function that is called on each node --
92
- * if it returns false, children are not visited (in case of topDown),
93
- * or the parent is not visited anymore (in case of bottomUp).
94
- *
95
- * If direction is topDown, then parents are visited before their children.
96
- * If direction is bottomUp, children are visited in order before their parents,
97
- * so that leaf nodes are visited first.
98
- */
99
- function visitTreeConditionally(tree, visitor, direction) {
100
- // IDEA: rewrite visitTree to reuse this code
101
- function _visit(tree) {
102
- if (direction === 'topDown') {
103
- if (!visitor(tree)) {
104
- return false;
105
- }
106
- }
107
- let shouldContinue = true;
108
- tree.subs.forEach(subtree => {
109
- shouldContinue = shouldContinue && _visit(subtree);
110
- });
111
- if (direction === 'bottomUp') {
112
- shouldContinue = shouldContinue && visitor(tree);
113
- }
114
- return shouldContinue;
115
- }
116
- _visit(tree);
117
- }
118
- /**
119
- * Fold an accumulator function over the tree.
120
- *
121
- * If direction is topDown, then parents are visited before their children.
122
- * If direction is bottomUp, children are visited in order before their parents,
123
- * so that leaf nodes are visited first.
124
- */
125
- function foldTree(tree, init, accumulator, direction) {
126
- let acc = init;
127
- function visitor(tree) {
128
- acc = accumulator(tree, acc);
129
- }
130
- visitTree(tree, visitor, direction);
131
- return acc;
132
- }
133
- /**
134
- * Rebuild the tree from the bottom up by applying a function to each node.
135
- * The visitor function takes a node whose children have already been rebuilt,
136
- * and returns a new node to replace it (or undefined if it should be deleted).
137
- * Optionally, a function can be provided to skip nodes that should just be kept
138
- * without visiting them or their sub-nodes.
139
- */
140
- function rebuildTree(tree, visitor, skip) {
141
- const rebuild = (tree) => {
142
- if (skip !== undefined && skip(tree)) {
143
- return tree;
144
- }
145
- else {
146
- const newSubs = tree.subs.map(rebuild).filter(sub => sub !== undefined);
147
- tree.subs = newSubs;
148
- return visitor(tree);
149
- }
150
- };
151
- const rebuilt = rebuild(tree);
152
- if (rebuilt !== undefined) {
153
- return rebuilt;
154
- }
155
- else {
156
- return (0, classes_1.topNode)();
157
- }
158
- }
159
- //# sourceMappingURL=manipulation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manipulation.js","sourceRoot":"","sources":["../../../../../../../../../src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/manipulation.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAQhG,kCASC;AAGD,sCAYC;AAcD,8BAgBC;AAKD,4CASC;AASD,8BAiBC;AAWD,wDAsBC;AASD,4BAYC;AAUD,kCAoBC;AAxLD,uCAAoG;AAEpG;;;GAGG;AACH,SAAgB,WAAW,CAAI,IAAwB;IACtD,SAAS,CACR,IAAI,EACJ,CAAC,IAAwB,EAAE,EAAE;QAC5B,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IACxB,CAAC,EACD,UAAU,CACV,CAAC;IACF,OAAO,IAA8B,CAAC;AACvC,CAAC;AAED,wCAAwC;AACxC,SAAgB,aAAa,CAC5B,IAA4B,EAC5B,SAAmC;IAEnC,SAAS,CACR,IAAI,EACJ,CAAC,IAA4B,EAAE,EAAE;QAChC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,C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parse of a string. This is completely
4
- * language-agnostic and the returned tree is unlabeled.
5
- *
6
- * - Blank lines pertain to the top-most node that they may, as restricted
7
- * by next non-blank line. So e.g.
8
- *
9
- * E
10
- * e1
11
- * e2
12
- *
13
- * e3
14
- *
15
- * Then e1.subs = [e2], and E.subs = [ e1, blank, e3 ].
16
- *
17
- */
18
- export declare function parseRaw(source: string): IndentationTree<never>;
19
- type LineMatcher = (sourceLine: string) => boolean;
20
- export interface LabelRule<L> {
21
- matches: LineMatcher;
22
- label: L | undefined;
23
- }
24
- /** Labels the line elements of the tree in-place according to rules */
25
- export declare function labelLines<L>(tree: IndentationTree<L>, labelRules: LabelRule<L>[]): void;
26
- /**
27
- * For each virtual node, if the node has only one non-blank sub, then label
28
- * the virtual node as that sub.
29
- */
30
- export declare function labelVirtualInherited<L>(tree: IndentationTree<L>): void;
31
- /**
32
- * Function to convert a mapped object to a list of rules.
33
- * This allows some type magic for extracting a label type from a mapping of rules.
34
- */
35
- export declare function buildLabelRules<L extends {
36
- [key: string]: RegExp | LineMatcher;
37
- }>(ruleMap: L): LabelRule<keyof L>[];
38
- /**
39
- * Fills the opener and closer indentation spec
40
- * 1. Openers alone in a line whose older sibling is a line are moved to be the first of that sibling's children,
41
- * and their children integrated as subsequent children of their new parent.
42
- * 2. Closers following an older sibling (maybe with blanks in between) are moved to be the last of that sibling.
43
- * 3. If the closer in 2 has children themselves, their older siblings are wrapped in a virtual node
44
- */
45
- export declare function combineClosersAndOpeners<L>(tree: IndentationTree<L | 'opener' | 'closer'>): IndentationTree<L | 'opener' | 'closer'>;
46
- /**
47
- * If there are more than 1 consecutive sibling separated from others by delimiters,
48
- * combine them into a virtual node.
49
- * The possibly several consecutive delimiters will be put with the preceding siblings into the virtual node.
50
- * Note that offside groupings should be done before this.
51
- */
52
- export declare function groupBlocks<L>(tree: IndentationTree<L>, isDelimiter?: (node: IndentationTree<L>) => boolean, label?: L): IndentationTree<L>;
53
- /**
54
- * Remove unlabeled virtual nodes which either:
55
- * - Have one or no children
56
- * - Are the only child of their parent
57
- * In either case, it is replaced by their children.
58
- */
59
- export declare function flattenVirtual<L>(tree: IndentationTree<L>): IndentationTree<L>;
60
- /**
61
- * Register a language-specific parser for a language.
62
- * This should normally be called in index.ts.
63
- */
64
- export declare function registerLanguageSpecificParser(language: string, parser: (raw: IndentationTree<never>) => IndentationTree<string>): void;
65
- export declare function parseTree(source: string, languageId?: string): IndentationTree<string>;
66
- export {};
67
- //# sourceMappingURL=parsing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsing.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/parsing.ts"],"names":[],"mappings":"AAKA,OAAO,EAGN,eAAe,EAUf,MAAM,WAAW,CAAC;AAGnB;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAAC,KAAK,CAAC,CAiD/D;AAED,KAAK,WAAW,GAAG,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;AACnD,MAAM,WAAW,SAAS,CAAC,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC;IACrB,KAAK,EAAE,CAAC,GAAG,SAAS,CAAC;CACrB;AAED,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAUxF;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI,CAUvE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAA;CAAE,EAAE,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,CAanH;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EACzC,IAAI,EAAE,eAAe,CAAC,CAAC,GAAG,QAAQ,GAAG,QAAQ,CAAC,GAC5C,eAAe,CAAC,CAAC,GAAG,QAAQ,GAAG,QAAQ,CAAC,CAgE1C;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC5B,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EACxB,WAAW,GAAE,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,OAAiB,EAC5D,KAAK,CAAC,EAAE,CAAC,GACP,eAAe,CAAC,CAAC,CAAC,CA6CpB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAe9E;AAeD;;;GAGG;AACH,wBAAgB,8BAA8B,CAC7C,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,CAAC,GAAG,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,eAAe,CAAC,MAAM,CAAC,GAC9D,IAAI,CAEN;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAUtF"}
@@ -1,300 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Microsoft Corporation. All rights reserved.
4
- * Licensed under the MIT License. See License.txt in the project root for license information.
5
- *--------------------------------------------------------------------------------------------*/
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.parseRaw = parseRaw;
8
- exports.labelLines = labelLines;
9
- exports.labelVirtualInherited = labelVirtualInherited;
10
- exports.buildLabelRules = buildLabelRules;
11
- exports.combineClosersAndOpeners = combineClosersAndOpeners;
12
- exports.groupBlocks = groupBlocks;
13
- exports.flattenVirtual = flattenVirtual;
14
- exports.registerLanguageSpecificParser = registerLanguageSpecificParser;
15
- exports.parseTree = parseTree;
16
- const classes_1 = require("./classes");
17
- const manipulation_1 = require("./manipulation");
18
- /**
19
- * Perform a raw indentation-tree parse of a string. This is completely
20
- * language-agnostic and the returned tree is unlabeled.
21
- *
22
- * - Blank lines pertain to the top-most node that they may, as restricted
23
- * by next non-blank line. So e.g.
24
- *
25
- * E
26
- * e1
27
- * e2
28
- *
29
- * e3
30
- *
31
- * Then e1.subs = [e2], and E.subs = [ e1, blank, e3 ].
32
- *
33
- */
34
- function parseRaw(source) {
35
- const rawLines = source.split('\n');
36
- // TODO: How to handle mix of tabs and spaces?
37
- const indentations = rawLines.map(line => line.match(/^\s*/)[0].length);
38
- const lines = rawLines.map(line => line.trimLeft());
39
- function parseNode(line) {
40
- const [subs, nextLine] = parseSubs(line + 1, indentations[line]);
41
- const node = (0, classes_1.lineNode)(indentations[line], line, lines[line], subs);
42
- return [node, nextLine];
43
- }
44
- function parseSubs(initialLine, parentIndentation) {
45
- let sub;
46
- const subs = [];
47
- let line = initialLine;
48
- let lastBlank = undefined;
49
- while (line < lines.length && (lines[line] === '' || indentations[line] > parentIndentation)) {
50
- if (lines[line] === '') {
51
- if (lastBlank === undefined) {
52
- lastBlank = line;
53
- }
54
- line += 1;
55
- }
56
- else {
57
- if (lastBlank !== undefined) {
58
- for (let i = lastBlank; i < line; i++) {
59
- subs.push((0, classes_1.blankNode)(i));
60
- }
61
- lastBlank = undefined;
62
- }
63
- [sub, line] = parseNode(line);
64
- subs.push(sub);
65
- }
66
- }
67
- // Trailing blanks are left for the grandparent
68
- if (lastBlank !== undefined) {
69
- line = lastBlank;
70
- }
71
- return [subs, line];
72
- }
73
- const [subs, parsedLine] = parseSubs(0, -1);
74
- let line = parsedLine;
75
- // Special case: trailing blank lines at end of file
76
- while (line < lines.length && lines[line] === '') {
77
- subs.push((0, classes_1.blankNode)(line));
78
- line += 1;
79
- }
80
- if (line < lines.length) {
81
- throw new Error(`Parsing did not go to end of file. Ended at ${line} out of ${lines.length}`);
82
- }
83
- return (0, classes_1.topNode)(subs);
84
- }
85
- /** Labels the line elements of the tree in-place according to rules */
86
- function labelLines(tree, labelRules) {
87
- function visitor(tree) {
88
- if ((0, classes_1.isLine)(tree)) {
89
- const rule = labelRules.find(rule => rule.matches(tree.sourceLine));
90
- if (rule) {
91
- tree.label = rule.label;
92
- }
93
- }
94
- }
95
- (0, manipulation_1.visitTree)(tree, visitor, 'bottomUp');
96
- }
97
- /**
98
- * For each virtual node, if the node has only one non-blank sub, then label
99
- * the virtual node as that sub.
100
- */
101
- function labelVirtualInherited(tree) {
102
- function visitor(tree) {
103
- if ((0, classes_1.isVirtual)(tree) && tree.label === undefined) {
104
- const subs = tree.subs.filter(sub => !(0, classes_1.isBlank)(sub));
105
- if (subs.length === 1) {
106
- tree.label = subs[0].label;
107
- }
108
- }
109
- }
110
- (0, manipulation_1.visitTree)(tree, visitor, 'bottomUp');
111
- }
112
- /**
113
- * Function to convert a mapped object to a list of rules.
114
- * This allows some type magic for extracting a label type from a mapping of rules.
115
- */
116
- function buildLabelRules(ruleMap) {
117
- return Object.keys(ruleMap).map(key => {
118
- let matches;
119
- if (ruleMap[key].test) {
120
- matches = sourceLine => ruleMap[key].test(sourceLine);
121
- }
122
- else {
123
- matches = ruleMap[key];
124
- }
125
- return {
126
- matches,
127
- label: key,
128
- };
129
- });
130
- }
131
- /**
132
- * Fills the opener and closer indentation spec
133
- * 1. Openers alone in a line whose older sibling is a line are moved to be the first of that sibling's children,
134
- * and their children integrated as subsequent children of their new parent.
135
- * 2. Closers following an older sibling (maybe with blanks in between) are moved to be the last of that sibling.
136
- * 3. If the closer in 2 has children themselves, their older siblings are wrapped in a virtual node
137
- */
138
- function combineClosersAndOpeners(tree) {
139
- const rebuilder = function (tree) {
140
- if (tree.subs.length === 0 ||
141
- tree.subs.findIndex(sub => sub.label === 'closer' || sub.label === 'opener') === -1) {
142
- return tree;
143
- }
144
- const newSubs = [];
145
- let lastNew;
146
- for (let i = 0; i < tree.subs.length; i++) {
147
- const sub = tree.subs[i];
148
- const directOlderSibling = tree.subs[i - 1];
149
- // 1. if opener whose older sibling is a line, move to first of that sibling's children
150
- if (sub.label === 'opener' && directOlderSibling !== undefined && (0, classes_1.isLine)(directOlderSibling)) {
151
- // Move the bracket to be the last child of it
152
- directOlderSibling.subs.push(sub);
153
- sub.subs.forEach(sub => directOlderSibling.subs.push(sub));
154
- sub.subs = [];
155
- }
156
- // 2. if a closer following an older sibling
157
- else if (sub.label === 'closer' &&
158
- lastNew !== undefined &&
159
- ((0, classes_1.isLine)(sub) || (0, classes_1.isVirtual)(sub)) &&
160
- sub.indentation >= lastNew.indentation) {
161
- // Move intervening blanks from newSubs to lastNew.subs
162
- let j = newSubs.length - 1;
163
- while (j > 0 && (0, classes_1.isBlank)(newSubs[j])) {
164
- j -= 1;
165
- }
166
- lastNew.subs.push(...newSubs.splice(j + 1));
167
- // 3.if the closer in 2 has children themselves, their older siblings are wrapped in a virtual node to distinguish them
168
- // Except for leading blocks of virtual nodes which have already been wrapped that way
169
- // i.e. take the longest initial subsequence of lastNew.subs that are all labeled 'virtual' and don't wrap those again
170
- if (sub.subs.length > 0) {
171
- const firstNonVirtual = lastNew.subs.findIndex(sub => sub.label !== 'newVirtual');
172
- const subsToKeep = lastNew.subs.slice(0, firstNonVirtual);
173
- const subsToWrap = lastNew.subs.slice(firstNonVirtual);
174
- const wrappedSubs = subsToWrap.length > 0 ? [(0, classes_1.virtualNode)(sub.indentation, subsToWrap, 'newVirtual')] : [];
175
- lastNew.subs = [...subsToKeep, ...wrappedSubs, sub];
176
- }
177
- else {
178
- lastNew.subs.push(sub);
179
- }
180
- }
181
- else {
182
- // nothing to do here, just add it normally
183
- newSubs.push(sub);
184
- if (!(0, classes_1.isBlank)(sub)) {
185
- lastNew = sub;
186
- }
187
- }
188
- }
189
- tree.subs = newSubs;
190
- return tree;
191
- };
192
- const returnTree = (0, manipulation_1.rebuildTree)(tree, rebuilder);
193
- (0, manipulation_1.clearLabelsIf)(tree, (arg) => arg === 'newVirtual');
194
- // now returnTree does not have the helper label 'newVirtual' anymore
195
- return returnTree;
196
- }
197
- /**
198
- * If there are more than 1 consecutive sibling separated from others by delimiters,
199
- * combine them into a virtual node.
200
- * The possibly several consecutive delimiters will be put with the preceding siblings into the virtual node.
201
- * Note that offside groupings should be done before this.
202
- */
203
- function groupBlocks(tree, isDelimiter = classes_1.isBlank, label) {
204
- const rebuilder = function (tree) {
205
- if (tree.subs.length <= 1) {
206
- return tree;
207
- }
208
- const newSubs = [];
209
- let nodesSinceLastFlush = [];
210
- let currentBlockIndentation;
211
- let lastNodeWasDelimiter = false;
212
- // we write to nodesSinceLastDelimiter as cache
213
- // if we have a non-delimiter after a delimiter, we flush
214
- // to a new virtual node appended to the newSubs array
215
- function flushBlockIntoNewSubs(final = false // if final, only wrap in virtual if there are newSubs already
216
- ) {
217
- if (currentBlockIndentation !== undefined && (newSubs.length > 0 || !final)) {
218
- const virtual = (0, classes_1.virtualNode)(currentBlockIndentation, nodesSinceLastFlush, label);
219
- newSubs.push(virtual);
220
- }
221
- else {
222
- nodesSinceLastFlush.forEach(node => newSubs.push(node));
223
- }
224
- }
225
- for (let i = 0; i < tree.subs.length; i++) {
226
- const sub = tree.subs[i];
227
- const subIsDelimiter = isDelimiter(sub);
228
- if (!subIsDelimiter && lastNodeWasDelimiter) {
229
- flushBlockIntoNewSubs();
230
- nodesSinceLastFlush = [];
231
- }
232
- lastNodeWasDelimiter = subIsDelimiter;
233
- nodesSinceLastFlush.push(sub);
234
- if (!(0, classes_1.isBlank)(sub)) {
235
- currentBlockIndentation = currentBlockIndentation ?? sub.indentation;
236
- }
237
- }
238
- // treat the end of node like a block end, and make the virtual block if it wouldn't be a singleton
239
- flushBlockIntoNewSubs(true);
240
- tree.subs = newSubs;
241
- return tree;
242
- };
243
- return (0, manipulation_1.rebuildTree)(tree, rebuilder);
244
- }
245
- /**
246
- * Remove unlabeled virtual nodes which either:
247
- * - Have one or no children
248
- * - Are the only child of their parent
249
- * In either case, it is replaced by their children.
250
- */
251
- function flattenVirtual(tree) {
252
- const rebuilder = function (tree) {
253
- if ((0, classes_1.isVirtual)(tree) && tree.label === undefined && tree.subs.length <= 1) {
254
- if (tree.subs.length === 0) {
255
- return undefined;
256
- }
257
- else {
258
- //tree.subs.length === 1
259
- return tree.subs[0];
260
- }
261
- }
262
- else if (tree.subs.length === 1 && (0, classes_1.isVirtual)(tree.subs[0]) && tree.subs[0].label === undefined) {
263
- tree.subs = tree.subs[0].subs;
264
- }
265
- return tree;
266
- };
267
- return (0, manipulation_1.rebuildTree)(tree, rebuilder);
268
- }
269
- /**
270
- * Generic labels.
271
- *
272
- * * opener: A line starting with an opening parens, square bracket, or curly brace
273
- * * closer: A line starting with a closing parens, square bracket, or curly brace
274
- */
275
- const _genericLabelRules = {
276
- opener: /^[[({]/,
277
- closer: /^[\])}]/,
278
- };
279
- const genericLabelRules = buildLabelRules(_genericLabelRules);
280
- const LANGUAGE_SPECIFIC_PARSERS = {};
281
- /**
282
- * Register a language-specific parser for a language.
283
- * This should normally be called in index.ts.
284
- */
285
- function registerLanguageSpecificParser(language, parser) {
286
- LANGUAGE_SPECIFIC_PARSERS[language] = parser;
287
- }
288
- function parseTree(source, languageId) {
289
- const raw = parseRaw(source);
290
- const languageSpecificParser = LANGUAGE_SPECIFIC_PARSERS[languageId ?? ''];
291
- if (languageSpecificParser) {
292
- return languageSpecificParser(raw);
293
- }
294
- else {
295
- labelLines(raw, genericLabelRules);
296
- const processedTree = combineClosersAndOpeners(raw);
297
- return processedTree;
298
- }
299
- }
300
- //# sourceMappingURL=parsing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsing.js","sourceRoot":"","sources":["../../../../../../../../../src/_internal/extension/completions-core/vscode-node/prompt/src/indentation/parsing.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAkChG,4BAiDC;AASD,gCAUC;AAMD,sDAUC;AAMD,0CAaC;AASD,4DAkEC;AAQD,kCAiDC;AAQD,w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AC5D,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7B,MAAM,sBAAsB,GAAG,yBAAyB,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;IAC3E,IAAI,sBAAsB,EAAE,CAAC;QAC5B,OAAO,sBAAsB,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;SAAM,CAAC;QACP,UAAU,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;QACnC,MAAM,aAAa,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;QACpD,OAAO,aAAa,CAAC;IACtB,CAAC;AACF,CAAC"}
@@ -1,26 +0,0 @@
1
- import { Static } from '@sinclair/typebox';
2
- import * as lsp from 'vscode-languageserver-protocol';
3
- export type { TObject, TOptional, TString } from '@sinclair/typebox';
4
- export declare const DidChangeAuthParams: import("@sinclair/typebox").TObject<{
5
- accessToken: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
6
- handle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
- login: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
8
- githubAppId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
- apiUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
- serverUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
11
- tokenEndpoint: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
12
- }>;
13
- export type DidChangeAuthParams = Static<typeof DidChangeAuthParams>;
14
- export declare namespace DidChangeAuthNotification {
15
- const method = "github/didChangeAuth";
16
- const type: lsp.ProtocolNotificationType<{
17
- login?: string | undefined;
18
- accessToken?: string | undefined;
19
- handle?: string | undefined;
20
- githubAppId?: string | undefined;
21
- apiUrl?: string | undefined;
22
- serverUrl?: string | undefined;
23
- tokenEndpoint?: string | undefined;
24
- }, void>;
25
- }
26
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../../../../src/_internal/extension/completions-core/vscode-node/types/src/auth.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,GAAG,MAAM,gCAAgC,CAAC;AAGtD,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAErE,eAAO,MAAM,mBAAmB;;;;;;;;EAQ9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAErE,yBAAiB,yBAAyB,CAAC;IACnC,MAAM,MAAM,yBAAyB,CAAC;IACtC,MAAM,IAAI;;;;;;;;YAAsE,CAAC;CACxF"}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Microsoft Corporation. All rights reserved.
4
- * Licensed under the MIT License. See License.txt in the project root for license information.
5
- *--------------------------------------------------------------------------------------------*/
6
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
- if (k2 === undefined) k2 = k;
8
- var desc = Object.getOwnPropertyDescriptor(m, k);
9
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
- desc = { enumerable: true, get: function() { return m[k]; } };
11
- }
12
- Object.defineProperty(o, k2, desc);
13
- }) : (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- o[k2] = m[k];
16
- }));
17
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
- Object.defineProperty(o, "default", { enumerable: true, value: v });
19
- }) : function(o, v) {
20
- o["default"] = v;
21
- });
22
- var __importStar = (this && this.__importStar) || (function () {
23
- var ownKeys = function(o) {
24
- ownKeys = Object.getOwnPropertyNames || function (o) {
25
- var ar = [];
26
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
27
- return ar;
28
- };
29
- return ownKeys(o);
30
- };
31
- return function (mod) {
32
- if (mod && mod.__esModule) return mod;
33
- var result = {};
34
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
35
- __setModuleDefault(result, mod);
36
- return result;
37
- };
38
- })();
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.DidChangeAuthNotification = exports.DidChangeAuthParams = void 0;
41
- const typebox_1 = require("@sinclair/typebox");
42
- const lsp = __importStar(require("vscode-languageserver-protocol"));
43
- exports.DidChangeAuthParams = typebox_1.Type.Object({
44
- accessToken: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1 })),
45
- handle: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1 })),
46
- login: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1 })),
47
- githubAppId: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1 })),
48
- apiUrl: typebox_1.Type.Optional(typebox_1.Type.String({})),
49
- serverUrl: typebox_1.Type.Optional(typebox_1.Type.String({})),
50
- tokenEndpoint: typebox_1.Type.Optional(typebox_1.Type.String({})),
51
- });
52
- var DidChangeAuthNotification;
53
- (function (DidChangeAuthNotification) {
54
- DidChangeAuthNotification.method = 'github/didChangeAuth';
55
- DidChangeAuthNotification.type = new lsp.ProtocolNotificationType(DidChangeAuthNotification.method);
56
- })(DidChangeAuthNotification || (exports.DidChangeAuthNotification = DidChangeAuthNotification = {}));
57
- //# sourceMappingURL=auth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../../../../../src/_internal/extension/completions-core/vscode-node/types/src/auth.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhG,+CAAiD;AACjD,oEAAsD;AAKzC,QAAA,mBAAmB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;IACzD,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;IACpD,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;IACnD,WAAW,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;IACzD,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtC,SAAS,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACzC,aAAa,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;CAC7C,CAAC,CAAC;AAGH,IAAiB,yBAAyB,CAGzC;AAHD,WAAiB,yBAAyB;IAC5B,gCAAM,GAAG,sBAAsB,CAAC;IAChC,8BAAI,GAAG,IAAI,GAAG,CAAC,wBAAwB,CAA4B,0BAAA,MAAM,CAAC,CAAC;AACzF,CAAC,EAHgB,yBAAyB,yCAAzB,yBAAyB,QAGzC"}