Don't handle TextView so opening results from find works#4297
Conversation
…project file from find
| If rguidLogicalView = VSConstants.LOGVIEWID.TextView_guid OrElse rguidLogicalView = VSConstants.LOGVIEWID.Primary_guid Then | ||
| Return NativeMethods.E_NOTIMPL | ||
| Else | ||
| pbstrPhysicalView = "" |
There was a problem hiding this comment.
Why empty? What does this mean Vs. null?
|
As discussed:
|
Fixed.
That seems to not be the case, though I certainly don't have the context as to why. The Xml editor, which the project file editor wraps, does the same thing. It returns empty strings and nulls in MapLogicalView but its pkgdef contains "standard" descriptions. |
|
I'll step back, what does the following do and why "Design"? Maybe we need to pull in something that knows how this stuff is supposed to work and can tell us what to do. |
|
Happy for anyone with expertise to take a look, I'm certainly not claiming that :) As to what that does, it doesn't do anything at the moment. I originally added it when I was (incorrectly) returning Given our discussion this morning with the Menus stuff, perhaps this is another case of me assuming something is important when it actually doesn't matter at all. ¯\_(ツ)_/¯ |
Our app designer wasn't using the Designer logical view properly which means that when find results were being opened, if the app designer was open, the shell thought it was a valid window to show instead of opening a window with the text view. This fixes that.
This goes with a CPS pull request (https://devdiv.visualstudio.com/DevDiv/_git/CPS/pullrequest/152382) to open the designer with the write logical view. If these changes are inserted without the CPS changes then the app designer will not open from the Properties context menu. It will still open from the Debug -> Properties menu item, but still worth holding off on merging this PR until CPS is ready.Turns out the CPS change wasn't necessary, I was just incorrectly not handling the Primary logical view. Fixing that means everything works just fine, including legacy projects.
Fixes #4070