VSCode-SystemVerilog
VSCode-SystemVerilog copied to clipboard
Allow selecting your syntax highlighting if 2 extension offer syntax highlighting for SystemVerilog
Hi,
I am using two extension for my SystemVerilog: Yours Systemverilog-1800-2012
The reason is they have a lot of snippet for UVM and he updates the list fairly regularly. But activating both of them, causes their syntax highlighting to replace yours (which is more to my liking).
I know that extension can offer syntax highlighting for the same language and you can select them.
Do you think it could be possible to do the same for your extension?
In the mean time I can copy their snippet, but it gets tedious after a while.
Thanks
Hi @mrvkino, where are you getting those dropdowns. I can't find them. I'm happy to enable this, but I can't find where it would be done.
This is the dropdown you get from:
-
keyboard shortcut:
cmd + k, m
-
command palette:
change language mode
-
status bar: click on the active language
The two log package are: Log File Highlighter The default log language support from VSCODE
I am not sure how they distinguish their version of the syntax highlighting from the default one in the list.
OK, I think I understand how this works. The reason the log extension works is because it uses a different language id
from the default vscode handler (I think). It seems like we don't really have that option here. If I change the language id
from the vscode standard of systemverilog
to something else, the tool will show up as a different option on the list. But, because the language id
is different than what vscode recognizes the file to be, it doesn't load the extension on startup. It seems like a non-starter to require the user to always manually enable the extension every time vscode is launched, or even the first time frankly.
I think the best option here would be to convince the maintainers of Systemverilog-1800-2012 to collaborate, at least on sharing their snippets.