Repository navigation
Fix crash when closing PMUI ToolWindow preventing tab closure. - #3423
Merged
Merged
Conversation
mirkomuggli
requested review from
aortiz-msft,
cristinamanum,
dominoFire,
donnie-msft,
dtivel,
heng-liu,
kartheekp-ms,
nkolev92,
rrelyea,
zivkan and
zkat
as code owners
May 29, 2020 17:26
donnie-msft
approved these changes
May 29, 2020
donnie-msft
left a comment
Contributor
There was a problem hiding this comment.
Nonblocking comments..
|
|
||
| [assembly: SuppressMessage("Build", "CA1307:The behavior of 'string.Equals(string)' could vary based on the current user's locale settings. Replace this call in 'NuGet.VisualStudio.OnlineEnvironment.Client.NuGetWorkspaceCommandHandler.IsSolutionOnlySelection(System.Collections.Generic.List<Microsoft.VisualStudio.Workspace.VSIntegration.UI.WorkspaceVisualNodeBase>)' with a call to 'string.Equals(string, System.StringComparison)'.", Justification = "<Pending>", Scope = "member", Target = "~M:NuGet.VisualStudio.OnlineEnvironment.Client.NuGetWorkspaceCommandHandler.IsSolutionOnlySelection(System.Collections.Generic.List{Microsoft.VisualStudio.Workspace.VSIntegration.UI.WorkspaceVisualNodeBase})~System.Boolean")] | ||
| [assembly: SuppressMessage("Build", "CA1031:Modify 'RunSolutionRestoreAsync' to catch a more specific allowed exception type, or rethrow the exception.", Justification = "<Pending>", Scope = "member", Target = "~M:NuGet.VisualStudio.OnlineEnvironment.Client.RestoreCommandHandler.RunSolutionRestoreAsync~System.Threading.Tasks.Task")] | ||
| [assembly: SuppressMessage("Reliability", "CA2000:Dispose objects before losing scope", Justification = "<Pending>", Scope = "member", Target = "~M:NuGet.VisualStudio.OnlineEnvironment.Client.PackageManagerUICommandHandler.CreateToolWindowAsync(System.String,System.String,Microsoft.VisualStudio.Shell.Interop.IVsHierarchy,System.UInt32)~System.Threading.Tasks.Task{Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame}")] |
Contributor
There was a problem hiding this comment.
Put a note for the Justification
| 0, // dwToolWindowId - singleInstance = 0 | ||
| windowPane, // ToolWindowPane | ||
| Guid.Empty, // rclsidTool = GUID_NULL | ||
| Guid.NewGuid(), // TODO: should be projectGuid...so persistance info works. |
Contributor
There was a problem hiding this comment.
Tracking issue for TODO
| { | ||
| if (windowPane != null) | ||
| { | ||
| windowPane.Dispose(); |
Contributor
There was a problem hiding this comment.
Is this the cause of the Suppression for not disposing? If so, should that be global or should it be just on this method?
Author
There was a problem hiding this comment.
Either works, really. I put this here because I was asked to put the last suppression I had to add into the global file :)
sbanni
force-pushed
the
dev-feature-OE.PMUI
branch
2 times, most recently
from
June 9, 2020 18:10
d92f8a4 to
a0a5e5c
Compare
Member
|
@mirkomuggli please rebase this branch, or close if this PR is no longer needed. |
Contributor
|
this PR has 7 commits in it. Are some of those already merged into feature branch? |
mirkomuggli
force-pushed
the
dev-mirkomug-tabclose
branch
3 times, most recently
from
June 16, 2020 21:08
03ce43e to
4a5581b
Compare
zivkan
approved these changes
Jun 18, 2020
sbanni
force-pushed
the
dev-feature-OE.PMUI
branch
from
June 23, 2020 16:59
a0a5e5c to
db13dc6
Compare
mirkomuggli
force-pushed
the
dev-mirkomug-tabclose
branch
from
June 23, 2020 17:10
4a5581b to
0fcaee1
Compare
sbanni
force-pushed
the
dev-feature-OE.PMUI
branch
from
June 24, 2020 20:30
db13dc6 to
35e1804
Compare
mirkomuggli
force-pushed
the
dev-mirkomug-tabclose
branch
3 times, most recently
from
June 24, 2020 21:28
baf5281 to
bcac32a
Compare
mirkomuggli
force-pushed
the
dev-mirkomug-tabclose
branch
from
June 24, 2020 21:48
bcac32a to
7a09912
Compare
sbanni
pushed a commit
that referenced
this pull request
Jul 2, 2020
sbanni
pushed a commit
that referenced
this pull request
Jul 14, 2020
mirkomuggli
added a commit
that referenced
this pull request
Jul 15, 2020
rrelyea
pushed a commit
that referenced
this pull request
Aug 12, 2020
dtivel
pushed a commit
that referenced
this pull request
Sep 3, 2020
dtivel
pushed a commit
that referenced
this pull request
Sep 4, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Bug
Fixes: 9626
Regression: No
Fix
Changed Dispose logic to dispose the ToolWindow during OnClose, instead of immediately after creating the object.
Testing/Validation
Tests Added: No
Reason for not adding tests: Basic functionality, not something that'll change once it's working.
Validation: It's working now :)