Skip to content

nhedger/vscode-ts-esbuild-problem-matchers

Repository files navigation

TypeScript esbuild problem matchers

This Visual Studio Code extension provides problem matchers for TypeScript projects built with esbuild.

Problem matchers

The following problem matchers are available and work out of the box.

  • $ts-esbuild (when running esbuild normally)
  • $ts-esbuild-watch (when running esbuild in --watch mode)

Usage

Here's an example of how to use both problem matchers in your tasks.json file.

{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "npm",
            "script": "build",
            "group": "build",
            "problemMatcher": ["$ts-esbuild"]
        },
        {
            "type": "npm",
            "script": "watch",
            "group": "build",
            "isBackground": true,
            "problemMatcher": ["$ts-esbuild-watch"]
        }
    ]
}

Compatibility

The problem matchers have been tested on the latest version of esbuild available at the time, which is: 0.14. If the matchers stop working in a future version, please open an issue or a pull request so it can be kept up to date.

License

This extension is open-sourced software licensed under the MIT license.