admin管理员组文章数量:1336080
I am developing a VSCode plugin and want to display a webview content in the bottom panel (the one where the terminal is located), but I have reviewed VSCode's API and there is no item in the ViewColumn enumeration that can control the display in the bottom panel. Does anyone know how to display it in that position? Thank you very much.
enter image description here
enter image description here
I ask AI,he told me to set ViewColumn.Panel
,but there is not this item.
I am developing a VSCode plugin and want to display a webview content in the bottom panel (the one where the terminal is located), but I have reviewed VSCode's API and there is no item in the ViewColumn enumeration that can control the display in the bottom panel. Does anyone know how to display it in that position? Thank you very much.
enter image description here
enter image description here
I ask AI,he told me to set ViewColumn.Panel
,but there is not this item.
1 Answer
Reset to default 0You have to contribute your viewContainer
to panel
, instead of activityBar
, like the example below:
"contributes": {
"viewsContainers": {
"panel": [
{
"id": "project-manager",
"title": "%projectManager.activitybar.title%",
"icon": "images/project-manager-side-bar.svg"
}
]
},
"views": {
"project-manager": [
{
"id": "projectsExplorerFavorites",
"name": "%projectManager.views.favorites.name%"
},
The documentation here (https://code.visualstudio/api/references/contribution-points#contributes.viewsContainers) defines this behavior:
At present, you can contribute them to the Activity Bar (activitybar) and Panel (panel).
本文标签: visual studio codeHow to place a VSCode plugin39s webview in the bottom panelStack Overflow
版权声明:本文标题:visual studio code - How to place a VSCode plugin's webview in the bottom panel - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742317252a2452065.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论