{
	"version": "2.0.0",
	"tasks": [
		{
			"label": "ksc-cspell lint",
			"detail": "Check for spelling mistakes.",
			"type": "shell",
			"command": "pnpm exec ksc-cspell lint --format machine",
			"options": {
				"cwd": "${workspaceFolder}"
			},
			"presentation": {
				"clear": true,
				"echo": true,
				"focus": false,
				"panel": "dedicated",
				"reveal": "silent",
				"revealProblems": "onProblem",
				"showReuseMessage": false
			},
			"problemMatcher": [
				{
					"owner": "ksc",
					"source": "ksc",
					"fileLocation": ["relative", "${workspaceFolder}"],
					"pattern": {
						"regexp": "^(.+?):(\\d+):(\\d+): (error|warning|info): (.+) \\[([^\\]]+)\\]$",
						"file": 1,
						"line": 2,
						"column": 3,
						"severity": 4,
						"message": 5,
						"code": 6
					}
				}
			]
		},
		{
			"label": "ksc-cspell fix",
			"detail": "Remove unused words from the local CSpell configuration's \"words\" array and sort it alphabetically.",
			"type": "shell",
			"command": "pnpm exec ksc-cspell fix --format machine",
			"options": {
				"cwd": "${workspaceFolder}"
			},
			"presentation": {
				"clear": true,
				"echo": true,
				"focus": false,
				"panel": "dedicated",
				"reveal": "silent",
				"revealProblems": "onProblem",
				"showReuseMessage": false
			},
			"problemMatcher": [
				{
					"owner": "ksc",
					"source": "ksc",
					"fileLocation": ["relative", "${workspaceFolder}"],
					"pattern": {
						"regexp": "^(.+?):(\\d+):(\\d+): (error|warning|info): (.+) \\[([^\\]]+)\\]$",
						"file": 1,
						"line": 2,
						"column": 3,
						"severity": 4,
						"message": 5,
						"code": 6
					}
				}
			]
		}
	]
}
