fsharp
fsharp copied to clipboard
The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Enable-F-Code-Metrics-and-Analysis/10431327)._ --- Code metrics is an awesome feature for C# developers, but this does not work for the F# language....
_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/An-F-or-C-shebang-executable-should-us/10518290)._ --- I wrote [an F# shebang](https://github.com/daveyostcom/showperms/blob/main/showperms/showperms.fsx). It starts up slowly, of course. It would be good if .NET would...
The internal scenario with a 30 assembly limit is no longer an issue. It defaults to on anyway.
2 issues with [IsUnionCaseTester](https://github.com/dotnet/fsharp/blob/c41720f08cb6fbb523bb9f052c92dd0f72540ef9/src/Compiler/Symbols/Symbols.fs#L1780): - Seems to be throwing an error, instead of returning `false` on non-matching values. - Seems to be missing a case where an union case tester...
Please provide a succinct description of the issue. **Repro steps**  1. Wait for intellisense to show a dropdown list 2. Press `'`, `;`, or `"` **Expected behavior** No completion...
For the VS-diagnostic endpoint (not sure about the regular LSP diagnostic endpoint), we can declare different diagnostic kinds, e.g. syntactic and semantic, and handle them separately. This way syntactic errors...
Follow up: https://github.com/dotnet/fsharp/pull/17173 Records compiles down to a `class` or `struct` [sharplab](https://sharplab.io/#v2:DYLgZgzgNAJiDUAfABAFwJ4AcCmyBK2AxgPYBOMyAvMgN7IAKpxmIyEqpAlgHYDmyAXwCwAKFHIA2gB4AyhwCuhVAD4AuuIw5kc0otQES5KrQZMWbDj34CgA). This PR enforces the new rules on `records`. ### Old rules - AttributeTargets.Class - AttributeTargets.Interface - AttributeTargets.Delegate -...
Also a note - we spend quite some time generating PDB in all scenarios, even though it will never be used. Around 1/3rd of total assembly generation time, for example...
I collected a trace after about an hour of working in VisualFSharp.sln when memory was pretty high. I found that the [`isOpenStatementUsed` function](https://github.com/dotnet/fsharp/blob/master/src/fsharp/service/ServiceAnalysis.fs#L147) is pretty expensive relative to other things....