Skip to content

[lsp] Same variable syntax highlight over-highlighting variables #1500

@johnnycheng0210

Description

@johnnycheng0210

Issue

When clicking a variable in a ts file, it will highlight all variables of the same name even if it is not the same variable. In the existing typescript plugin, it will only highlight the correct instances of the variable

In the attached example, when clicking bar in tsgo extension, both bar will be highlighted, whereas in the existing ts plugin, only one would be highlighted.

function foo(){
    let bar;
}

function baz(){
    let bar
}

Metadata

Metadata

Assignees

Labels

Domain: EditorRelated to the LSP server, editor experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions