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

Add moduleSearchPaths to preprocessor config #43

Merged
merged 3 commits into from
May 25, 2024

Conversation

dannymcgee
Copy link
Owner

This update adds a new configuration property, wgsl.preprocessor.moduleSearchPaths. This represents an optional array of additional directories to consider when trying to resolve module imports.

Currently, adding an external directory has the unfortunate side effect of reporting errors and warnings from every WGSL document in that directory, regardless of whether they're pertinent to documents in the user's workspace. In VS Code, those diagnostics are eventually pruned, but it takes some time. I don't see this as a huge issue for now, but this can be investigated in the future if it proves to be annoying or problematic for users.

...eventually. More reliable detection of actually-opened documents would make
this more reliable, but I'll hold off on that effort pending user feedback.
@dannymcgee dannymcgee merged commit e8f2de2 into main May 25, 2024
1 check passed
@dannymcgee dannymcgee deleted the config-module-search-paths branch May 25, 2024 01:49
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