mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Added word boundary on tsserver regex (#101598)
Adds a word boundary on the tsserver regex so that it doens't get confused by other file names.
This commit is contained in:
@@ -79,7 +79,7 @@ export class TypeScriptServerError extends Error {
|
||||
if (!message) {
|
||||
return '';
|
||||
}
|
||||
const regex = /(tsserver)?(\.(?:ts|tsx|js|jsx)(?::\d+(?::\d+)?)?)\)?$/igm;
|
||||
const regex = /(\btsserver)?(\.(?:ts|tsx|js|jsx)(?::\d+(?::\d+)?)?)\)?$/igm;
|
||||
let serverStack = '';
|
||||
while (true) {
|
||||
const match = regex.exec(message);
|
||||
|
||||
Reference in New Issue
Block a user