Skip to content
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

How to specify the file to be opened (URL API or the way keeping query parameters upto Theia Plugin). #20495

Closed
gorshkov-leonid opened this issue Sep 21, 2021 · 4 comments
Labels
area/dashboard kind/question Questions that haven't been identified as being feature requests or bugs. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@gorshkov-leonid
Copy link

gorshkov-leonid commented Sep 21, 2021

Summary

Hello, my question is related to eclipse-theia/theia#8292.
But because workspace-loader was replaced with che-dashboard this question became actual again.
I need to share a link to a specific file(with line and column) in a workspace. The problem was solved with a custom plugin that reads query parameters and uses Theia API to open files. The base of the solution was the ability to pass query parameters to the plugin. It was possible with URIs like /workspace-loader/lego/temp-prj?f=/projects/22.txt&l=61&c=421&uid=42

But now there is no workspace-loader and I use link from workspace dto, for example, https://server8wkx32v7-jwtproxy-server-4402.k8s.managed.cloud/#/projects?f=/projects/22.txt&l=61&c=421&uid=42. It works as well as earlier, except expanding left panel (see #20494).

Does any better approach exist to open files via URL API? Or maybe somebody knows how to get query parameters in a custom plugin without using links to jwtproxy, ideally with the usage of link in the context of workspace?

Relevant information

No response

@gorshkov-leonid gorshkov-leonid added the kind/question Questions that haven't been identified as being feature requests or bugs. label Sep 21, 2021
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Sep 21, 2021
@azatsarynnyy azatsarynnyy added area/dashboard and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Sep 21, 2021
@azatsarynnyy
Copy link
Member

cc @sleshchenko

@sleshchenko
Copy link
Member

But now there is no workspace-loader and I use link from workspace dto, for example, https://server8wkx32v7-jwtproxy-server-4402.k8s.managed.cloud/#/projects?f=/projects/22.txt&l=61&c=421&uid=42. It works as well as earlier, except expanding left panel (see #20494).

This way is good enough.
Also, we can guide how to pass params from dashboard in case like

${che_host}/dashboard/#/ide/opentlc-mgr-che/spring-petclinic-pv2s${params-here-in-some-format}

or just drop feature request but not any promise when it can be done.

I wonder if you share the same account with the user you share link?

@gorshkov-leonid
Copy link
Author

gorshkov-leonid commented Oct 4, 2021

@sleshchenko thank you

Also, we can guide how to pass params from dashboard in case like

It would be great!

I wonder if you share the same account with the user you share link?

Actually, the link is not shared in general meaning. To be exact, an external system retrieves and shows this link navigating to cloud IDE. This system uses the same token from keycloak as Che.

@che-bot
Copy link
Contributor

che-bot commented Apr 2, 2022

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 2, 2022
@che-bot che-bot closed this as completed Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard kind/question Questions that haven't been identified as being feature requests or bugs. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

4 participants