Skip to content

fix(check): support "compilerOptions.rootDirs" in tsconfig #30495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nayeemrmn
Copy link
Contributor

Fixes most of:

The last part for OOTB support is enabling sloppy imports for compilerOptions.moduleResolution != "nodenext" ("bundler" is the only other we plan to support). See #30048.

Comment on lines +1210 to +1216
// TODO(nayeemrmn): This represents a circular dependency between
// `LspCompilerOptionsResolver` and `LspResolver` because the former uses
// the node resolver to resolve `extends` in tsconfig. Break out the node
// resolver from `LspResolver`.
self
.resolver
.set_compiler_options_resolver(&self.compiler_options_resolver.inner);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cutting a corner for #30048 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant