-
Notifications
You must be signed in to change notification settings - Fork 325
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
Intercept client paths #746
Comments
LanguageClientOptions#uriConverters is your friend. |
@dbaeumer thank you for this pointer. vscode-languageserver-node/client/src/common/client.ts Lines 3188 to 3190 in 7d7b702
|
That is an oversight. |
My mistake. It is by design. The rootPath is a path not a URI. The rootURI goes through the transformer. See https://github.com/microsoft/vscode-languageserver-node/blob/master/client/src/common/client.ts#L3207 |
I'm trying to run my language server inside a docker container.
This works out but the host is on Windows and the language server is running inside Docker.
So I'm getting errors like:
Notice:
/workspace/c:\Users\nojaf\Projects\fantomas\src\Fantomas\RangeHelpers.fs
/workspace
is the folder inside the container where the server is running.c:\Users\nojaf\Projects\fantomas\src\Fantomas\RangeHelpers.fs
is the client path.Could I somehow intercept messages on the client before they go to the server to update the file path?
PS: Yes, I'm aware of devcontainers, that is not an option as I'm not running my extension in VSCode.
Please answer if file path interception is a thing here.
The text was updated successfully, but these errors were encountered: