savoirfairelinux / vscode-bitbake

Bitbake language support for Visual Studio Code (Forked from EugenWiens)
https://marketplace.visualstudio.com/items?itemName=yocto-project.yocto-bitbake
Other
9 stars 0 forks source link

Fix: Change working directory for relative paths settings #76

Closed deribaucourt closed 10 months ago

deribaucourt commented 10 months ago

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 commented 10 months ago

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

deribaucourt commented 10 months ago

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