microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
234 stars 13 forks source link

[BUG] Unity messages classified as unused code #1587

Open jbevain opened 2 weeks ago

jbevain commented 2 weeks ago

Describe the Issue

Starting with C# DevKit 1.12.37 prerelease + C# 2.54.20 prerelease, Unity event functions/messages are categorized as unused code.

Steps To Reproduce

  1. Open or create a Unity project
  2. Open or create a MonoBehaviour

Expected Behavior

The Start and Update methods are categorized and visually identified as normal code.

Environment Information

No response

jbevain commented 2 weeks ago

Workaround:

As a workaround, you can stay on:

Or add a .editorconfig file to the root of your Unity project, containing:

dotnet_diagnostic.IDE0055.severity = none
dotnet_diagnostic.IDE0052.severity = none
dotnet_diagnostic.IDE0051.severity = none
dotnet_diagnostic.IDE0044.severity = none

Or also make the Unity messages public.

arunchndr commented 2 weeks ago

Keeping this open for tracking the fix rollout for https://developercommunity.visualstudio.com/t/Private-Unity-messages-incorrectly-marke/10779025 specific to C# Dev Kit/VS Code.