{ "name": "oxc-vscode", "description": "oxc vscode extension", "license": "MIT", "version": "0.0.22", "icon": "icon.png", "publisher": "oxc", "displayName": "Oxc", "bugs": { "url": "https://github.com/oxc-project/oxc/issues" }, "repository": { "type": "git", "url": "https://github.com/oxc-project/oxc.git", "directory": "editors/vscode" }, "categories": [ "Linters" ], "keywords": [ "linter", "oxc" ], "engines": { "vscode": "^1.80.0" }, "sponsor": { "url": "https://github.com/sponsors/boshen" }, "activationEvents": [ "onStartupFinished", "onLanguage:javascript", "onLanguage:javascriptreact", "onLanguage:typescript", "onLanguage:typescriptreact" ], "main": "./out/main.js", "contributes": { "commands": [ { "command": "oxc.restartServer", "title": "Restart Oxc Server", "category": "Oxc" }, { "command": "oxc.toggleEnable", "title": "toggle enable", "category": "Oxc" }, { "command": "oxc.showOutputChannel", "title": "Show Output Channel", "category": "Oxc" }, { "command": "oxc.showTraceOutputChannel", "title": "Show Trace Output Channel", "category": "Oxc" } ], "configuration": { "type": "object", "title": "oxc", "properties": { "oxc_language_server.run": { "scope": "resource", "type": "string", "enum": [ "onSave", "onType" ], "default": "onType", "description": "Run the linter on save (onSave) or on type (onType)" }, "oxc_language_server.enable": { "type": "boolean", "default": true, "description": "enable oxc language server" }, "oxc_language_server.trace.server": { "type": "string", "scope": "window", "enum": [ "off", "messages", "verbose" ], "enumDescriptions": [ "No traces", "Error only", "Full log" ], "default": "off", "description": "Traces the communication between VS Code and the language server." } } } }, "scripts": { "preinstall": "[ -f icon.png ] || curl https://raw.githubusercontent.com/Boshen/oxc-assets/main/logo-square-min.png --output icon.png", "build": "pnpm run server:build:release && pnpm run compile && pnpm run package", "compile": "esbuild client/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node16 --minify --sourcemap", "watch": "pnpm run compile --watch", "package": "vsce package --no-dependencies -o oxc_vscode.vsix", "install-extension": "code --install-extension oxc_vscode.vsix --force", "server:build:debug": "cargo build -p oxc_language_server", "server:build:release": "cross-env CARGO_TARGET_DIR=./target cargo build -p oxc_language_server --release", "fmt:js": "prettier --write ./**/*.{js,ts,json}" }, "devDependencies": { "@types/node": "^18.19.3", "@types/vscode": "1.80.0", "@vscode/vsce": "^2.22.0", "cross-env": "^7.0.3", "esbuild": "^0.19.8", "prettier": "^3.1.1", "typescript": "^5.3.3" }, "dependencies": { "vscode-languageclient": "^8.1.0" }, "vsce": { "dependencies": false } }