-
Notifications
You must be signed in to change notification settings - Fork 788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Navigation consolidation #12105
VS Navigation consolidation #12105
Conversation
This is great! |
| FSharpGoToDefinitionResult.NavigableItem(navItem), _ -> | ||
gtd.NavigateToItem(navItem, statusBar) | ||
// 'true' means do it, like Sheev Palpatine would want us to. |
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.
do it
| FSharpGoToDefinitionResult.ExternalAssembly(targetSymbolUse, metadataReferences), _ -> | ||
gtd.NavigateToExternalDeclaration(targetSymbolUse, metadataReferences, cancellationToken, statusBar) | ||
// 'true' means do it, like Sheev Palpatine would want us to. |
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.
do it
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.
More a nit about calling this navigation. We also have a FSharpNavigateToSearchService
that is technically a form of navigation, but has nothing to do with navigating to the definition of a symbol.
This is ready |
Great work! |
We have several ways to do navigation in VS, but a lot of it was spread out. This PR aims to consolidate it into a single type
FSharpNavigation
.We have some quirks between quick-info and go-to-definition such as if one doesn't work the other one will? The goal was to address that, but it turns out it's going to be a bit more involved because the different navigation calls are catered to their respective VS feature. We will need to address that part in a separate PR.