Files
lucisv/editors/vscode/package.json
T
lucioandClaude Fable 5 80b9afdfe3 LSP §9b: willSaveWaitUntil — protocol-native format-on-save
textDocument/willSaveWaitUntil is advertised and served, gated on a new
lucisv.formatOnSave setting that defaults to off (a server that formats
uninvited fights the editor's own format-on-save and doubles up); the
decline is one comparison, before any buffer lookup. When on, the hook
is textDocument/formatting with a different trigger: the same engine,
the same all-or-nothing verified-output contract, settings resolved by
the new format::settings_without_editor_options — the ladder minus the
tabSize rung the protocol simply does not carry here, with the honest
consequence (save-format can differ from manual format without a
lucisv.toml) documented in the README, the VS Code setting description
and the nvim README. Every save reason formats; refusals are shown per
save, on purpose.

18 tests added across settings/format/server/e2e, including QA's
executable proofs of the tab-size gap and its lucisv.toml resolution, a
no-reindex/no-generation-bump guard for the new setting, and an
idempotency round-trip through a real didChange. QA also fixed the
stale 'not advertised' feature list in editors/nvim/README.md and
sharpened the config-warning dedup claim to what the code does (once
per buffer state) — reworded in the README, pinned by test.

docs/features/will-save-wait-until/README.md

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-26 12:21:00 -07:00

216 lines
7.5 KiB
JSON

{
"name": "lucisv",
"displayName": "lucisv — Verilog/SystemVerilog",
"description": "Formatting, diagnostics, navigation and semantic highlighting for Verilog and SystemVerilog, served by the lucisv language server.",
"version": "0.8.0",
"publisher": "guoliangchen",
"author": "Guoliang Chen",
"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": {
"configurationDefaults": {
"[verilog]": {
"editor.defaultColorDecorators": "never"
},
"[systemverilog]": {
"editor.defaultColorDecorators": "never"
}
},
"languages": [
{
"id": "verilog",
"aliases": [
"Verilog",
"verilog"
],
"extensions": [
".v",
".vh"
]
},
{
"id": "systemverilog",
"aliases": [
"SystemVerilog",
"systemverilog"
],
"extensions": [
".sv",
".svh"
]
}
],
"grammars": [
{
"language": "verilog",
"scopeName": "source.systemverilog",
"path": "./syntaxes/systemverilog.tmLanguage.json"
},
{
"language": "systemverilog",
"scopeName": "source.systemverilog",
"path": "./syntaxes/systemverilog.tmLanguage.json"
}
],
"snippets": [
{
"language": "verilog",
"path": "./snippets/verilog.json"
},
{
"language": "systemverilog",
"path": "./snippets/systemverilog.json"
}
],
"colors": [
{
"id": "lucisv.rainbow1",
"description": "begin/end nesting level 1 (and every 6th level below it).",
"defaults": {
"dark": "#FFD700",
"light": "#0431FA",
"highContrast": "#FFD700",
"highContrastLight": "#0431FA"
}
},
{
"id": "lucisv.rainbow2",
"description": "begin/end nesting level 2 (and every 6th level below it).",
"defaults": {
"dark": "#DA70D6",
"light": "#319331",
"highContrast": "#DA70D6",
"highContrastLight": "#319331"
}
},
{
"id": "lucisv.rainbow3",
"description": "begin/end nesting level 3 (and every 6th level below it).",
"defaults": {
"dark": "#179FFF",
"light": "#7B3814",
"highContrast": "#87CEFA",
"highContrastLight": "#7B3814"
}
},
{
"id": "lucisv.rainbow4",
"description": "begin/end nesting level 4 (and every 6th level below it).",
"defaults": {
"dark": "#87D96B",
"light": "#0E7490",
"highContrast": "#87D96B",
"highContrastLight": "#0E7490"
}
},
{
"id": "lucisv.rainbow5",
"description": "begin/end nesting level 5 (and every 6th level below it).",
"defaults": {
"dark": "#FF8C69",
"light": "#6D28D9",
"highContrast": "#FF8C69",
"highContrastLight": "#6D28D9"
}
},
{
"id": "lucisv.rainbow6",
"description": "begin/end nesting level 6 (and every 6th level below it).",
"defaults": {
"dark": "#4FD6D6",
"light": "#BE185D",
"highContrast": "#4FD6D6",
"highContrastLight": "#BE185D"
}
},
{
"id": "lucisv.rainbowUnmatched",
"description": "A begin/end or fork/join keyword whose counterpart is missing.",
"defaults": {
"dark": "#FF1212",
"light": "#B30000",
"highContrast": "#FF1212",
"highContrastLight": "#A80000"
}
}
],
"configuration": {
"title": "lucisv",
"properties": {
"lucisv.serverPath": {
"type": "string",
"default": "lucisv-server",
"description": "Path to the lucisv-server executable. A bare name is looked up on PATH."
},
"lucisv.rainbowBeginEnd": {
"type": "boolean",
"default": true,
"markdownDescription": "Colour each nesting level of `begin`/`end` and `fork`/`join` a different colour, and a keyword whose counterpart is missing in an error colour. Every colour is a `lucisv.rainbow*` theme colour you can override in `workbench.colorCustomizations`. Takes effect immediately."
},
"lucisv.inlineTemplates": {
"type": "boolean",
"default": true,
"markdownDescription": "Show grey ghost text that finishes a block as you open it: `if (` suggests `) begin … end`, a `case (` suggests its arms and `endcase`, and a `begin`, `fork`, `generate` or `module` at the end of a line suggests its closer. Tab accepts it as a snippet, so the cursor lands in the condition first and in the body second; where more than one shape fits (`always @(`), `Alt+]` cycles them. The accepted text is indented with the editor's own `editor.tabSize`/`editor.insertSpaces`, not with `#lucisv.indent#`. Requires `editor.inlineSuggest.enabled`."
},
"lucisv.formatOnSave": {
"type": "boolean",
"default": false,
"markdownDescription": "Let the server format the file when you save it, over `textDocument/willSaveWaitUntil`. Off by default, and **not** what a VS Code user wants: `#editor.formatOnSave#` already formats through lucisv and turning both on formats twice. This exists for the editors that have no format-on-save of their own. The indent comes from the project's `lucisv.toml`, then `#lucisv.indent#`, then the built-in 2 — never from `#editor.tabSize#`, which the protocol does not send with this request."
},
"lucisv.lineLength": {
"type": [
"number",
"null"
],
"default": null,
"minimum": 40,
"maximum": 400,
"markdownDescription": "Maximum line width, the same as `line-length` in a `lucisv.toml`. A `lucisv.toml` in the project wins over this; leave it unset to use the built-in 100."
},
"lucisv.indent": {
"type": [
"number",
"null"
],
"default": null,
"minimum": 1,
"maximum": 8,
"markdownDescription": "Indent width in spaces, the same as `indent` in a `lucisv.toml`. A `lucisv.toml` in the project wins over this; leave it unset to use the editor's tab size."
},
"lucisv.exclude": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Extra path patterns to keep out of the workspace index, the same as `exclude` in a `lucisv.toml`. These are **added to** the project's own excludes, never replacing them."
},
"lucisv.filelist": {
"type": "string",
"default": "",
"markdownDescription": "Path to an EDA filelist (`.f`), absolute or relative to the workspace folder. When set, **exactly** the files it names are indexed instead of the whole folder — `-f` nesting, `+incdir+`, `+define+`, `#`/`//` comments and `$VAR` expansion are all understood. Overrides a `filelist` key in the project's `lucisv.toml`; leave it empty to index the workspace folder."
}
}
}
},
"dependencies": {
"vscode-languageclient": "9.0.1"
}
}