{
	"name": "batch-runner",
	"displayName": "Batch Runner",
	"publisher": "NilsSoderman",
	"description": "Run batch files in the VS Code terminal",
	"version": "1.4.0",
	"icon": "media/icon.png",
	"qna": "marketplace",
	"license": "SEE LICENSE IN LICENSE",
	"keywords": [
		"batch",
		".bat",
		".cmd",
		"cmd",
		"execute",
		"run",
		"menu",
		"terminal"
	],
	"categories": [
		"Other",
		"Debuggers"
	],
	"repository": {
		"type": "git",
		"url": "https://github.com/nils-soderman/vscode-batch-runner"
	},
	"bugs": {
		"url": "https://github.com/nils-soderman/vscode-batch-runner/issues"
	},
	"author": {
		"name": "Nils Söderman",
		"url": "https://nilssoderman.com"
	},
	"main": "./dist/extension.js",
	"contributes": {
		"commands": [
			{
				"command": "batch-runner.execBatchFile",
				"category": "Batch Runner",
				"title": "Run",
				"shortTitle": "Run bat File",
				"icon": "$(run)",
				"enablement": "resourceLangId == bat && shellExecutionSupported"
			},
			{
				"command": "batch-runner.execBatchFileArgs",
				"category": "Batch Runner",
				"title": "Run with Arguments",
				"shortTitle": "Run bat File w/ Args",
				"icon": "$(debug-coverage)",
				"enablement": "resourceLangId == bat && shellExecutionSupported"
			},
			{
				"command": "batch-runner.execBatchFileAdmin",
				"category": "Batch Runner",
				"title": "Run as Administrator",
				"shortTitle": "Run bat file as admin",
				"icon": "$(run-above)",
				"enablement": "resourceLangId == bat && shellExecutionSupported"
			}
		],
		"keybindings": [
			{
				"command": "batch-runner.execBatchFile",
				"key": "F5",
				"enablement": "resourceLangId == bat && shellExecutionSupported && !inDebugMode"
			}
		],
		"menus": {
			"explorer/context": [
				{
					"command": "batch-runner.execBatchFile",
					"alt": "batch-runner.execBatchFileAdmin",
					"group": "batch",
					"when": "resourceLangId == bat && shellExecutionSupported"
				},
				{
					"command": "batch-runner.execBatchFileArgs",
					"group": "batch",
					"when": "resourceLangId == bat && shellExecutionSupported"
				}
			],
			"editor/title/context": [
				{
					"command": "batch-runner.execBatchFile",
					"alt": "batch-runner.execBatchFileAdmin",
					"group": "batch",
					"when": "resourceLangId == bat && shellExecutionSupported"
				},
				{
					"command": "batch-runner.execBatchFileArgs",
					"group": "batch",
					"when": "resourceLangId == bat && shellExecutionSupported"
				}
			],
			"editor/title/run": [
				{
					"command": "batch-runner.execBatchFile",
					"group": "batch",
					"when": "resourceLangId == bat && shellExecutionSupported"
				},
				{
					"command": "batch-runner.execBatchFileArgs",
					"group": "batch",
					"when": "resourceLangId == bat && shellExecutionSupported"
				},
				{
					"command": "batch-runner.execBatchFileAdmin",
					"group": "batch",
					"when": "resourceLangId == bat && shellExecutionSupported"
				}
			]
		},
		"configuration": [
			{
				"title": "Batch Runner",
				"properties": {
					"batch-runner.runBatchIn": {
						"type": "string",
						"enum": [
							"Terminal",
							"External-cmd"
						],
						"enumDescriptions": [
							"Open the batch files in the built-in VS Code terminal",
							"Open the batch files in an external cmd window"
						],
						"default": "Terminal",
						"description": "Where the batch file should be executed",
						"scope": "resource"
					},
					"batch-runner.cmdPath": {
						"type": "string",
						"default": "C:\\windows\\System32\\cmd.exe",
						"description": "Path to where 'cmd.exe' is located",
						"scope": "machine"
					},
					"batch-runner.saveFileBeforeRun": {
						"type": "boolean",
						"default": true,
						"scope": "resource",
						"description": "Save the current batch file before running it"
					}
				}
			}
		]
	},
	"capabilities": {
		"virtualWorkspaces": {
			"supported": false,
			"description": "Batch runner does currently not support virtual workspaces. Because it needs to have the files on disk to execute them."
		}
	},
	"scripts": {
		"vscode:prepublish": "npm run esbuild-base -- --minify",
		"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node",
		"esbuild": "npm run esbuild-base -- --sourcemap",
		"watch": "npm run esbuild-base -- --sourcemap --watch",
		"lint": "eslint src --ext ts",
		"test": "tsc -p ./ && vscode-test"
	},
	"engines": {
		"vscode": "^1.91.0"
	},
	"devDependencies": {
		"@types/mocha": "^10.0.10",
		"@types/node": "20.x",
		"@types/sinon": "^17.0.4",
		"@types/vscode": "^1.91.0",
		"@typescript-eslint/eslint-plugin": "^8.34.1",
		"@typescript-eslint/parser": "^8.34.1",
		"@vscode/test-electron": "^2.5.2",
		"@vscode/test-cli": "^0.0.11",
		"esbuild": "^0.25.5",
		"eslint": "^9.29.0",
		"mocha": "^11.7.0",
		"sinon": "^21.0.0",
		"typescript": "^5.8.3"
	},
	"__metadata": {
		"installedTimestamp": 1750626380515,
		"targetPlatform": "undefined",
		"size": 21816
	}
}