chipsalliance / verible

Verible is a suite of SystemVerilog developer tools, including a parser, style-linter, formatter and language server
https://chipsalliance.github.io/verible/
Other
1.34k stars 205 forks source link

LSP: provide some template expansion features #1557

Open hzeller opened 1 year ago

hzeller commented 1 year ago

The emacs verilog mode ( https://www.veripool.org/verilog-mode/ ) has some neat features to expand templates right inside the editor.

The langauge server can emply CodeAction features to offer modifying the code in the editor, so can be made to provide similar features as well.

From users, we got requests to implement a few basic features that behave similar to the emacs mode correspondence. If they are integrated in the language server, they will work not only in emacs, but all other editors that support the language server (from vim to vscode).

An initial survey [^1] showed these to be the first level of important template operations

[^1]: sed 's/.*\(AUTO[A-Z_]*\).*/\1/p;d' *.sv | sort | uniq -c | sort -rn

kbieganski commented 1 year ago