Fix Move Diagrams to Separate File and Model Browser restore - #2
Merged
robertmclaws merged 1 commit intoAug 9, 2026
Merged
Conversation
- Resolve the diagram file's project from the artifact instead of the Solution Explorer selection, which threw when invoked outside it - Skip the project add for Misc Files and already-globbed SDK-style items; log and continue if the project system refuses - Capture the document name before migrating; the reload resets the current context and CurrentDocData came back null - Guard IsLinkProjectItem against project items with no DTE properties - Add the command to the designer surface WPF context menu, sharing one eligibility predicate and one execution path with the Model Browser - Mark the Model Browser tool window transient so the shell stops restoring a frame ModelingPackage cannot resolve Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
robertmclaws
deleted the
fix/diagram-migration-and-model-browser-restore
branch
August 9, 2026 11:01
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.
Move Diagrams to Separate File
ItemOperations.AddExistingItemthrew when invoked from anywhere elseCurrentDocDatacame back null on the saveDebug.Assertand an unchecked cast with real guards; both were live NREs in ReleaseIsLinkProjectItemagainst project items exposing no DTE propertiesDesigner surface context menu
KnownMonikers.MoveToFolder.edmx.diagramfileModel Browser startup exception
ModelingPackagecannot resolveEntityDesignExplorerWindowis a shellToolWindowPane; the DSL registry thatCreateToolWindowreads is typed to DSLToolWindow, so its slot can never be registeredspecs/model-browser-toolwindow-restore.mdrecords the four approaches ruled out against the compiler, and theIVsPackage.CreateToolroute if restore-at-startup is ever neededTests
VsUtils.ShowMessageBox, which degrades to a blocking modal dialog with no shell — it would have hung CI rather than failed🤖 Generated with Claude Code