英文:
VScode extension: how can I add custom UI *inside* the editor?
问题
我正在开发一个 vscode 扩展,我想在活动行的上方/下方添加自定义用户界面。
我在 copilot 聊天演示视频中看到了类似的用户界面。
这个用户界面是自定义的,并且跨越多行,所以它看起来不像 CodeLens、CodeAction 或装饰品。
我尝试创建 webview,但它总是在一个新的选项卡中呈现。
英文:
I'm building a vscode extension, and I want to add custom UI on/below the active line.
I saw a similar UI in copilot chat demo video.
The UI is custom, and spans lines, so it doesn't look like CodeLens, CodeAction, or Decorations.
I tried to create webview, but that always renders on a new tab.
答案1
得分: 2
Okay, nevermind. It's not available in public API (at least now - July 2023).
我找到了功能请求的票 https://github.com/microsoft/vscode/issues/85682
英文:
Okay, nevermind. It's not available in public API (at least now - July 2023).
I found the feature request ticket https://github.com/microsoft/vscode/issues/85682
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论