Add support for relative release path overrides - #97
Conversation
|
Hi @kristoff3r ! The change looks good but I'm not entirely sure I understand the problem, and therefore that this is the right solution. Could you give a specific example of how you're using this to do something you couldn't before? |
Sure, I'll try to list the steps I tried before I ended up making this PR.
#!/bin/sh
expert --stdio
There are probably a bunch of other solutions that could make experimenting with |
|
Thanks for the detailed explanation, the situation is much clearer to me now! If vscode-lexical gave you the option to launch expert directly from I think it's worth merging relative paths either way, just wondering if that could be worthwhile in the future. |
That would save the indirection to the script, so that would be even better. As long as it allows me to provide the binary on PATH myself and doesn't require auto install, as that works poorly on NixOS. |
I'll try to see if I can get that done then. In the meantime I've updated the logging a bit and added tests to this current branch and will merge it. Expect a release later today! Thanks for the contribution @kristoff3r! |
I wanted to try using this extension with the new expert lsp in my project, but I couldn't find a way to keep it self-contained without hardcoding an absolute path. VSCode doesn't support variables in settings, and this extension checks that the file exists at the path given, meaning I can't just have it in PATH. This PR solves it by interpreting relative paths as being relative to the workspace directory.
I also improved the logging, as most cases where the file didn't exist wouldn't print anything.