Skip to content

Conversation

@TIHan
Copy link
Contributor

@TIHan TIHan commented Jun 5, 2019

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's IProjectSite directly to the F# project options manager instead of relying on the workspace to get it through IVsHierarchy.

Copy link
Contributor

@cartermp cartermp left a 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


[<Sealed>]
type private FSharpProjectOptionsReactor (workspace: VisualStudioWorkspace, settings: EditorOptions, serviceProvider, checkerProvider: FSharpCheckerProvider) =
type private FSharpProjectOptionsReactor (_workspace: VisualStudioWorkspace, settings: EditorOptions, _serviceProvider, checkerProvider: FSharpCheckerProvider) =
Copy link
Contributor

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 _?

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@TIHan TIHan closed this Jun 6, 2019
@TIHan TIHan reopened this Jun 6, 2019
@cartermp
Copy link
Contributor

cartermp commented Jun 6, 2019

It got us again 😄

cs/build.fsx(70,24): error FS0041: A unique overload for method 'TryParse' could not be determined based on type information prior to this program point. A type annotation may be needed. Candidates: Version.TryParse(input: ReadOnlySpan, result: byref) : bool, Version.TryParse(input: string, result: byref) : bool

@TIHan TIHan merged commit 3de631a into dotnet:release/dev16.2 Jun 6, 2019
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
* Stop calling GetHierarchy in FSharpProjectOptionsReactor

* Fixing build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants