-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Ensure F# package is loaded #28901
Conversation
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; |
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.
Does Typescript need the same thing?
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? |
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. |
@Pilchie Done a bunch of testing, seems like a good fix. |
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.