Skip to content

Use Visual Studio Community Toolkit to access common services, fixes #44#45

Open
majocha wants to merge 1 commit into
fsprojects:masterfrom
majocha:use_vsix_community_tollkit
Open

Use Visual Studio Community Toolkit to access common services, fixes #44#45
majocha wants to merge 1 commit into
fsprojects:masterfrom
majocha:use_vsix_community_tollkit

Conversation

@majocha

@majocha majocha commented Feb 8, 2023

Copy link
Copy Markdown

I did some experiments to resolve #44 and thought I might as well make a PR out of it.

This adds Visual Studio Community Toolkit as dependency.
See also: https://www.vsixcookbook.com/

It might simplify stuff in the long run, for now it does decouple the common services from the package. In effect the command handler does not depend on the package or wait for it.

FantomasService is now wrapped as MEF component, so it also no longer depends on the package to be loaded and later disposed.

With this the extension works in any editor with F# content type, so I can just open a folder of .fsx scripts and get formatting.

@deviousasti

Copy link
Copy Markdown
Member

Thank you for hacking on this!
Wow, this is a major change! I'll review it over the weekend if that's okay.

@majocha

majocha commented Feb 9, 2023

Copy link
Copy Markdown
Author

Great! There's no rush. And thank you for this awesome extension, @deviousasti.

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.

Extension does not load when a folder is opened in VS instead of a solution

2 participants