mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-15 08:08:18 +00:00
Plugins could show their own content in an editor tab (open-content-tab) but
could open the diff viewer only as the reply to one of that tab's actions. A
review plugin (a merge request's files, say) had no way to show a file's
before and after.
views.open-diff opens two texts in the invoking window's diff viewer, with
optional labels and title and a file name that picks the syntax highlighting;
web views send { op: "open-diff", ... }. The SDK wraps it as host::open_diff
with a mock. The plugin API moves to 1.7.0 (1.6.0 is released) and the checked-in
components are rebuilt.
17 lines
874 B
Plaintext
17 lines
874 B
Plaintext
package openidea:plugin@1.7.0;
|
|
|
|
/// Embedded languages. The host routes plugin providers and configured language
|
|
/// servers inside these ranges, preserving host-document UTF-16 coordinates.
|
|
/// Each LSP range gets its own masked, in-memory sibling document (at most 32
|
|
/// per host document, documents over 2 MiB excluded). No file is written.
|
|
/// Formatting and rename continue to use the host language's server.
|
|
interface injections {
|
|
/// A versioned document snapshot. Coordinates are zero-based UTF-16.
|
|
record document { path: string, language: string, version: u64, text: string }
|
|
/// A host-document range containing the named language.
|
|
record injection { range: range, language: string }
|
|
use types.{range};
|
|
/// Embedded ranges, refreshed after edits under the editor-provider budget.
|
|
injections: func(doc: document) -> list<injection>;
|
|
}
|