mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
Adds `[[contributes.editorPanels]]` (API 1.9): a plugin web page at the right edge of every editor group, beside its text editor, for community minimaps (#130). It needs `editor.read`, takes `width` (40-400 px) and an optional `when`; the page's directory is checked and signed like web views. Each group mounts one frame and keeps it while switching tabs (the page hears `onTarget` instead of reloading); it is hidden while the group shows something other than a text editor. Only frames of editor panels get `openidea.editor`, served straight from the editor rather than through plugin code: `get` / `onTarget`, the read-only document, `viewport` / `onViewport` (at most once a frame), `scrollTo` / `scrollBy`, and `highlights` / `onHighlights` (syntax colours resolved in the current scheme, at most 2000 lines per call). A fixture plugin draws a minimal minimap; plugins/README.md documents the point. Co-authored-by: wildcatDownstairs <26499420+wildcatDownstairs@users.noreply.github.com>
14 lines
311 B
TOML
14 lines
311 B
TOML
id = "editor-panel"
|
|
name = "Editor Panel Probe"
|
|
version = "0.1.0"
|
|
description = "Test fixture for [[contributes.editorPanels]]: a minimal minimap page, no code."
|
|
engines.openidea = "^1.9"
|
|
|
|
[capabilities]
|
|
required = ["editor.read"]
|
|
|
|
[[contributes.editorPanels]]
|
|
id = "minimap"
|
|
web = "web/index.html"
|
|
width = 110
|