bountybounty-100enhancementhelp wanted
説明
Splitting out from #1326 - integrate 'auto-import' functionality from TypeScript. This should generalize to other completion providers, too.
- Implement
additionalTextEditsandtextEditforCompletionItemsas defined by the completion request in the language server protocol: https://microsoft.github.io/language-server-protocol/specification - Update our
TypeScriptServerHostto sendadditionalTextEditsfor auto-imports. This will involve settting theincludeExternalModuleExportsfor the completions request, hooking up entry details resolution to get information about the additional code actions as part of the details request, and resolving those code actions to text edits. Looks like we'll need to plumb the 'source' through somehow, as this is needed when calling to get details.