Skip to content

Commit 25bdad1

Browse files
committed
fix(probably-not-good): detect common problem matchers in more cases
1 parent b659d26 commit 25bdad1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/commands-core/npmScripts.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ type PromiseType<T> = T extends Promise<infer U> ? U : never
77

88
const detectAndAssignProblemMatcher = (task: vscode.Task, scriptContent: string) => {
99
// TODO! simple cmd parser &&
10-
// TODO! resolve final command with links
11-
if (scriptContent.startsWith('tsc')) task.problemMatchers = ['$tsc']
12-
if (scriptContent.startsWith('esbuild')) task.problemMatchers = scriptContent.includes('--watch') ? ['$esbuild-watch'] : ['$esbuild']
10+
if (scriptContent.includes('tsc')) task.problemMatchers = ['$tsc']
11+
if (scriptContent.includes('esbuild')) task.problemMatchers = scriptContent.includes('--watch') ? ['$esbuild-watch'] : ['$esbuild']
1312
}
1413

1514
/**

0 commit comments

Comments
 (0)