-
Notifications
You must be signed in to change notification settings - Fork 790
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
Stop calling GetHierarchy in FSharpProjectOptionsReactor #6946
Conversation
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.
Looks good overall, just a question
@@ -108,11 +80,13 @@ type private FSharpProjectOptionsMessage = | |||
| ClearSingleFileOptionsCache of DocumentId | |||
|
|||
[<Sealed>] | |||
type private FSharpProjectOptionsReactor (workspace: VisualStudioWorkspace, settings: EditorOptions, serviceProvider, checkerProvider: FSharpCheckerProvider) = | |||
type private FSharpProjectOptionsReactor (_workspace: VisualStudioWorkspace, settings: EditorOptions, _serviceProvider, checkerProvider: FSharpCheckerProvider) = |
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.
Are these unused values needed as parameters given the _
?
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.
They are unused for now, they will be used when I start doing more refactoring here.
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.
👍
It got us again 😄
|
* Stop calling GetHierarchy in FSharpProjectOptionsReactor * Fixing build
Resolves this issue: #6940
Basically we stop calling
workspace.GetHierarchy
in the background for computing F# project options; we can simply just pass the legacy project'sIProjectSite
directly to the F# project options manager instead of relying on the workspace to get it throughIVsHierarchy
.