Custom view decorations in VSCode extension

蓝咒 提交于 2019-11-28 12:47:05

Support for custom decorations in views appears to be a work-in-progress. There has been an API for it in the "proposed state" for a while, see:

Source Control and Problem decorations already shown in custom views if TreeView.resourceUri is set.

  • Source Control decorations are managed via the Source Control API - each SourceControlResourceState instance can have decorations attached to it. That would be how the Git extension you mentioned does it.
  • Problem decorations are derived from the "problems" (errors, warnings...) associated with a URI. These are also shown in the Problems panel. Problems can be created using the Diagnostics API or with a problem matcher.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!