Visual studio 代码扩展:如何在资源管理器中为文件添加错误标记?

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

我已经为我的 vscode 扩展编写了一个验证程序,它使用 DiagnosticCollection 来设置文件错误。这有效,并且在打开文件时显示错误。

我现在想在资源管理器中标记文件,这样可以很容易地找到有错误的文件。这是一个示例]它在 Eclipse 中的外观:

是否可以在 vscode 扩展中执行此操作?是否已有扩展程序执行此操作?

很遗憾,您不能那样做。

有一个 open issue asking something related to Git, but not as open as you want. Maybe using the API described in this another issue 您可以使用标记的文件创建一个新面板。

它仍然是实验性的,顺便说一句...