vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Incorrect inactive region when preprocessor directive is preceded by a comment

Open Colengms opened this issue 1 year ago • 1 comments

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.

Colengms avatar Oct 24 '24 00:10 Colengms