Impossible to implement LanguageServiceHost::resolveModuleNames
without using TS internal getModeForResolutionAtIndex
#49340
Labels
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
Suggestion
π Search Terms
LanguageServiceHost
resolveModuleNames
getModeForResolutionAtIndex
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
Expose
ts.getModeForResolutionAtIndex
as part of public API, or otherwise provide a way to implementLanguageServiceHost::resolveModuleNames
with fullNodeNext
compatibility.Alternatively, I might be wrong if there is a different correct way to implement
resolveModuleNames
.π Motivating Example
This attempted bugfix, where I am using
ts.getModeForResolutionAtIndex
within my implementation ofLanguageServiceHost::resolveModuleNames
TypeStrong/ts-node#1782
Link to the invocation of
getModeForResolutionAtIndex
https://github.com/TypeStrong/ts-node/pull/1782/files#diff-c654137f603e726b39295587f26aee8130da50d8c019ba7e176b201917f17e56R101-R107π» Use Cases
ts-node, which JIT compiles and typechecks using the LanguageService, and supports
NodeNext
The text was updated successfully, but these errors were encountered: