-
Notifications
You must be signed in to change notification settings - Fork 77
Peek definition #1286
Peek definition #1286
Conversation
vasily-kirichenko
commented
Dec 6, 2015
|
My answer is yes for all questions. How do you solve the 3rd issue? |
I' not sure the third one should be implemented. The nice thing about the current impl is that it opens instantly, compared to 2+ seconds for ordinar file opening. I'm afraid that if we make it a full fledged buffer, it will become equally slow. |
Ok, let's finish the first two items. The last one should only be done if file opening is fast enough. |
5267757
to
6383977
Compare
I'm not sure I'm ready to port Go to metadata code, it's tightly coupled with UI in |
Fair enough. The new Peek API isn't available on VS 2013. I've got this error when invoking Alt + F12 on VS 2013.
Could we only enable the feature for VS2015+? It's even better to show it clearly in the setting e.g. |
I know, that is why I put it into Logic.VS2015 project. Maybe just hide or make "disabled" (gray and non interactive) the setting in VS2013? |
We should make sure that Alt+F12 on VS2013 should do nothing. A clear label is OK. Of course, graying out the setting on VS 2013 is better :-). |
Huh. I try to fit this trick https://github.com/fsprojects/VisualFSharpPowerTools/blob/master/src/FSharpVSPowerTools.Logic/NavigateToItem.fs#L277-L295, but the case is not the same because there's no |
Done both disabling the setting and the trick with returning |
I think I understand why the bug: peek definition seems to reuse already open buffers and, when I close peek def window, it's So, it seems we should use |
No, it has not helped :( |
It will be a long story. |
The link looks scary :( It still throws errors on VS2013; we need another way. |
…k Definition view for same doc open then closed
Have fixed the bug with stopping all the features working after opening-closing a Peek Def view. |
I have no idea how to get rid of the exception in VS 2013. I suggest:
|
if (!_optionsPage.PeekDefinitionAvailable) | ||
{ | ||
chbPeekDefinition.Enabled = false; | ||
chbPeekDefinition.Text = chbPeekDefinition.Text + " (VS2015+ only)"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will keep adding VS2015+ suffix to the label each time we open General options dialog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I suspected it.
Let's merge this after addressing the last two comments. I'll try to disable the feature for VS2013 after merging the PR. |
I think we should improve it significantly:
|
Yes, we should eventually get rid of ActiveDocument thing. It has never been working well. |