Skip to content
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

Add module values to navigable items #650

Merged

Conversation

vasily-kirichenko
Copy link
Contributor

It also adds EnclosingEntityKind and IsAbstract to FSharpNavigationDeclarationItem which are needed by FSAC -> Ionide VS Code for filtering declaration used by Code Lens feature.

@dsyme
Copy link
Contributor

dsyme commented Oct 13, 2016

Looks good.

@dsyme dsyme merged commit 0929055 into fsharp:master Oct 13, 2016
@vasily-kirichenko
Copy link
Contributor Author

@rneatherway @tpetricek @7sharp9 could you please publish a new NuGet package so we can proceed with FSAC and ionide?

@7sharp9
Copy link
Member

7sharp9 commented Oct 13, 2016

@vasily-kirichenko Sorry my access was revoked?

@dsyme
Copy link
Contributor

dsyme commented Oct 13, 2016

@7sharp9 You now have access to the nuget package.

@vasily-kirichenko I've pushed 8.0.0. This also contains the work to optionally remove the MSBuild dependency for script reference resolution (though Visual F# Power Tools should not, I expect, opt-in to that, since it can always assume MSBuild hosted with appropriate binding redirects). This means there is now an extra DLL in the package (FSharp.Compiler.Service.MSBuild.v12.dll) that should be included alongside FSHarp.Compiler.Service.dll (This should happen automatically).

We need to add docs on the MSBuild dependency and how to opt-out of it. Preliminary docs are in this comment

@7sharp9
Copy link
Member

7sharp9 commented Oct 13, 2016

@dsyme Is there now a programatic way to list the assembly refs within a project file without msbuild?

@7sharp9
Copy link
Member

7sharp9 commented Oct 13, 2016

@dsyme To be clear, It would be great if FCS could be self contained and provide a means to call resolve on an assembly ref, or ideally return a list of resolved refs from a fsproj file.

The ability to resolve anything is internal as far as I can see, I can see how it could be exposed a bit like what you were doing here:
https://github.com/fsharp/FSharp.Compiler.Service/pull/649/files#diff-d04bc962d64f4e6adc7210878e11a52dR202

Maybe using the msbuild/simulatedmsbuild as per the environment.

@vasily-kirichenko
Copy link
Contributor Author

@dsyme thanks!

@dsyme
Copy link
Contributor

dsyme commented Oct 14, 2016

@dsyme Is there now a programatic way to list the assembly refs within a project file without msbuild?

No, this only covered the use of MSBuild assembly resolution for #r references in scripts. So the project cracker is still the only way to crack project files.

@dsyme It would be great if FCS could be self contained and provide a means to call resolve on an assembly ref

We could expose SimulatedMSBuildRefereceResolver but do we really want to? I suppose it could be particularly useful for putting together support an alternative project file format?

@7sharp9
Copy link
Member

7sharp9 commented Oct 14, 2016

@dsyme The reason I asked is it would be useful to me so I don't have to start a child process to retrieve them via msbuild. It would also be useful for any other tooling that may need that info. Having resolve available in the context of the checker should be ok, feeding it properties like framework version etc would be fine.

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.

3 participants