Pass --project-root in the language server
We do not pass --project-root
to scopes in the language server, which causes imports from the LIGO registry to fail.
Acceptance criteria
- We use
--project-root
to resolve paths.- Ideally, we'd probably use a
.ligoproject
file for this, but I believe an initial implementation might use the file's directory as a cwd to look in backwards directories to find apackage.json
. - But I believe LIGO already does this search from the cwd, so we might not need to explicitly look in the language server.
- Ideally, we'd probably use a
- Tests added.
- VS Code also supports
--project-root
. We might need to expose a custom request to return such project root as per its implementation.