diff --git a/tests/cases/fourslash/getMatchingBracesAdjacentBraces.ts b/tests/cases/fourslash/getMatchingBracesAdjacentBraces.ts new file mode 100644 index 00000000000..8dd997ebe73 --- /dev/null +++ b/tests/cases/fourslash/getMatchingBracesAdjacentBraces.ts @@ -0,0 +1,9 @@ +////function f[||][|(x: T)|][|{ +//// return x; +////}|] + +// If there is an adjacent opening and closing brace, +// then only the opening brace should get highlighted. +test.ranges().forEach(range => { + verify.matchingBracePositionInCurrentFile(range.start, range.end - 1); +}); \ No newline at end of file