338 lines
15 KiB
JSON
338 lines
15 KiB
JSON
{
|
|
"name": "lucisv",
|
|
"displayName": "lucisv — Verilog/SystemVerilog",
|
|
"description": "Fast Verilog/SystemVerilog formatting, linting, navigation, refactoring, semantic highlighting and RTL design intelligence.",
|
|
"version": "0.16.0",
|
|
"publisher": "guoliangchen",
|
|
"author": "Guoliang Chen",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.luci.ooo/lucio/lucisv"
|
|
},
|
|
"homepage": "https://git.luci.ooo/lucio/lucisv",
|
|
"bugs": {
|
|
"url": "https://git.luci.ooo/lucio/lucisv/issues"
|
|
},
|
|
"icon": "images/icon.png",
|
|
"galleryBanner": {
|
|
"color": "#07111F",
|
|
"theme": "dark"
|
|
},
|
|
"pricing": "Free",
|
|
"keywords": [
|
|
"verilog",
|
|
"systemverilog",
|
|
"sv",
|
|
"rtl",
|
|
"hdl",
|
|
"asic",
|
|
"fpga",
|
|
"eda",
|
|
"formatter",
|
|
"linter",
|
|
"language server",
|
|
"lsp",
|
|
"semantic highlighting",
|
|
"refactoring",
|
|
"code navigation",
|
|
"snippets"
|
|
],
|
|
"engines": {
|
|
"vscode": "^1.82.0"
|
|
},
|
|
"categories": [
|
|
"Programming Languages",
|
|
"Formatters",
|
|
"Linters",
|
|
"Snippets"
|
|
],
|
|
"main": "./extension.js",
|
|
"activationEvents": [
|
|
"onLanguage:verilog",
|
|
"onLanguage:systemverilog",
|
|
"onView:lucisv.hierarchy"
|
|
],
|
|
"contributes": {
|
|
"viewsContainers": {
|
|
"activitybar": [
|
|
{
|
|
"id": "lucisv",
|
|
"title": "lucisv",
|
|
"icon": "images/hierarchy.svg"
|
|
}
|
|
]
|
|
},
|
|
"views": {
|
|
"lucisv": [
|
|
{
|
|
"type": "webview",
|
|
"id": "lucisv.hierarchy",
|
|
"name": "Hierarchy"
|
|
}
|
|
]
|
|
},
|
|
"commands": [
|
|
{
|
|
"command": "lucisv.hierarchy.refresh",
|
|
"title": "Refresh Hierarchy",
|
|
"icon": "$(refresh)"
|
|
},
|
|
{
|
|
"command": "lucisv.hierarchy.clearBookmark",
|
|
"title": "Clear Hierarchy Bookmark",
|
|
"icon": "$(clear-all)"
|
|
}
|
|
],
|
|
"menus": {
|
|
"view/title": [
|
|
{
|
|
"command": "lucisv.hierarchy.refresh",
|
|
"when": "view == lucisv.hierarchy",
|
|
"group": "navigation@1"
|
|
},
|
|
{
|
|
"command": "lucisv.hierarchy.clearBookmark",
|
|
"when": "view == lucisv.hierarchy",
|
|
"group": "navigation@2"
|
|
}
|
|
]
|
|
},
|
|
"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. Overrides the server bundled with the extension. A bare name is looked up on PATH."
|
|
},
|
|
"lucisv.verbose": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"markdownDescription": "Print how long every operation took in the lucisv output channel: one `timing:` line per request answered and per notification handled, plus the workspace scans, the index widens, the buffer flushes and any request that had to wait behind a rescan. Off by default and worth turning on only to answer \"why did that feel slow?\" — a busy session logs a line per keystroke. **Changing this restarts the language server**, because it is an argument the server is started with (`lucisv-server --verbose`), not something it can be told mid-session."
|
|
},
|
|
"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."
|
|
},
|
|
"lucisv.index.scope": {
|
|
"type": "string",
|
|
"enum": ["folder", "workspace"],
|
|
"enumDescriptions": [
|
|
"Index the folders your open files live in, and everything under them.",
|
|
"Index every folder in the workspace, whatever is open."
|
|
],
|
|
"default": "folder",
|
|
"markdownDescription": "How much of your project the workspace index scans. **`folder` (the default) indexes only the folders your open files live in** — plus everything under them — which is what keeps a huge project from costing minutes on every scan. Opening a file in another folder widens the index to that folder as well, so the scope grows as you work; it never shrinks while the editor is open. **Until it reaches a folder, symbols in that folder do not exist as far as the server is concerned**: go-to-definition, workspace symbol search, call and type hierarchy, find-references and rename all answer within the current scope only. Set to `workspace` to index every workspace folder up front, as lucisv always did before this setting existed — the right choice for a small project or a fast machine. A `#lucisv.filelist#` overrides this setting entirely: a project file defines the scope."
|
|
},
|
|
"lucisv.index.scopeDepth": {
|
|
"type": "number",
|
|
"default": 2,
|
|
"minimum": 0,
|
|
"markdownDescription": "How many folders **above** an open file the `folder` scope starts from — the reach for relative files. `2` (the default) starts two folders up, which in a typical layout is the whole block an open file belongs to: a file in `hw/ip/aes/rtl/` indexes all of `hw/ip/aes/`, `dv/` and `rtl/` together. `0` is the file's own folder and nothing above it — the old default, and the narrowest, fastest scope there is. The climb never leaves the workspace folder that contains the file, so a large number simply means the whole workspace folder. Raising this widens every answer listed under `#lucisv.index.scope#` and costs a larger scan. Ignored when `#lucisv.index.scope#` is `workspace` or a `#lucisv.filelist#` is set. With **no** workspace folder open there is nothing to clamp the climb against, so set it to `0` when you open single files on their own."
|
|
},
|
|
"lucisv.index.maxFileSize": {
|
|
"type": "number",
|
|
"default": 1048576,
|
|
"minimum": 0,
|
|
"markdownDescription": "Largest file, in bytes, the workspace index will read while scanning your folders. Anything bigger is almost always a generated netlist rather than a design file, and indexing one costs minutes and answers nothing. Set to `0` for no cap. A file you **open** is always indexed in full, however big it is — the cap applies to the folder scan only. Changing this rescans the workspace."
|
|
},
|
|
"lucisv.index.logFiles": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"markdownDescription": "Name every file in the lucisv output channel as it is indexed, and every file the size cap skipped. Useful for finding out why a symbol is missing or why a scan is slow; turn it off if you would rather the channel stayed quiet. Files skipped by `#lucisv.index.maxFileSize#` are counted in the progress bar's final message either way. A file restored from the index cache is logged as `cached:` rather than `indexing:`."
|
|
},
|
|
"lucisv.index.persist": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"markdownDescription": "Remember what indexing a file found, so that reopening this workspace — or reopening it after a crash halfway through a scan — does not parse every unchanged file again. The store lives in this workspace's extension storage folder unless `#lucisv.index.cachePath#` says otherwise, and holds one entry per file **keyed by that file's exact contents**: an entry is used only for the bytes it was made from, so a stale or damaged one costs a re-parse and can never affect an answer. Turn it off to keep the index entirely in memory, as lucisv did before this setting existed; nothing is then read or written."
|
|
},
|
|
"lucisv.index.cachePath": {
|
|
"type": "string",
|
|
"default": "",
|
|
"markdownDescription": "Where to keep the index cache `#lucisv.index.persist#` writes — absolute, or relative to the first workspace folder. Empty (the default) means the extension's own per-workspace storage folder, which VS Code cleans up when the workspace is forgotten. Set this to share one cache between checkouts of the same tree, or to keep it somewhere faster. The directory is created on demand and marks itself ignored with a `.gitignore`. Takes effect on the next workspace scan."
|
|
},
|
|
"lucisv.largeFile.threshold": {
|
|
"type": "number",
|
|
"default": 4194304,
|
|
"minimum": 0,
|
|
"markdownDescription": "Size in bytes above which an **opened file** is put on the fast path: it is line-counted and nothing else — never parsed, never analyzed, never indexed — so a 100 MB netlist opens instantly instead of hanging the editor. What you still get is **syntax colouring of what is on screen**, painted a screenful at a time, plus go-to-definition and find-references within that file by text search. Everything else — diagnostics, formatting, symbols, folding, rename, hover, completion — answers nothing at all for such a file, and formatting says so rather than doing nothing quietly. A file on the fast path is left out of the workspace index entirely, so its symbols do not exist for the rest of the project. Set to `0` to analyze every file you open however big it is. Takes effect the next time the file is opened or edited. Not to be confused with `#lucisv.index.maxFileSize#`, which is about files nobody opened."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"vscode-languageclient": "9.0.1"
|
|
}
|
|
}
|