Files
Davide Asnaghi 44891494ef [FMT] implement formatter (#25)
* add pcb fmt

* unify pcb path in extension

* change the name of the extension

* bundle buildifier

* better path res

* fix clippy

* recursive

* fix format

* fix one more

* cargo info

* fix format on save
2025-07-10 16:24:25 -07:00

144 lines
3.2 KiB
JSON

{
"name": "zener",
"description": "A Zener language server",
"extensionKind": [
"workspace"
],
"author": "Diode, Inc.",
"license": "Apache2",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "https://pcb.new"
},
"publisher": "Diode",
"categories": [],
"keywords": [
"multi-root ready"
],
"engines": {
"vscode": "^1.60.0"
},
"activationEvents": [
"onLanguage:zener"
],
"main": "./client/out/extension",
"contributes": {
"languages": [
{
"id": "zener",
"aliases": [
"Zener",
"zener"
],
"extensions": [
".star",
".zen"
],
"configuration": "./syntaxes/zener.configuration.json"
}
],
"grammars": [
{
"language": "zener",
"scopeName": "source.zener",
"path": "./syntaxes/zener.tmLanguage.json"
}
],
"breakpoints": [
{
"language": "zener"
}
],
"debuggers": [
{
"type": "zener",
"label": "Zener Debug",
"program": "/usr/bin/env",
"args": [
"pcb",
"--dap"
],
"languages": [
"zener"
],
"configurationAttributes": {
"launch": {
"properties": {
"program": {
"type": "string",
"description": "The program to debug.",
"default": "${file}"
}
}
}
},
"initialConfigurations": [
{
"type": "zener",
"request": "launch",
"name": "Launch Program",
"program": "${file}"
}
]
}
],
"configuration": {
"properties": {
"zener.pcbPath": {
"type": "string",
"default": "pcb",
"description": "The path to the PCB binary (used for LSP, formatting, and layout commands)"
},
"zener.enableGotoDefinition": {
"type": "boolean",
"default": true,
"description": "Whether to ask the LSP server to enable Goto Definition functionality"
}
}
},
"commands": [
{
"command": "zener.openSchematic",
"title": "pcb: View Schematic",
"icon": "$(circuit-board)"
},
{
"command": "zener.runLayout",
"title": "pcb: Update Layout",
"icon": "$(chip)"
}
],
"menus": {
"editor/title": [
{
"command": "zener.openSchematic",
"when": "resourceLangId == zener",
"group": "navigation"
},
{
"command": "zener.runLayout",
"when": "resourceLangId == zener",
"group": "navigation"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -b && cd preview && npm install && npm run build && cd ..",
"watch": "tsc -b -w"
},
"devDependencies": {
"@types/mocha": "^9.0.0",
"@types/node": "^16.10.2",
"@typescript-eslint/parser": "^4.32.0",
"eslint": "^7.32.0",
"mocha": "^11.1.0",
"typescript": "^4.4.3"
},
"dependencies": {
"vsce": "^2.9.2"
}
}