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

Check if the passed in node is a LocalProjectTreeItem #3370

Merged
merged 2 commits into from
Oct 14, 2022

Conversation

nturinski
Copy link
Member

Fixes #3369

Because of this change, the Local Project tree item will get passed in to deploy which is what's causing the error.

I think when we use the new wrapper, since we pass in node and nodes , it might be easier for us to tell when a node was right-clicked vs. just selected, though I'm not sure how VS Code passes us those args yet.

I assume that once that changes, we can change how we do this check.

@nturinski nturinski requested a review from a team as a code owner October 13, 2022 21:12
alexweininger
alexweininger previously approved these changes Oct 13, 2022
Copy link
Member

@alexweininger alexweininger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow. I can repro the Cannot read properties of undefined (reading 'createClient') error, but not the isLinux one. Do you know how to repro that?

@nturinski
Copy link
Member Author

Wow. I can repro the Cannot read properties of undefined (reading 'createClient') error, but not the isLinux one. Do you know how to repro that?

I haven't been able to repro it either. Still kinda poking around, but really not sure how it's happening. What's crazy is once you have selected something, even if you unselect it, it still passes that tree item in. Super annoying. Only way to unselect something is to reload the window.

@alexweininger
Copy link
Member

Only way to unselect something is to reload the window.

I noticed the same thing. Weird.

@nturinski nturinski merged commit 7845300 into main Oct 14, 2022
@nturinski nturinski deleted the nat/skipLocalProjectNode branch October 14, 2022 18:17
nturinski added a commit that referenced this pull request Oct 15, 2022
* Check if the passed in node is a LocalProjectTreeItem

* Add comment to replace isAzExtTreeItem
nturinski added a commit that referenced this pull request Oct 17, 2022
* Check if the passed in node is a LocalProjectTreeItem

* Add comment to replace isAzExtTreeItem
nturinski added a commit that referenced this pull request Oct 18, 2022
* Check if the passed in node is a LocalProjectTreeItem (#3370)

* Check if the passed in node is a LocalProjectTreeItem

* Add comment to replace isAzExtTreeItem

* Changelog for patch fix

* Actually save changelog...

* Update version

* Update date
nturinski added a commit that referenced this pull request Oct 27, 2022
* Check if the passed in node is a LocalProjectTreeItem (#3370) (#3373)

* Check if the passed in node is a LocalProjectTreeItem

* Add comment to replace isAzExtTreeItem

* Nat/1.8.2changelog (#3375)

* Check if the passed in node is a LocalProjectTreeItem (#3370)

* Check if the passed in node is a LocalProjectTreeItem

* Add comment to replace isAzExtTreeItem

* Changelog for patch fix

* Actually save changelog...

* Update version

* Update date

* Revert addition of PyStein "feature flag" setting. (#3386)

* Version bump and CHANGELOG update. (#3387)

Co-authored-by: Nathan <[email protected]>
@microsoft microsoft locked and limited conversation to collaborators Nov 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot read properties of undefined (reading 'isLinux')
3 participants