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: Change working directory for relative paths settings #76

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

deribaucourt
Copy link
Member

Settings like pathToBitbakeFolder should use "${workspaceFolder}" to point to relative URIs. However if the user uses a relative path like "./", the language server did resolve it properly, but not the client. We now set the working directory to the workspace folder to be consistent.

This does not produce unintended side effects according to our tests.

Settings like pathToBitbakeFolder should use "${workspaceFolder}" to
point to relative URIs. However if the user uses a relative path like
"./", the language server did resolve it properly, but not the client.
We now set the working directory to the workspace folder to be
consistent.

This does not produce unintended side effects according to our tests.
@WilsonZiweiWang
Copy link
Collaborator

I confirmed that this fixed the parsing error on my side, could you also have a test for it?

@deribaucourt
Copy link
Member Author

I confirmed that this fixed the parsing error on my side, could you also have a test for it?

@WilsonZiweiWang I added a commit with the test

@deribaucourt deribaucourt merged commit 714afa3 into staging Nov 15, 2023
3 checks passed
@deribaucourt deribaucourt deleted the relative-paths-settings branch November 15, 2023 15:46
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.

3 participants