But when calling textDocument/definition to jump into a definition that is inside my workspace, even when it understands in which file I'm executing the command (given that the request specifies the filename with the base URI of my local filesystem, i.e. file:///home/me/dev/my_project/some_python_file.py), the language server returns a reference to his own filesystem:
Editor request:
so my editor can't find the file in the filesystem. I'm not sure what the specification says about these not-in-the-same-filesystem environments, but shouldn't the language server respond with the adapted base URI?
Scenario:
/home/me/dev/my_project
, where my source code lives. I edit python files inside that directory./app/my_project
When my editor initializes, it communicates to the language server which is my rootUri:
But when calling
textDocument/definition
to jump into a definition that is inside my workspace, even when it understands in which file I'm executing the command (given that the request specifies the filename with the base URI of my local filesystem, i.e.file:///home/me/dev/my_project/some_python_file.py
), the language server returns a reference to his own filesystem: Editor request:Python Language Server response:
so my editor can't find the file in the filesystem. I'm not sure what the specification says about these not-in-the-same-filesystem environments, but shouldn't the language server respond with the adapted base URI?