mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
do not consider positions that fall to leading trivia in brace matching
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user