Skip to content

The 'Add #include' code action incorrectly uses "../" instead of <> when an includePath is used that is lexicographically less than the source file's parent directory #12010

Closed
@sean-mcmanus

Description

See the 2 screenshots: If the includePath has "${workspaceFolder}/a" then the bug repros,

image

but with "${workspaceFolder}/t" it behaves correctly -- t is lexicographically greater than the source's parent directory "sub".
image

Tests added for #11989 caused this to start to be hit (after a lexigraphically smaller includePath was added).

Metadata

Assignees

Labels

Feature: Add '#include'Add '#include' code action on undefined symbolsLanguage ServiceVisual StudioInherited from Visual StudiobugfixedCheck the Milestone for the release in which the fix is or will be available.

Type

No type

Projects

  • Status

    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions