-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix Converting circular structure to JSON Error in tree-view #5661
Conversation
Please rewrite the description with the following template:
|
This comment has been minimized.
This comment has been minimized.
This appears to resolve #5666, though the commands still don't work on-click (but that is a separate issue). |
I cannot get I'm getting following errors in the console:
Should I do something else? |
@akosyakov Yes, you are right, I forgot to say about the vscode git extension, updated the description. |
@vinokurig looking as well, can be that git extension is not activated before pr review extension |
|
Sorry there is no mismatch, confused |
@vinokurig please try again, i've pushed a fix to activate dependencies before activating a plugin |
I cannot make this extension work in Gitpod. It asked for authentication but bogus GitHub page is opening. Trying locally... |
Locally I'm getting a new error:
|
Is there a simple plugin to verify a change? cc @vinokurig I cannot get it work, since it expect to sign in from VS Code and does not seem to allow from other IDE, i.e. we provide |
@tetchel Could you provide how to you verify it? I would like to check it again, cannot do it with the PR extension. |
I'm using my extension https://github.com/eclipse/codewind-vscode without the workaround I put in here eclipse-archived/codewind-vscode@92b5683 |
@akosyakov Sorry for the late response
Unfortunately I don't now a simpler way to reproduce the bug.
You can authenticate via GitHub token, The plugin provides a command:
I've tested the latest changes with GitHub PR Plugin and the bug didn't reproduce. |
@vinokurig ok I've tried with Anyway since @tetchel can confirm that it is gone i will approve your part. We need to get rid of merge commits (rebase should be used to pick up changes), and add a comment in the code for #5661 (review). |
It worries me that you can't verify the fix, I will put together a simple plugin for verification later today |
I've put together a sample for reproducing this: https://github.com/tetchel/vscode-extension-samples/tree/theia-5561/tree-view-sample there is a built vsix there you may use. I edited the File Explorer sample to pass an object to its treeitems' In the logs:
After building from this PR, it works again. So this does fix #5666 :) |
I should clarify that clicking/double-clicking the tree items still does not invoke the |
Signed-off-by: Igor Vinokur <ivinokur@redhat.com>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've verified that:
- converting circular structure JSON error is gone with @tetchel example, thank you for an example ❤️
- pull request extension is activated after git extension activation
Let's merge it today if build is green and no one objects. |
Please merge |
What it does
Pass
id
to tree item command arguments like in vscode:https://github.com/microsoft/vscode/blob/c5cdf50e1708b962382821e782746b06c4cdf53b/src/vs/workbench/api/common/extHostTreeViews.ts#L455
https://github.com/microsoft/vscode/blob/c5cdf50e1708b962382821e782746b06c4cdf53b/src/vs/workbench/api/common/extHostCommands.ts#L236
fixes eclipse-che/che#13790
How to test
plugins
directory (create the directory in the root if not present)plugins
directory (create the directory in the root if not present)git
extension in theexamples/browser/package.json
WRONG: pull request items don't expand
Review checklist
Reminder for reviewers