Skip to content

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

Open
@Colengms

Description

@Colengms

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions