dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.88k stars 783 forks source link

Visual Studio Project Properties shows C# warning levels in dropdown that don't apply to F# at all #17136

Closed abelbraaksma closed 4 months ago

abelbraaksma commented 4 months ago

The available options dropdown in VS 2022 and VS 2022 Preview lists them in relation to C#, and shows too many of them: image

Repro steps

  1. Open any F# project
  2. Select menu ProjectProperties
  3. Scroll to Warnings section and select the dropdown shown above

Expected behavior

a. Only options 0 - 5, as these are the levels supported by F#. b. Descriptions matching the F# spec, not the C# spec (we don't throw C# 11 warnings, do we?)

Actual behavior

Showing 9 options, and showing descriptions not matching F#.

Known workarounds

None.

Related information

PS: I've no problem issuing a PR for this, but I've no clue wherefrom this list is populated. This may very well be "external", as in: a bug of VS itself, which is closed source.

vzarytovskii commented 4 months ago

Duplicate of https://github.com/dotnet/fsharp/issues/13714

abonie commented 4 months ago

Closing as a duplicate

abelbraaksma commented 4 months ago

@abonie, I prefer not to use the closed as completed when that's not the case (though, in fairness, closed as not planned isn't entirely true either, but the dropdown on GitHub suggests that for duplicates).

abonie commented 4 months ago

Good point, I simply forgot there is a qualifier to closing an item on github