Skip to content
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

fix(check): compiler options from workspace members #27009

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

nayeemrmn
Copy link
Collaborator

@nayeemrmn nayeemrmn commented Nov 22, 2024

Closes #24504.
Blocked by denoland/deno_config#143.
Blocked by crate updates in #27096.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

TODO: Add needed deno_config APIs, currently using hacks but it works.

Considering the 2.1 release passed, maybe let's spend the time to do this right before merging?

@nayeemrmn
Copy link
Collaborator Author

Yeah this is not for landing yet

@nayeemrmn nayeemrmn marked this pull request as draft November 23, 2024 02:46
@nayeemrmn nayeemrmn added the ci-draft Run the CI on draft PRs. label Nov 26, 2024
@nayeemrmn nayeemrmn changed the title feat(check): compiler options from workspace members fix(check): compiler options from workspace members Nov 27, 2024
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

Does this work for deno test and deno bench?

} else {
found_specifiers = true;
}
let factory = CliFactory::from_cli_options(Arc::new(cli_options));
Copy link
Member

Choose a reason for hiding this comment

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

Ideally we should only be creating a single factory. Why is all this setup code necessary here?

Copy link
Collaborator Author

@nayeemrmn nayeemrmn Nov 30, 2024

Choose a reason for hiding this comment

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

The factory's services used below are based on a single WorkspaceDirectory currently. I wanted to contain the changes somewhere for now but I can keep working on it.

ConfigFlag::Path(_) => false,
ConfigFlag::Disabled => false,
};
if is_discovered_config {
Copy link
Member

Choose a reason for hiding this comment

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

Why do we only do this for discovered configuration files? Can you add a comment explaining?

.await
Ok(
main_graph_container
.check_specifiers(&specifiers_for_typecheck, None)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should handle this exclusively in check_specifiers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-draft Run the CI on draft PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support compilerOptions in workspace members
3 participants