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

feat(lsp): workspaces #2607

Merged
merged 11 commits into from
May 6, 2024
Merged

feat(lsp): workspaces #2607

merged 11 commits into from
May 6, 2024

Conversation

ematipico
Copy link
Member

@ematipico ematipico commented Apr 26, 2024

Summary

Closes #1573

This PR adds support for LSP workspaces to Biome LSP. Our internal implementation of ServerWorkspace will keep track of the different workspaces registered by the user.

The Biome LSP now listens to did_change_workspace_folders, which is triggered when a user changes (adds and/or removes) workspace folders.

We will need to update our documentation, and explain that providing a --config-path will remove the support of that via LSP. Essentially, users can't have both.

Test Plan

I added a new test and tested manually

@github-actions github-actions bot added A-Project Area: project A-LSP Area: language server protocol A-Changelog Area: changelog labels Apr 26, 2024
Copy link

codspeed-hq bot commented Apr 26, 2024

CodSpeed Performance Report

Merging #2607 will not alter performance

Comparing feat/support-workspace-lsp (88c5445) with main (43525a3)

Summary

✅ 85 untouched benchmarks

@ematipico ematipico force-pushed the feat/support-workspace-lsp branch from ec1b7b4 to e3117ee Compare May 2, 2024 09:16
@ematipico ematipico force-pushed the feat/support-workspace-lsp branch from 85e015d to 91539b5 Compare May 3, 2024 07:40
@ematipico ematipico force-pushed the feat/support-workspace-lsp branch from b752dd0 to 9795a3d Compare May 3, 2024 12:10
@ematipico ematipico force-pushed the feat/support-workspace-lsp branch from 9795a3d to 991a23d Compare May 3, 2024 12:16
@ematipico ematipico added the S-Feature Status: new feature to implement label May 3, 2024
@ematipico ematipico force-pushed the feat/support-workspace-lsp branch from 6ab9c24 to d4f57f8 Compare May 3, 2024 13:01
@ematipico ematipico requested review from a team May 3, 2024 13:11
@Conaclos Conaclos added this to the Biome 1.8 milestone May 4, 2024
@ematipico ematipico merged commit 62beb76 into main May 6, 2024
15 checks passed
@ematipico ematipico deleted the feat/support-workspace-lsp branch May 6, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog A-LSP Area: language server protocol A-Project Area: project S-Feature Status: new feature to implement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

📎 LSP: support for Workspaces
4 participants