Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$ts-webpack-watch is generated by yo in tasks.json but isn't recognised by VsCode #457

Closed
geoidesic opened this issue Mar 29, 2024 · 1 comment

Comments

@geoidesic
Copy link

geoidesic commented Mar 29, 2024

I ran:

npm i -g yo generate-code;
yo code

Which generated this tasks.json file:

// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "npm",
			"script": "watch",
			"problemMatcher": "$ts-webpack-watch",
			"isBackground": true,
			"presentation": {
				"reveal": "never",
				"group": "watchers"
			},
			"group": {
				"kind": "build",
				"isDefault": true
			},
		},
		{
			"type": "npm",
			"script": "watch-tests",
			"problemMatcher": "$tsc-watch",
			"isBackground": true,
			"presentation": {
				"reveal": "never",
				"group": "watchers"
			},
			"group": "build"
		},
		{
			"label": "tasks: watch-tests",
			"dependsOn": [
				"npm: watch",
				"npm: watch-tests"
			],
			"problemMatcher": []
		}
	]
}

But VsCode Problems reports:

[{
	"resource": "/Users/blah/blah/.vscode/tasks.json",
	"owner": "_generated_diagnostic_collection_name_#2",
	"code": "1",
	"severity": 4,
	"message": "Unrecognized problem matcher. Is the extension that contributes this problem matcher installed?",
	"startLineNumber": 9,
	"startColumn": 22,
	"endLineNumber": 9,
	"endColumn": 41
}]

When I run "Start Debugging", I get this alert
Screenshot 2024-03-29 at 12 21 49

@aeschli
Copy link
Contributor

aeschli commented May 6, 2024

You also need to install the recommended extension "amodio.tsl-problem-matcher"

@aeschli aeschli closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants