Skip to content

Incorrect inactive region when preprocessor directive is preceded by a comment #12882

Description

The C/C++ Extension currently deals with inactive regions using a per-line granularity, but the IntelliSense engine provides inactive regions with line/column (offset) granularity. Trying to reduce that granularity to per-line results in some unusual scenario, such as:

Image

Using this issue to track propagating the full granularity of the inactive region We're using createTextEditorDecorationType to render regions as inactive, which should support line/column granularity.

Various features check inactive regions to determine if operating within an active region or not, which makes this a non-trivial change.

No activity

Activity on this issue will appear here.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    • Status
      Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions