Skip to content

Commit

Permalink
Don't hide typescript.js from stack traces (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey authored Mar 24, 2024
1 parent bda13c1 commit 21a6c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ ${filter ? filterToTsserverLines(errorObj.message) : errorObj.message}`;
}

function filterToTsserverLines(stackLines: string): string {
const tsserverRegex = /^.*tsserver\.js.*$/mg;
const tsserverRegex = /^.*(?:tsserver|typescript)\.js.*$/mg;
let tsserverLines = "";
let match;
while (match = tsserverRegex.exec(stackLines)) {
Expand Down

0 comments on commit 21a6c64

Please sign in to comment.