Skip to content

editorIndentGuide.activeBackground is being cut by preprocessor directives #222069

Open
@israelsucks

Description

Line coloring enabled by editorIndentGuide.activeBackground loses its continuity when there are preprocessor directives along the way. In C/C++ codebases where preprocessor flags are used often, this feature loses its usability.

Yes, it's possible that preprocessor directive might be expanded into something that really breaks the current scope and defines a newer, but I think this happens less often enough to assume by default it's not the case.

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: Version: 1.91.1 Commit: f1e16e1
  • OS Version: Darwin arm64

Steps to Reproduce:

image

Expected behavior:
Red line should have continued between and after the #ifdef scope.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-indent-guidesEditor indentation guides

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions