-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Theia can't open files located in a sidecar container #13614
Comments
It is turned out to be a more general issue when plugin sends request to Theia to open an file that exists only in a sidecar container.
|
It is relatively easy to redirect a request to retrieve content from a side-car container, but we have to take into account that redirection matters only for files that are not available from a Theia container. |
An approach would be to rewrite some URIs (those not under /projects) when we get them from plugins and redispatch them to the plugin containers for resolving contents, etc. We should start a conversation about this on che-dev and do a spike first. |
The solution might be accomplished in following steps. (It has been tested yet)
|
@tolusha but if I understand correctly, the file being opened is, for example as a result of a "goto definition" request, which is not going through "open document". |
It probably will require to override some other API calls but I don't know for sure which ones. |
@tolusha all of them which return a URI. But for a PoC, we could start with the case that fails with the CPP extension |
It is possible to open files from a sidecar container in the Theia
|
We still have issue with gotoDefinition for c/c++ plugin
|
@tolusha yes, we need to override all requests that return an uri from a sidecar, like "references", "definitions", etc, etc. We will not be able to catch them all (for example, if uri's are inside command parameters, which are unknown to us), but most of them. |
I think handling uri's in the languages namespace would go a long way: https://code.visualstudio.com/api/references/vscode-api#languages |
We'll start by fixing the issue with the C++ plugin and provide a PR for that (definitions provider). |
I've added overriding definition provider [1] and it allowed |
Description
Reproduction Steps
typescript.tsserver.trace
toverbose
Open TS server log file
OS and version:
Che-7.0.0-CR2
Diagnostics:
LS sends request to Theia to open a log file but Theia can't find the file because it is located in a side-car container.
#13428
The text was updated successfully, but these errors were encountered: