Skip to content

CodeReferenceTracker does not detect keys with <space> #694

@cpsarros

Description

@cpsarros

When the key contains one or more characters then ResXManager fails to detect the key in the source file.
Example source code that is not detected

        string[] greetings = [
            Localizer["Good Night"],
            Localizer["Good Morning"],
            Localizer["Good Afternoon"],
            Localizer["Good Evening"],
        ];

Constructor of class CodeReferenceTracker.FileInfo tokenizes each source code line (splitting lines to words using \W+ regexp) and then tries to locate the given key. But this is not the case when Key can me tokenized to more than one words.

Is this by design or a bug? Am I missing some configuration option or something else?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions