Skip to content

Commit c298f09

Browse files
committed
do not consider positions that fall to leading trivia in brace matching
1 parent d988012 commit c298f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4022,7 +4022,7 @@ module ts {
40224022
var sourceFile = getCurrentSourceFile(filename);
40234023
var result: TypeScript.TextSpan[] = [];
40244024

4025-
var token = getTouchingToken(sourceFile, position, /*allowPositionInLeadingTrivia*/ true);
4025+
var token = getTouchingToken(sourceFile, position, /*allowPositionInLeadingTrivia*/ false);
40264026

40274027
if (token.getStart(sourceFile) === position) {
40284028
var matchKind = getMatchingTokenKind(token);

0 commit comments

Comments
 (0)