Skip to content

Commit bbca755

Browse files
authored
terminal: surpress false positive codeql warning (microsoft#185282)
1 parent 3170765 commit bbca755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/terminalContrib/typeAhead/test/browser/terminalTypeAhead.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ function createMockTerminal({ lines, cursorAttrs }: {
452452
if (line.includes('|')) {
453453
cursor.y = y + 1;
454454
cursor.x = line.indexOf('|') + 1;
455-
lines[y] = line.replace('|', '');
455+
lines[y] = line.replace('|', ''); // CodeQL [SM02383] replacing the first occurrence is intended
456456
break;
457457
}
458458
}

0 commit comments

Comments
 (0)