-
Notifications
You must be signed in to change notification settings - Fork 3
fix: DH-20899: Tree view command errors #270
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
Conversation
No docs changes detected for cd7234f |
End-to-end Test Summary
Failed Test SummaryNo failed tests ✨ |
Unit Test Summary
Failed Test SummaryNo failed tests ✨ |
mofojed
left a comment
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.
Do you have an issue filed in VS Code for why undefined is coming through? That seems like a bug...
I guess you'd be able to tell in the tree provider if a getTreeItem was called and returned undefined. It seems odd to have to add this protective check in every single context menu handler.
| serverState: ServerState | ||
| serverState: ServerState | undefined | ||
| ): Promise<void> => { | ||
| // Sometimes view/item/context commands pass undefined instead of a tree. |
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.
This comment is strange. "instead of a tree. node." But it doesn't pass either of those?
Probably just say "instead of a value".
mofojed
left a comment
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.
Would appreciate filing a bug for VS Code as well just for tracking.
|
I filed microsoft/vscode#283655 and updated comments in this PR to reference it |
mofojed
left a comment
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.
Nice filed bug too!
DH-20899: Fixed some treeview command errors