mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-29 16:29:19 -05:00
Ensure range for string literal references are within the quotes to ensure rename is successful
This commit is contained in:
@@ -2466,8 +2466,8 @@ module ts {
|
||||
function getReferenceEntry(node: Node): ReferenceEntry {
|
||||
return {
|
||||
fileName: node.getSourceFile().filename,
|
||||
minChar: node.getStart(),
|
||||
limChar: node.getEnd(),
|
||||
minChar: node.kind === SyntaxKind.StringLiteral ? node.getStart() + 1 : node.getStart(),
|
||||
limChar: node.kind === SyntaxKind.StringLiteral ? node.getEnd() - 1 : node.getEnd(),
|
||||
isWriteAccess: isWriteAccess(node)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user