-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: support "compilerOptions.rootDirs" #152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
pub struct WorkspaceResolver { | ||
struct CompilerOptionsRootDirsResolver<TSys: FsMetadata> { | ||
root_dirs_from_root: Vec<Url>, | ||
root_dirs_by_member: BTreeMap<Url, Option<Vec<Url>>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: Maybe we should just not have a member entry when its value is None
? Or do we need to represent this as None
? (if not, it would slightly reduce the number of comparisons)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes a difference if you have members within members, to prevent cascading inheritance between them in some cases.
(We have cascading inheritance for import maps as a side-effect of using scopes
but not for other fields.)
Downstream: denoland/deno#27844.