VS Code 扩展 API:是否可以 extend/enhance 现有的文件浏览器?
VS Code extension API: Is it possible to extend/enhance the existing file explorer?
我有一个插件的想法,需要以可视方式修改 VS Code 文件资源管理器。有什么方法可以通过扩展程序访问视图吗?API?
我知道有一个 API 用于添加新的树视图 (https://code.visualstudio.com/docs/extensionAPI/extension-points#_contributesviews),但我发现没有提到能够自定义现有的树视图。
Is there any way to access the view through the extension API?
没有。扩展 运行 在他们自己的进程中并且没有直接访问 UI dom。
来自 vscode 在 github 中:
There are no plans to give access to the dom for various reasons explained here: https://code.visualstudio.com/docs/extensions/our-approach
...
we do not provide direct access to the underlying UI DOM to extension writers.
The approach to run the extensions isolated in a separate process allows VS Code to strictly control the API exposed to extenders. See the Extensibility API Overview for details on the current API.
我有一个插件的想法,需要以可视方式修改 VS Code 文件资源管理器。有什么方法可以通过扩展程序访问视图吗?API?
我知道有一个 API 用于添加新的树视图 (https://code.visualstudio.com/docs/extensionAPI/extension-points#_contributesviews),但我发现没有提到能够自定义现有的树视图。
Is there any way to access the view through the extension API?
没有。扩展 运行 在他们自己的进程中并且没有直接访问 UI dom。
来自 vscode 在 github 中:
There are no plans to give access to the dom for various reasons explained here: https://code.visualstudio.com/docs/extensions/our-approach
...
we do not provide direct access to the underlying UI DOM to extension writers.
The approach to run the extensions isolated in a separate process allows VS Code to strictly control the API exposed to extenders. See the Extensibility API Overview for details on the current API.