Skip to content

Commit bdea360

Browse files
authored
Add rust hdl #360 (#441)
1 parent e0b4e75 commit bdea360

File tree

4 files changed

+36
-2
lines changed

4 files changed

+36
-2
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66

7+
## [Unreleased]
8+
9+
### Added
10+
11+
- Add support for [rust_hdl](https://github.com/VHDL-LS/rust_hdl) Language Server. [#360](https://github.com/mshr-h/vscode-verilog-hdl-support/issues/360)
12+
713
## [1.12.0] - 2023-08-14
814

915
- Update README.md for ctags [#433](https://github.com/mshr-h/vscode-verilog-hdl-support/pull/433)
@@ -55,7 +61,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5561

5662
### Fixed
5763

58-
- Fixed Slang & Verilator: cant run under WSL [#418](https://github.com/mshr-h/vscode-verilog-hdl-support/issues/418)
64+
- Fixed Slang & Verilator: cant run under WSL [#418](https://github.com/mshr-h/vscode-verilog-hdl-support/issues/418)
5965
- Fixed [#139](https://github.com/mshr-h/vscode-verilog-hdl-support/issues/139)
6066

6167
## [1.11.4] - 2023-04-19

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Install it from [VS Code Marketplace](https://marketplace.visualstudio.com/items
4242
- [veridian](https://github.com/vivekmalneedi/veridian)
4343
- [HDL Checker](https://github.com/suoto/hdl_checker)
4444
- [verible-verilog-ls](https://github.com/chipsalliance/verible)
45+
- [rust_hdl](https://github.com/VHDL-LS/rust_hdl)
4546
- \[Experimental\] Formatting support from:
4647
- [verilog-format](https://github.com/ericsonj/verilog-format)
4748
- [istyle-verilog-formatter](https://github.com/thomasrussellmurphy/istyle-verilog-formatter)
@@ -103,6 +104,8 @@ If you encounter any problems even if it's not related to this feature, **deleti
103104
| [veridian](https://github.com/vivekmalneedi/veridian) | not supported | enabled | not supported |
104105
| [HDL Checker](https://github.com/suoto/hdl_checker) | enabled | enabled | enabled |
105106
| [verible-verilog-ls](https://github.com/chipsalliance/verible) | not supported | enabled | not supported |
107+
| [rust_hdl](https://github.com/VHDL-LS/rust_hdl) | not supported | not supported | enabled |
108+
106109
### Formatting (Experimental)
107110

108111
We currently support Verilog-HDL file formatting with the following formatters.
@@ -153,7 +156,7 @@ Use the following settings to configure the extension to your needs.
153156
Add custom work library to Modelsim for linting.
154157

155158
- `verilog.linting.slang.arguments` (Default: nothing)
156-
159+
157160
Add Slang arguments here (like macros). They will be added to Slang while linting (The command \"-I=<document folder>\" will be added by the linter by default).
158161

159162
- `verilog.linting.slang.includePath` (Default: nothing)
@@ -238,6 +241,14 @@ Use the following settings to configure the extension to your needs.
238241

239242
\[Experimental\] A path to the verible-verilog-ls Language Server binary.
240243

244+
- `verilog.languageServer.rustHdl.enabled` (Default: `false`)
245+
246+
\[Experimental\] Enable rust_hdl Language Server for VHDL.
247+
248+
- `verilog.languageServer.rustHdl.path` (Default: `vhdl_ls`)
249+
250+
\[Experimental\] A path to the rust_hdl Language Server binary.
251+
241252
- `verilog.formatting.verilogHDL.formatter` (Default: `verilog-format`)
242253

243254
\[Experimental\] Choose the Verilog-HDL formatter. Possible values are:

package.json

+12
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,18 @@
437437
"default": "hdl_checker",
438438
"description": "[Experimental] A path to the HDL Checker Language Server binary."
439439
},
440+
"verilog.languageServer.rustHdl.enabled": {
441+
"scope": "window",
442+
"type": "boolean",
443+
"default": false,
444+
"description": "[Experimental] Enable Rust hdl Language Server for VHDL."
445+
},
446+
"verilog.languageServer.rustHdl.path": {
447+
"scope": "window",
448+
"type": "string",
449+
"default": "vhdl_ls",
450+
"description": "[Experimental] A path to the Rust hdl Language Server binary."
451+
},
440452
"verilog.formatting.verilogHDL.formatter": {
441453
"scope": "window",
442454
"type": "string",

src/extension.ts

+5
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ function initAllLanguageClients() {
242242
setupLanguageClient('veribleVerilogLs', 'verible-verilog-ls', [], [], {
243243
documentSelector: [{ scheme: 'file', language: 'systemverilog' }],
244244
});
245+
246+
// init rustHdl
247+
setupLanguageClient('rustHdl', 'vhdl_ls', [], [], {
248+
documentSelector: [{ scheme: 'file', language: 'vhdl' }],
249+
});
245250
}
246251

247252
function stopAllLanguageClients(): Promise<any> {

0 commit comments

Comments
 (0)