Files
Deng Liuanddengliu a2599a6f79 feat(plugins): plugin-backed content editor tabs with custom actions (#2045)
A plugin web view can open an editor tab with its own title, language (or file name for detection), content and toolbar actions (API 1.3). Clicking an action sends `{ action, content }` back to the plugin, which replies with new content and/or a status message, or left/right content shown in the IDE's diff viewer. The tab follows the editor document lifecycle: modified marker, close-with-changes prompt, read-only, and saves whose reply arrives after newer edits (or that the plugin rejects) keep the document dirty.

Co-authored-by: dengliu <[email protected]>
2026-11-08 08:09:40 +08:00

23 lines
537 B
TOML

id = "web-content"
name = "Web Content Probe"
version = "0.1.0"
description = "Test fixture for a plugin-backed content editor tab with custom toolbar actions."
engines.openidea = "^1.3"
wasm = "dist/plugin.wasm"
activation = ["on-command:ping", "on-command:open"]
[[contributes.views]]
id = "inspector"
title = "Content Probe"
icon = "file-code"
location = "right"
web = "web/index.html"
[[contributes.commands]]
id = "ping"
title = "Content Probe: Ping"
[[contributes.commands]]
id = "open"
title = "Content Probe: Open Editor Tab"