未验证 提交 3ecefe6d 编写于 作者: A Andrew Casey 提交者: GitHub

Make char position optional in TS stack (#96321)

上级 3318e36c
......@@ -79,7 +79,7 @@ export class TypeScriptServerError extends Error {
if (!message) {
return '';
}
const regex = /(tsserver)?(\.(?:ts|tsx|js|jsx)(?::\d+(?::\d+))?)\)?$/igm;
const regex = /(tsserver)?(\.(?:ts|tsx|js|jsx)(?::\d+(?::\d+)?)?)\)?$/igm;
let serverStack = '';
while (true) {
const match = regex.exec(message);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册