mirror of
https://github.com/danbulant/oxc
synced 2026-05-22 21:58:36 +00:00
## [0.11.1] - 2024-11-09 ### Features -4dd9b60editor/vscode: Replace existing output channel and trace output channel with a single LogOutputChannel (#7196) (Nicholas Rayburn) -1fcd709linter: Add jsx support for only-used-in-recursion (#7120) (no-yan) -4d577cflinter: Add `import/first` rule (#7180) (Dmitry Zakharov) -9b8973flinter: Add `import/unambiguous` rule (#7187) (Dmitry Zakharov) -5ab1ff6linter: Implement @typescript-eslint/no-unsafe-function-type (#6989) (Orenbek) ### Bug Fixes -eea8879editor/vscode: Update language client id to fix the resolution of the oxc.trace.server setting (#7181) (Nicholas Rayburn) -b73cfd9linter: Fix `is_method_call` with parentheses and chain expression (#7095) (tbashiyy) ### Refactor -8c0a362linter: Use `ctx.source_range(comment.content_span())` API (#7155) (Boshen) -c5485aesemantic: Add `ancestor_kinds` iterator function (#7217) (camchenry) -abf1602semantic: Rename `iter_parents` to `ancestors` (#7216) (camchenry) -42171ebsemantic: Rename `ancestors` to `ancestor_ids` (#7215) (camchenry) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
155 lines
4.1 KiB
JSON
155 lines
4.1 KiB
JSON
{
|
|
"name": "oxc-vscode",
|
|
"description": "oxc vscode extension",
|
|
"license": "MIT",
|
|
"version": "0.11.1",
|
|
"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.95.0"
|
|
},
|
|
"sponsor": {
|
|
"url": "https://github.com/sponsors/boshen"
|
|
},
|
|
"activationEvents": [
|
|
"onLanguage:javascript",
|
|
"onLanguage:javascriptreact",
|
|
"onLanguage:typescript",
|
|
"onLanguage:typescriptreact",
|
|
"onLanguage:vue",
|
|
"onLanguage:svelte"
|
|
],
|
|
"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"
|
|
}
|
|
],
|
|
"configuration": {
|
|
"type": "object",
|
|
"title": "oxc",
|
|
"properties": {
|
|
"oxc.lint.run": {
|
|
"scope": "resource",
|
|
"type": "string",
|
|
"enum": [
|
|
"onSave",
|
|
"onType"
|
|
],
|
|
"default": "onType",
|
|
"description": "Run the linter on save (onSave) or on type (onType)"
|
|
},
|
|
"oxc.enable": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "enable oxc language server"
|
|
},
|
|
"oxc.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."
|
|
},
|
|
"oxc.configPath": {
|
|
"type": "string",
|
|
"scope": "window",
|
|
"default": ".eslintrc",
|
|
"description": "Path to ESlint configuration."
|
|
},
|
|
"oxc.path.server": {
|
|
"type": "string",
|
|
"scope": "window",
|
|
"description": "Path to Oxc language server binary."
|
|
}
|
|
}
|
|
},
|
|
"jsonValidation": [
|
|
{
|
|
"fileMatch": [
|
|
"oxlintrc.json",
|
|
"oxlint.json",
|
|
".oxlintrc.json",
|
|
".oxlint.json",
|
|
".oxlintrc"
|
|
],
|
|
"url": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json"
|
|
}
|
|
],
|
|
"languages": [
|
|
{
|
|
"id": "jsonc",
|
|
"filenames": [
|
|
"oxlintrc.json",
|
|
"oxlint.json",
|
|
".oxlintrc.json",
|
|
".oxlint.json",
|
|
".oxlintrc"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"preinstall": "[ -f icon.png ] || curl https://cdn.jsdelivr.net/gh/oxc-project/oxc-assets/square.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_language_server.vsix",
|
|
"install-extension": "code --install-extension oxc_language_server.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"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"@types/vscode": "1.95.0",
|
|
"@vscode/vsce": "^3.0.0",
|
|
"cross-env": "^7.0.3",
|
|
"esbuild": "^0.24.0",
|
|
"ovsx": "^0.10.0",
|
|
"typescript": "^5.4.5"
|
|
},
|
|
"dependencies": {
|
|
"vscode-languageclient": "^9.0.1"
|
|
},
|
|
"vsce": {
|
|
"dependencies": false
|
|
}
|
|
}
|