Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
This pull request fixes a crash issue with node editing on
Revit
(see below for detailed test scenarios). The crash originated from the following statement onRevit
:The philosophy of the fix is that if
EditWindow
needs an instance ofDynamoViewModel
, then it should always be supplied with one. And sinceEditWindow
is on the view layer, it is completely fine for it to have a reference toDynamoViewModel
.Test Scenarios
The fix has been tested on the following scenarios:
Edit...
on context menu of aNote
Rename Node...
on context menu of aNode
Edit...
on context menu of aString
nodeEdit...
onVolume From String
nodeEdit...
onPhython
nodeNotes for Reviewers
Hi @sharadkjaiswal, @pboyer, please have a look. I have not been able to hit
editWindowItem_Click
method inString
class (inBasicInteractive.cs
), if you know it that'll be great. All other callers forEditWindow
have been tested working.