Skip to content

findRenameLocations with findInStrings=true doesn't find references in template strings #10081

@jeffrey-easyesi

Description

@jeffrey-easyesi

If you call findRenameLocations on the variable foo in this code, with findInStrings set to true, it will find the two locations in ordinary string literals, but not the four locations in template strings:

var foo;
var a = "foo";
var b = 'foo';
var c = `foo`;
var d = `foo ${a} foo ${b} foo`;

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions