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

lsp: Watch for gleam.toml paths in worktrees #3594

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

osiewicz
Copy link

@osiewicz osiewicz commented Sep 6, 2024

Currently Gleam Language Server watches for changes to **/gleam.toml - which is a global path. This is probably undesired, as we only really need to watch for changes in the worktree this server is spawned for.
This PR uses workspace_folders provided by clients to root the watched paths.

This came up (and unsurfaced a bug) in zed-industries/zed#17206.

Currently Gleam Language Server watches for changes to **/gleam.toml - which is a global path. This is probably undesired, as we only really need to watch for changes in the worktree this server is spawned for.
This came up (and unsurfaced a bug) in zed-industries/zed#17206.
Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Thank you. Could you extract this to a helper function and add a test for it please 🙏

The changelog will need to be updated too.

Please un-draft when you are ready for a review.

@lpil lpil marked this pull request as draft September 20, 2024 13:25
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