mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 15:25:54 -06:00
do not consider positions that fall to leading trivia in brace matching
This commit is contained in:
parent
d988012ea3
commit
c298f09276
@ -4022,7 +4022,7 @@ module ts {
|
||||
var sourceFile = getCurrentSourceFile(filename);
|
||||
var result: TypeScript.TextSpan[] = [];
|
||||
|
||||
var token = getTouchingToken(sourceFile, position, /*allowPositionInLeadingTrivia*/ true);
|
||||
var token = getTouchingToken(sourceFile, position, /*allowPositionInLeadingTrivia*/ false);
|
||||
|
||||
if (token.getStart(sourceFile) === position) {
|
||||
var matchKind = getMatchingTokenKind(token);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user