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

Ensure F# package is loaded #28901

Merged
merged 1 commit into from
Aug 1, 2018
Merged

Conversation

TIHan
Copy link
Contributor

@TIHan TIHan commented Jul 27, 2018

This ensures the F# package is loaded for CPS only projects in a solution. Seems this was an oversight.

Independent of dotnet/fsharp#5391, ensuring the F# package load fixes this issue: dotnet/fsharp#5395 - and it probably fixes other issues that we haven't discovered as a result of not loading the package.

@jasonmalinowski
Copy link
Member

Now I am aware that code exists....yay.

@@ -127,6 +127,9 @@ private void EnsurePackageLoaded(string language)
case LanguageNames.VisualBasic:
shell.LoadPackage(Guids.VisualBasicPackageId, out unused);
break;
case LanguageNames.FSharp:
shell.LoadPackage(Guids.FSharpPackageId, out unused);
break;
Copy link
Member

Choose a reason for hiding this comment

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

Does Typescript need the same thing?

@Pilchie
Copy link
Member

Pilchie commented Jul 30, 2018

What can we do to gain confidence that there aren't more issues here? @cartermp, @KevinRansom, @brettfo - can you do some buddy testing of this change?

@TIHan
Copy link
Contributor Author

TIHan commented Jul 30, 2018

Testing for sure.

If it's worth anything, I debugged when our package gets initialized when I opened up an existing solution that doesn't have a document opened by default; and indeed the package gets loaded when the code change is in. Without it, the F# package will not initialize.

@KevinRansom
Copy link
Member

@Pilchie Done a bunch of testing, seems like a good fix.

@Pilchie
Copy link
Member

Pilchie commented Aug 1, 2018

This has been approved. Let's get it merged and inserted please. @TIHan @agocke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants