Skip to content

IntelliSense-based reference highlighting can be incorrect with UTF-8 characters > 1 byte #1525

@sean-mcmanus

Description

@sean-mcmanus
  1. Use the Default intelliSenseEngine.
  2. Put the cursor on a variable name with UTF-8 characters > 1 byte, such as "int cабв". See http://en.cppreference.com/w/cpp/language/identifiers for the valid characters in C++ identifiers.

Bug: The full variable is not selected. Our code for checking for valid identifiers isn't correct. I think there may be other buggy symptoms caused by this, but I'm not sure.

Be sure you're not hitting the other bug in which the IntelliSense is getting the wrong offsets due to UTF-8 characters > 1 byte (i.e. hover should be showing the correct values).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.world readyAn issue relating string character encodings, localization translations, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions