dotnet / dotnet/vscode-csharp

C#/DevKit code under Compiler Symbol don't get ignored (go gray) if not used

Open
#6,307 1 comment 0 reactions 0 assignees View on GitHub
Feature Request Triaged
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

* Compiler symbols that are not in use don't have the code under them gray.
* Intellisense also continues to work to work in these disabled code blocks when it shouldn't.
* Also maybe this is due to no UI options allowing us to toggle between difference build configurations?

I was testing this with a Unity3D project. These are called "Scripting Define Symbols" in Unity.
In short this can make parsing code a little annoying.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.