Use 'viewId' as progress location#8700
Conversation
|
I also give it a try... |
This does not seem to work with a custom view inside a custom view container. I will try to come up with a public, stripped-down example later today. Is this urgent to merge, @RomanNikitenko? |
796f040 to
f6cd116
Compare
I tested the solution for About
I provided these changes within another issue. If it works for main views and doesn't work for some specific case - I think we could merge the PR and create a separate issue for the specific case to have an ability investigate this area more deeply. Anyway I'm open for discussion - if there is the opinion that we can not merge the PR as is - then the solution should be improved before merge. |
Sure, I will. All cases should work after merging this PR.
No, I don't see it this way. Although nobody asked me for a review here, I spent my time investigating the VS Code source and proposed a reasonable code change. I tried your modification in-action; it did not work. Now I am creating a VS Code example for you. I do not want to come back for another follow-up PR review. This should be solved with this PR. Thank you for your understanding, and I am hoping to see this change in Theia ASAP. 👍 |
Here is the repo with the example, you can build one and try it. In VS Code, you open the new view container, it has one view (it shows your user home) and you execute the |
OK, As I mentioned above:
===================================
thanks a lot! |
I did not see the review request, sorry 😊. I just wanted to try the new feature. |
|
@kittaakos Could you take a look what's wrong in my steps? |
I made some changes and verified it, it should work now. Thanks, @RomanNikitenko 🙏 |
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
f6cd116 to
ef4a7c1
Compare
|
@kittaakos |
kittaakos
left a comment
There was a problem hiding this comment.
I have verified with a custom view, it works. Thank you, @RomanNikitenko 👍





What it does
Fixes #8703
At the moment it's possible to use ProgressLocation enum only as a location at which progress should show.
The PR is aligning location field to the corresponding field of VS Code to provide an opportunity to use
viewIdas progress location.How to test
I created a test plugin, it contains commands for testing
theia/pluginsfolder.First 3 commands use
viewId(new behavior) to show progress while running the given callback, the last command uses ProgressLocation enum to show progress for SCM view (existed behavior).Review checklist
Reminder for reviewers
Signed-off-by: Roman Nikitenko rnikiten@redhat.com