Owner-requested round. The scope ladder: a filelist still defines the whole project and outranks everything; lucisv.index.scope=workspace restores the walk-the-roots behavior (the same function, not an equal-output one — pinned); the new default walks only the union of folders a buffer has been opened from, each raised lucisv.index.scopeDepth ancestor levels (default 0), clamped at the deepest containing root. Opening a file outside the scope widens it and reindexes through the existing progress/generation machinery; scope grows only along the open axis within a session. Cross-file answers are scope-relative and the docs say so loudly, with the one-line migration in the setting description. The round also closes indexing-ux QA's MEDIUM builder footgun: IndexBuilder::finish now sorts and dedups before assigning FileIds, so no insertion order can reach the result — pinned by a permanent three-order fingerprint test — which makes feeding open files first provably a progress nicety. 151 existing tests swept mechanically (QA sampled 40+ sites: constructor swaps only); lead fixed the one vacuous tail QA found plus two premise/comment hygiene items. 19 tests added. Known deltas documented: a root's .gitignore does not reach a walk starting below it (filed against lucisv_core); rootless depth-0 keeps its flat read; startup index is empty until the first didOpen. docs/features/index-scope/README.md Co-Authored-By: Claude Fable 5 <[email protected]>
272 lines
11 KiB
JSON
272 lines
11 KiB
JSON
{
|
|
"name": "lucisv",
|
|
"displayName": "lucisv — Verilog/SystemVerilog",
|
|
"description": "Fast Verilog/SystemVerilog formatting, linting, navigation, refactoring, semantic highlighting and RTL design intelligence.",
|
|
"version": "0.10.2",
|
|
"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"
|
|
],
|
|
"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. Overrides the server bundled with the extension. 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."
|
|
},
|
|
"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": 0,
|
|
"minimum": 0,
|
|
"markdownDescription": "How many folders **above** an open file the `folder` scope starts from — the reach for relative files. `0` (the default) is the file's own folder and everything under it. `1` starts one folder up, so a file in `rtl/` also indexes `include/` beside it. 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 leave it at `0` for single files."
|
|
},
|
|
"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."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"vscode-languageclient": "9.0.1"
|
|
}
|
|
}
|