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 implement LanguageServiceHost::resolveModuleNames with full NodeNext 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 of LanguageServiceHost::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
Suggestion
π Search Terms
LanguageServiceHost
resolveModuleNames
getModeForResolutionAtIndex
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
Expose
ts.getModeForResolutionAtIndexas part of public API, or otherwise provide a way to implementLanguageServiceHost::resolveModuleNameswith fullNodeNextcompatibility.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.getModeForResolutionAtIndexwithin my implementation ofLanguageServiceHost::resolveModuleNamesTypeStrong/ts-node#1782
Link to the invocation of
getModeForResolutionAtIndexhttps://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