Skip to content

Fix matching files when config is not in the workspace root #1412

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

Merged
merged 4 commits into from
Jun 16, 2025

Conversation

thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented Jun 14, 2025

In IntelliSense we have this special behavior where if we only detect a single config in a workspace then that config will cover files opened in the entire workspace. We broke this accidentally in v0.14.16 because we made sure document selectors were re-calculated correctly for v4 projects files. With how things are structured/shared this setup is the same for v3 and v4 and we accidentally wiped out the "root" selector we'd add to the project if it was the only one in a given workspace folder.

So this isn't usually a problem but definitely can be if:

  • You have a v3 project where the config file isn't in the root
  • You have a v4 project where automatic source detection was disabled or failed to run

This should hopefully fix any project matching issues people have had that broke from v0.14.17 and later.

Fixes #1404 (and maybe #1377)

  • tests

@thecrypticace thecrypticace changed the title Fix matching files when config is not in root of project Fix matching files when config is not in the workspace root Jun 14, 2025
@thecrypticace thecrypticace merged commit 772cc6c into main Jun 16, 2025
12 checks passed
@thecrypticace thecrypticace deleted the feat/config-matching-not-in-root branch June 16, 2025 16:55
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.

not picking project files properly in Zed 0.14.17-0.14.21
2 participants