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

don't open every zig file in the workspace just to look for tests #254

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

Techatrix
Copy link
Collaborator

A while ago I noticed that ZLS started to open files even though I didn't open them myself. I didn't think much of it until I checked out the Zig compiler codebase today and saw ZLS endlessly loading files. The project currently contains 2929 .zig files. The cause has been the ZigTestRunnerProvider which is trying to open every zig file to search for tests.
Identifying the tests of a workspace is not easily done correctly but this is just asking the extension to self destruct.

@Vexu Vexu merged commit 3535bb8 into master Dec 10, 2024
2 checks passed
@Vexu
Copy link
Member

Vexu commented Dec 10, 2024

Thanks! Not sure how I missed that but this has been making ZLS unusable for me in the Zig repo. I guess it's a combination of my system being a bit unstable lately and not spending as much time in that repo.

Do you think you might have any more small fixes coming or should I release a 0.6.2 right away?

@Techatrix
Copy link
Collaborator Author

I don't have any more fixes planned for now. Feel free to tag a release.

@Techatrix Techatrix deleted the techatrix/remove-test-scan branch December 11, 2024 18: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.

2 participants