Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio code extension: How can I add error markers to files in the explorer?

I have written a validator for my vscode extension, which uses a DiagnosticCollection to set errors for files. This works and the errors are shown when a file is opened.

I would now like to mark files in the explorer, so that it is easy to find files with errors. Here is an example]of how it looks in Eclipse:

Is it possible to do this in a vscode extension? Is there already an extension doing this?

like image 650
Peter Zeller Avatar asked Apr 21 '16 21:04

Peter Zeller


1 Answers

Unfortunately, you can't do that.

There is an open issue asking something related to Git, but not as open as you want. Maybe using the API described in this another issue you could create a new panel with the marked files.

It is still experimental, BTW...

like image 152
alefragnani Avatar answered Sep 24 '22 21:09

alefragnani