Skip to content

Commit dc127a6

Browse files
committed
Fix tests to work with new @ behavior
1 parent b456783 commit dc127a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/search/test/common/extractRange.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ suite('extractRangeFromFilter', () => {
1212
assert.ok(!extractRangeFromFilter(''));
1313
assert.ok(!extractRangeFromFilter('/some/path'));
1414
assert.ok(!extractRangeFromFilter('/some/path/file.txt'));
15+
assert.ok(!extractRangeFromFilter('/some/@path'), 'paths like as /node_modules/@types/ should be supported');
1516

1617
for (const lineSep of [':', '#', '(', ':line ']) {
1718
for (const colSep of [':', '#', ',']) {
@@ -44,7 +45,7 @@ suite('extractRangeFromFilter', () => {
4445
});
4546

4647
test('unless', async function () {
47-
const res = extractRangeFromFilter('/some/path/file.txt@ (19,20)', ['@']);
48+
const res = extractRangeFromFilter('@/some/path/file.txt (19,20)', ['@']);
4849

4950
assert.ok(!res);
5051
});

0 commit comments

Comments
 (0)