{ "name": "black-formatter", "displayName": "Black Formatter", "description": "%extension.description%", "version": "2024.2.0", "preview": true, "serverInfo": { "name": "Black", "module": "black" }, "publisher": "ms-python", "license": "MIT", "homepage": "https://github.com/Microsoft/vscode-black-formatter", "repository": { "type": "git", "url": "https://github.com/microsoft/vscode-black-formatter.git" }, "bugs": { "url": "https://github.com/Microsoft/vscode-black-formatter/issues" }, "icon": "icon.png", "galleryBanner": { "color": "#1e415e", "theme": "dark" }, "keywords": [ "python", "formatting", "black" ], "engines": { "vscode": "^1.82.0" }, "categories": [ "Programming Languages", "Formatters" ], "extensionDependencies": [ "ms-python.python" ], "capabilities": { "virtualWorkspaces": { "supported": false, "description": "Virtual Workspaces are not supported with Black formatter." } }, "activationEvents": [ "onLanguage:python", "workspaceContains:pyproject.toml", "workspaceContains:.black", "workspaceContains:*.py" ], "main": "./dist/extension.js", "l10n": "./l10n", "scripts": { "compile": "webpack", "compile-tests": "tsc -p . --outDir out", "format-check": "prettier --check 'src/**/*.ts' 'build/**/*.yml' '.github/**/*.yml'", "lint": "eslint src --ext ts", "package": "webpack --mode production --devtool hidden-source-map", "pretest": "npm run compile-tests && npm run compile && npm run lint", "tests": "node ./out/test/ts_tests/runTest.js", "smoke-tests": "node ./out/test/ts_tests/runSmokeTest.js", "vsce-package": "vsce package -o black-formatter.vsix", "vscode:prepublish": "npm run package", "watch": "webpack --watch", "watch-tests": "tsc -p . -w --outDir out" }, "contributes": { "languages": [ { "filenames": [ "pyproject.toml", ".black" ], "id": "toml" } ], "configuration": { "properties": { "black-formatter.args": { "default": [], "items": { "type": "string" }, "markdownDescription": "%settings.args.description%", "scope": "resource", "type": "array" }, "black-formatter.cwd": { "default": "${workspaceFolder}", "markdownDescription": "%settings.cwd.description%", "scope": "resource", "type": "string", "examples": [ "${workspaceFolder}/src", "${fileDirname}" ] }, "black-formatter.importStrategy": { "default": "useBundled", "enum": [ "fromEnvironment", "useBundled" ], "markdownDescription": "%settings.importStrategy.description%", "markdownEnumDescriptions": [ "%settings.importStrategy.fromEnvironment.description%", "%settings.importStrategy.useBundled.description%" ], "scope": "resource", "type": "string" }, "black-formatter.interpreter": { "default": [], "items": { "type": "string" }, "markdownDescription": "%settings.interpreter.description%", "scope": "resource", "type": "array" }, "black-formatter.path": { "default": [], "examples": [ [ "-m", "black", "~/.env/python" ], [ "~/global_env/black" ] ], "items": { "type": "string" }, "markdownDescription": "%settings.path.description%", "scope": "resource", "type": "array" }, "black-formatter.showNotifications": { "default": "off", "enum": [ "always", "off", "onError", "onWarning" ], "markdownDescription": "%settings.showNotifications.description%", "markdownEnumDescriptions": [ "%settings.showNotifications.always.description%", "%settings.showNotifications.off.description%", "%settings.showNotifications.onError.description%", "%settings.showNotifications.onWarning.description%" ], "scope": "machine", "type": "string" }, "black-formatter.serverTransport": { "default": "stdio", "enum": [ "stdio", "pipe" ], "markdownDescription": "%settings.serverTransport.description%", "markdownEnumDescriptions": [ "%settings.serverTransport.stdio.description%", "%settings.serverTransport.pipe.description%" ], "scope": "window", "type": "string" } } }, "commands": [ { "title": "%command.restartServer%", "category": "Black Formatter", "command": "black-formatter.restart" } ] }, "dependencies": { "@vscode/python-extension": "^1.0.5", "fs-extra": "^11.2.0", "vscode-languageclient": "^9.0.1" }, "devDependencies": { "@types/chai": "^4.3.14", "@types/fs-extra": "^11.0.4", "@types/glob": "^8.1.0", "@types/mocha": "^10.0.6", "@types/node": "16.x", "@types/sinon": "^17.0.3", "@types/vscode": "^1.74.0", "@typescript-eslint/eslint-plugin": "^7.4.0", "@typescript-eslint/parser": "^7.4.0", "@vscode/test-electron": "^2.3.9", "@vscode/vsce": "^2.24.0", "chai": "^4.3.10", "eslint": "^8.57.0", "glob": "^10.3.12", "mocha": "^10.4.0", "prettier": "^3.2.5", "sinon": "^17.0.1", "ts-loader": "^9.5.1", "typemoq": "^2.1.0", "typescript": "^5.4.3", "webpack": "^5.91.0", "webpack-cli": "^5.1.4" }, "__metadata": { "id": "859e640c-c157-47da-8699-9080b81c8371", "publisherId": "998b010b-e2af-44a5-a6cd-0b5fd3b9b6f8", "publisherDisplayName": "Microsoft", "targetPlatform": "undefined", "updated": false, "isPreReleaseVersion": false, "hasPreReleaseVersion": false, "installedTimestamp": 1717451382802, "pinned": false, "source": "gallery" } }