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(core): fix workspace scanner in LSP #5286

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

arendjr
Copy link
Contributor

@arendjr arendjr commented Mar 6, 2025

Summary

Turns out the issue with the scanner in the LSP was just a footgun I ran into with Tokio: I was passing an async scan function to tokio::spawn_blocking(), which ended up doing... nothing, because nobody awaits the returned Future.

With that fixed, I immediately discovered that our LSP triggers 4 calls to the scanner because of some config updates it tries to process, so I implemented the functionality to not always rescan folders that are already being watched.

Test Plan

Tests are updated and should remain green. Manually tested too.

@arendjr arendjr requested review from a team March 6, 2025 10:59
@github-actions github-actions bot added A-CLI Area: CLI A-Project Area: project A-LSP Area: language server protocol labels Mar 6, 2025
Copy link
Member

@siketyan siketyan left a comment

Choose a reason for hiding this comment

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

Looks good to me, great work!

@arendjr arendjr merged commit 053bfa1 into biomejs:main Mar 6, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Area: CLI A-LSP Area: language server protocol A-Project Area: project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants