Skip to content

getTokensFromNode is wrong when the ast contains templateΒ #1554

@CPunisher

Description

@CPunisher

https://github.com/microsoft/typescript-go/blob/main/internal/ls/signaturehelp.go#L1082

When scanning a template tail, tsgo produces a NoSubstitutionTemplateLiteral from the end backtick of one template to the start backtick of the next template, which regards all code between as template string.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions