Files
lucisv/editors/vscode/package.json
T
lucioandClaude Fable 5 9a3a92cabb Expose vfmt.toml settings in VS Code: vfmt.lineLength, vfmt.indent, vfmt.exclude
All three vfmt.toml keys, pushed over workspace/didChangeConfiguration
(initial push verified against the real vscode-languageclient 9.0.1).
Precedence: vfmt.toml > vfmt.* settings > editor tabSize > built-in
default — a checked-in config stays authoritative so format-on-save never
diverges from CI. Invalid values are ignored, never clamped or coerced;
exclude is appended to the config's excludes and re-indexes the workspace
on change. Untitled buffers and toml-less projects gain an editor-set
line length, previously impossible over LSP.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-24 03:15:54 -07:00

108 lines
2.9 KiB
JSON

{
"name": "vfmt",
"displayName": "vfmt — Verilog/SystemVerilog",
"description": "Formatting, diagnostics, navigation and semantic highlighting for Verilog and SystemVerilog, served by the vfmt language server.",
"version": "0.2.0",
"publisher": "REPLACE-ME",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://git.luci.ooo/lucio/verilogrustformatter"
},
"engines": {
"vscode": "^1.82.0"
},
"categories": [
"Programming Languages",
"Formatters",
"Linters"
],
"main": "./extension.js",
"activationEvents": [
"onLanguage:verilog",
"onLanguage:systemverilog"
],
"contributes": {
"languages": [
{
"id": "verilog",
"aliases": [
"Verilog",
"verilog"
],
"extensions": [
".v",
".vh"
]
},
{
"id": "systemverilog",
"aliases": [
"SystemVerilog",
"systemverilog"
],
"extensions": [
".sv",
".svh"
]
}
],
"snippets": [
{
"language": "verilog",
"path": "./snippets/verilog.json"
},
{
"language": "systemverilog",
"path": "./snippets/systemverilog.json"
}
],
"configuration": {
"title": "vfmt",
"properties": {
"vfmt.serverPath": {
"type": "string",
"default": "vfmt-server",
"description": "Path to the vfmt-server executable. A bare name is looked up on PATH."
},
"vfmt.rainbowBeginEnd": {
"type": "boolean",
"default": true,
"description": "Colour each nesting level of begin/end and fork/join a different colour, using the theme's bracket-pair colours. Takes effect immediately."
},
"vfmt.lineLength": {
"type": [
"number",
"null"
],
"default": null,
"minimum": 40,
"maximum": 400,
"markdownDescription": "Maximum line width, the same as `line-length` in a `vfmt.toml`. A `vfmt.toml` in the project wins over this; leave it unset to use the built-in 100."
},
"vfmt.indent": {
"type": [
"number",
"null"
],
"default": null,
"minimum": 1,
"maximum": 8,
"markdownDescription": "Indent width in spaces, the same as `indent` in a `vfmt.toml`. A `vfmt.toml` in the project wins over this; leave it unset to use the editor's tab size."
},
"vfmt.exclude": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Extra path patterns to keep out of the workspace index, the same as `exclude` in a `vfmt.toml`. These are **added to** the project's own excludes, never replacing them."
}
}
}
},
"dependencies": {
"vscode-languageclient": "9.0.1"
}
}