简体   繁体   中英

How can I use Problems panel in my vscode extension?

我想在我的vscode扩展中使用Problems面板,但我找不到api.How我可以使用它或在哪里可以找到有关Problems面板的api?

This is achieved through the use of Diagnostic objects. Each object will be a separate entry in the Problems panel.

Take a look at https://code.visualstudio.com/docs/extensions/example-language-server#_adding-a-simple-validation for an example of how it's done.

If you are not writing a language server, then you need to look into the DiagnosticsCollection class .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM