Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nhedger committed Apr 14, 2022
0 parents commit c9d1a25
Show file tree
Hide file tree
Showing 6 changed files with 959 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules/
*.vsix
6 changes: 6 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.github/**
.vscode/**
node_modules/**
.gitattributes
.gitignore
pnpm-lock.yaml
20 changes: 20 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# The MIT License (MIT)

Copyright © `2022` `Nicolas HEDGER`

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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.

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

## 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.

[esbuild]: https://esbuild.github.io
[Visual Studio Code extension]: https://marketplace.visualstudio.com/items?itemName=nhedger.ts-esbuild-problem-matchers

## License

This extension is open-sourced software licensed under the [MIT license](LICENSE.md).
83 changes: 83 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"name": "ts-esbuild-problem-matchers",
"displayName": "TypeScript esbuild problem matchers",
"version": "0.1.0",
"description": "Problem matchers for TypeScript projects using esbuild",
"scripts": {
"package": "vsce package",
"publish": "vsce publish",
"pre-release": "vsce publish --pre-release"
},
"keywords": [
"typescript",
"esbuild",
"problem-matcher"
],
"author": {
"name": "Nicolas Hedger",
"email": "[email protected]"
},
"publisher": "nhedger",
"homepage": "https://github.com/nhedger/vscode-ts-esbuild-problem-matchers",
"bugs": {
"url": "https://github.com/nhedger/vscode-ts-esbuild-problem-matchers/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/nhedger/vscode-ts-esbuild-problem-matchers.git"
},
"engines": {
"vscode": "^1.66.0"
},
"categories": [
"Programming Languages"
],
"license": "MIT",
"contributes": {
"problemMatchers": [
{
"name": "ts-esbuild",
"owner": "typescript",
"source": "ts",
"applyTo": "closedDocuments",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"severity": "error",
"pattern": [
{
"regexp": "^\\s*\\[ERROR\\] (.+)$",
"message": 1
},
{
"regexp": "^\\s*$"
},
{
"regexp": "^\\s*(.+):(\\d+):(\\d+):$",
"file": 1,
"line": 2,
"column": 3
}
]
},
{
"name": "ts-esbuild-watch",
"base": "$ts-esbuild",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "\\s*\\[watch\\] build started"
},
"endsPattern": {
"regexp": "^\\s*\\[watch\\] build finished"
}
}
}
]
},
"devDependencies": {
"@types/vscode": "^1.66.0",
"vsce": "^2.7.0"
}
}
Loading

0 comments on commit c9d1a25

Please sign in to comment.