Skip to content

Conversation

siketyan
Copy link
Member

Summary

During the initialisation process of the workspace from LSP, the root directory of the project is overriden by the specified configuration path. I believe it's not intended when we use any custom configuration file, and replaced the logic to always use the current working directory even if the configuration path is provided.

Test Plan

Manually tested with VS Code.

@siketyan siketyan requested review from nhedger and a team May 24, 2025 12:22
@siketyan siketyan self-assigned this May 24, 2025
@github-actions github-actions bot added the A-LSP Area: language server protocol label May 24, 2025
@siketyan siketyan marked this pull request as draft May 24, 2025 12:25
Copy link
Member

@nhedger nhedger left a comment

Choose a reason for hiding this comment

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

Thanks !

I can confirm this now works as expected.

@siketyan siketyan force-pushed the fix/lsp-config-override branch from 19861d4 to e28da2c Compare May 24, 2025 13:05
@siketyan siketyan marked this pull request as ready for review May 24, 2025 13:06
@github-actions github-actions bot added the A-Project Area: project label May 24, 2025
Copy link
Member

@ematipico ematipico 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! Can you add a changeset for our users?

@siketyan
Copy link
Member Author

siketyan commented May 27, 2025

@ematipico Custom configuration path from LSP workspaces is added by #5093, which is not released yet. Thus we can skip a changeset, is it correct?

@ematipico
Copy link
Member

Oh sorry, I forgot that. Thank you!

@siketyan siketyan merged commit bcb1b24 into biomejs:main May 27, 2025
11 checks passed
@siketyan siketyan deleted the fix/lsp-config-override branch May 27, 2025 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LSP Area: language server protocol A-Project Area: project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants