用于快速语义信息的 VSCode 扩展
我被用来指向鼠标并获取有关Visual Studio代码中某些参考的信息。
在这里,一个示例,使用JavaScript,我将鼠标指向函数参考,并获取有关函数签名的信息。
我想拥有与其他文件相似的东西。
例如
,以以下示例为例,以一种不流行的语言,
module top #(
parameter NB=4
);
logic [NB /*I would like info here */ -1:0] b;
endmodule
我如何编写一个扩展名,当我将鼠标指向参数时,它会在框中显示声明,最好使用编辑器中显示的具有相同的语法亮点。
I am used to point the mouse and get information about certain references in Visual studio code.
Here one example, using Javascript, I point the mouse to a function reference and I get information about the function signature.
I would like to have something similar to other files.
e.g.
Take the following example, in a less popular language
module top #(
parameter NB=4
);
logic [NB /*I would like info here */ -1:0] b;
endmodule
How can I write an extension that when I point the mouse to the parameter it shows me the the declaration in a box, preferably with the same syntax highlight as it is shown in the editor.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
现在有一个带有示例的拉取请求 vscode-extension-samples。
基本上你必须写这样的东西
并在
package.json
上定义语言和激活事件Now there is a pull request with a sample to vscode-extension-samples.
Basically you have to write something like this
And define languages and activation events on
package.json