From 83364c5423e3a541afcda84ee9e00ca03e7ec6dd Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Sat, 21 Nov 2026 21:03:57 +0800 Subject: [PATCH] chore: v0.1.50 --- Cargo.lock | 96 +++++++++---------- Cargo.toml | 2 +- package.json | 2 +- .../tests/api/released/commit.wit | 2 +- .../tests/api/released/database.wit | 2 +- .../tests/api/released/decorations.wit | 2 +- .../tests/api/released/details.wit | 2 +- .../tests/api/released/diagnostics.wit | 2 +- .../tests/api/released/endpoints.wit | 2 +- .../tests/api/released/events.wit | 2 +- .../tests/api/released/exports.wit | 2 +- .../tests/api/released/extensions.wit | 2 +- .../tests/api/released/file-actions.wit | 2 +- .../openidea-plugin/tests/api/released/fs.wit | 14 +-- .../tests/api/released/host.wit | 31 +++++- .../tests/api/released/hover-actions.wit | 40 ++++++++ .../tests/api/released/hover.wit | 2 +- .../tests/api/released/indexing.wit | 2 +- .../tests/api/released/injections.wit | 2 +- .../tests/api/released/inlay.wit | 2 +- .../openidea-plugin/tests/api/released/io.wit | 14 ++- .../tests/api/released/language-features.wit | 2 +- .../tests/api/released/mcp.wit | 2 +- .../tests/api/released/plugin.wit | 2 +- .../tests/api/released/providers.wit | 2 +- .../tests/api/released/run-targets.wit | 2 +- .../tests/api/released/run.wit | 2 +- .../tests/api/released/search.wit | 2 +- .../tests/api/released/semantic.wit | 2 +- .../tests/api/released/types.wit | 2 +- .../tests/api/released/views.wit | 7 +- .../tests/api/released/workspace.wit | 7 +- src-tauri/tauri.conf.json | 2 +- 33 files changed, 168 insertions(+), 93 deletions(-) create mode 100644 sdk/rust/openidea-plugin/tests/api/released/hover-actions.wit diff --git a/Cargo.lock b/Cargo.lock index 6bbaac5f1..a26d3960a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4144,7 +4144,7 @@ checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" [[package]] name = "ide-agent" -version = "0.1.49" +version = "0.1.50" dependencies = [ "blake3", "dunce", @@ -4171,7 +4171,7 @@ dependencies = [ [[package]] name = "ide-analysis" -version = "0.1.49" +version = "0.1.50" dependencies = [ "ast-grep-core", "ide-core", @@ -4185,7 +4185,7 @@ dependencies = [ [[package]] name = "ide-android" -version = "0.1.49" +version = "0.1.50" dependencies = [ "ide-core", "serde", @@ -4196,7 +4196,7 @@ dependencies = [ [[package]] name = "ide-build" -version = "0.1.49" +version = "0.1.50" dependencies = [ "blake3", "chardetng", @@ -4214,7 +4214,7 @@ dependencies = [ [[package]] name = "ide-cli" -version = "0.1.49" +version = "0.1.50" dependencies = [ "dirs 6.0.0", "serde", @@ -4228,7 +4228,7 @@ dependencies = [ [[package]] name = "ide-clipboard" -version = "0.1.49" +version = "0.1.50" dependencies = [ "gtk", "objc2 0.6.5", @@ -4239,7 +4239,7 @@ dependencies = [ [[package]] name = "ide-command" -version = "0.1.49" +version = "0.1.50" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -4250,7 +4250,7 @@ dependencies = [ [[package]] name = "ide-core" -version = "0.1.49" +version = "0.1.50" dependencies = [ "dunce", "encoding_rs", @@ -4267,7 +4267,7 @@ dependencies = [ [[package]] name = "ide-coverage" -version = "0.1.49" +version = "0.1.50" dependencies = [ "ide-core", "ide-run", @@ -4281,7 +4281,7 @@ dependencies = [ [[package]] name = "ide-dap" -version = "0.1.49" +version = "0.1.50" dependencies = [ "base64 0.22.1", "futures", @@ -4310,7 +4310,7 @@ dependencies = [ [[package]] name = "ide-db" -version = "0.1.49" +version = "0.1.50" dependencies = [ "base64 0.22.1", "bb8", @@ -4348,7 +4348,7 @@ dependencies = [ [[package]] name = "ide-docker" -version = "0.1.49" +version = "0.1.50" dependencies = [ "ide-core", "serde", @@ -4361,7 +4361,7 @@ dependencies = [ [[package]] name = "ide-drag-out" -version = "0.1.49" +version = "0.1.50" dependencies = [ "gtk", "objc2 0.6.5", @@ -4375,7 +4375,7 @@ dependencies = [ [[package]] name = "ide-extension" -version = "0.1.49" +version = "0.1.50" dependencies = [ "base64 0.22.1", "blake3", @@ -4396,7 +4396,7 @@ dependencies = [ [[package]] name = "ide-flutter" -version = "0.1.49" +version = "0.1.50" dependencies = [ "ide-android", "ide-core", @@ -4407,7 +4407,7 @@ dependencies = [ [[package]] name = "ide-fonts" -version = "0.1.49" +version = "0.1.50" dependencies = [ "objc2-core-foundation", "objc2-core-text", @@ -4419,7 +4419,7 @@ dependencies = [ [[package]] name = "ide-github" -version = "0.1.49" +version = "0.1.50" dependencies = [ "ide-core", "ide-vcs", @@ -4432,7 +4432,7 @@ dependencies = [ [[package]] name = "ide-heap" -version = "0.1.49" +version = "0.1.50" dependencies = [ "criterion", "ide-core", @@ -4450,7 +4450,7 @@ dependencies = [ [[package]] name = "ide-host" -version = "0.1.49" +version = "0.1.50" dependencies = [ "base64 0.22.1", "blake3", @@ -4525,7 +4525,7 @@ dependencies = [ [[package]] name = "ide-http" -version = "0.1.49" +version = "0.1.50" dependencies = [ "hyper-util", "ide-core", @@ -4545,7 +4545,7 @@ dependencies = [ [[package]] name = "ide-index" -version = "0.1.49" +version = "0.1.50" dependencies = [ "blake3", "criterion", @@ -4567,7 +4567,7 @@ dependencies = [ [[package]] name = "ide-jdwp" -version = "0.1.49" +version = "0.1.50" dependencies = [ "ide-jvm-inspect", "proptest", @@ -4579,7 +4579,7 @@ dependencies = [ [[package]] name = "ide-jsonrpc" -version = "0.1.49" +version = "0.1.50" dependencies = [ "encoding_rs", "futures", @@ -4596,7 +4596,7 @@ dependencies = [ [[package]] name = "ide-jvm-attach" -version = "0.1.49" +version = "0.1.50" dependencies = [ "libc", "tempfile", @@ -4605,7 +4605,7 @@ dependencies = [ [[package]] name = "ide-jvm-inspect" -version = "0.1.49" +version = "0.1.50" dependencies = [ "futures", "serde", @@ -4616,7 +4616,7 @@ dependencies = [ [[package]] name = "ide-language" -version = "0.1.49" +version = "0.1.50" dependencies = [ "blake3", "criterion", @@ -4675,7 +4675,7 @@ dependencies = [ [[package]] name = "ide-lsp" -version = "0.1.49" +version = "0.1.50" dependencies = [ "criterion", "dunce", @@ -4704,7 +4704,7 @@ dependencies = [ [[package]] name = "ide-mcp" -version = "0.1.49" +version = "0.1.50" dependencies = [ "bytes", "dunce", @@ -4723,7 +4723,7 @@ dependencies = [ [[package]] name = "ide-notebook" -version = "0.1.49" +version = "0.1.50" dependencies = [ "futures", "ide-core", @@ -4746,7 +4746,7 @@ dependencies = [ [[package]] name = "ide-plugin" -version = "0.1.49" +version = "0.1.50" dependencies = [ "blake3", "dunce", @@ -4769,7 +4769,7 @@ dependencies = [ [[package]] name = "ide-profiler" -version = "0.1.49" +version = "0.1.50" dependencies = [ "ide-core", "ide-jvm-attach", @@ -4783,7 +4783,7 @@ dependencies = [ [[package]] name = "ide-remote" -version = "0.1.49" +version = "0.1.50" dependencies = [ "dunce", "futures", @@ -4803,7 +4803,7 @@ dependencies = [ [[package]] name = "ide-run" -version = "0.1.49" +version = "0.1.50" dependencies = [ "dunce", "encoding_rs", @@ -4827,7 +4827,7 @@ dependencies = [ [[package]] name = "ide-scaffold" -version = "0.1.49" +version = "0.1.50" dependencies = [ "ide-core", "ide-tools", @@ -4843,7 +4843,7 @@ dependencies = [ [[package]] name = "ide-sdk" -version = "0.1.49" +version = "0.1.50" dependencies = [ "dunce", "flate2", @@ -4866,7 +4866,7 @@ dependencies = [ [[package]] name = "ide-search" -version = "0.1.49" +version = "0.1.50" dependencies = [ "criterion", "encoding_rs", @@ -4887,7 +4887,7 @@ dependencies = [ [[package]] name = "ide-spell" -version = "0.1.49" +version = "0.1.50" dependencies = [ "ide-core", "parking_lot", @@ -4900,7 +4900,7 @@ dependencies = [ [[package]] name = "ide-ssh" -version = "0.1.49" +version = "0.1.50" dependencies = [ "dirs 6.0.0", "flate2", @@ -4925,7 +4925,7 @@ dependencies = [ [[package]] name = "ide-streams" -version = "0.1.49" +version = "0.1.50" dependencies = [ "ide-core", "ide-language", @@ -4938,7 +4938,7 @@ dependencies = [ [[package]] name = "ide-syntax" -version = "0.1.49" +version = "0.1.50" dependencies = [ "ide-core", "ide-language", @@ -4953,7 +4953,7 @@ dependencies = [ [[package]] name = "ide-terminal" -version = "0.1.49" +version = "0.1.50" dependencies = [ "ide-core", "libc", @@ -4967,7 +4967,7 @@ dependencies = [ [[package]] name = "ide-text" -version = "0.1.49" +version = "0.1.50" dependencies = [ "criterion", "ide-core", @@ -4980,7 +4980,7 @@ dependencies = [ [[package]] name = "ide-tools" -version = "0.1.49" +version = "0.1.50" dependencies = [ "flate2", "hex", @@ -5001,7 +5001,7 @@ dependencies = [ [[package]] name = "ide-vcs" -version = "0.1.49" +version = "0.1.50" dependencies = [ "blake3", "dunce", @@ -5022,7 +5022,7 @@ dependencies = [ [[package]] name = "ide-vfs" -version = "0.1.49" +version = "0.1.50" dependencies = [ "chardetng", "dunce", @@ -5049,7 +5049,7 @@ dependencies = [ [[package]] name = "ide-web" -version = "0.1.49" +version = "0.1.50" dependencies = [ "dirs 6.0.0", "ide-core", @@ -5065,7 +5065,7 @@ dependencies = [ [[package]] name = "ide-workspace" -version = "0.1.49" +version = "0.1.50" dependencies = [ "blake3", "dunce", @@ -6694,7 +6694,7 @@ dependencies = [ [[package]] name = "openidea" -version = "0.1.49" +version = "0.1.50" dependencies = [ "base64 0.22.1", "blake3", diff --git a/Cargo.toml b/Cargo.toml index 58aac19cf..f096a8ce2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ members = ["crates/*", "src-tauri"] exclude = ["sdk", "plugins"] [workspace.package] -version = "0.1.49" +version = "0.1.50" edition = "2024" rust-version = "1.96" license = "Apache-2.0" diff --git a/package.json b/package.json index 27ea949d7..172884be0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "openidea", "private": true, "description": "An open-source IDE inspired by IntelliJ IDEA", - "version": "0.1.49", + "version": "0.1.50", "license": "Apache-2.0", "type": "module", "scripts": { diff --git a/sdk/rust/openidea-plugin/tests/api/released/commit.wit b/sdk/rust/openidea-plugin/tests/api/released/commit.wit index 763911ad5..0b3b8fc24 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/commit.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/commit.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// The commit being prepared in the window the current command or event came /// from (the Commit tool window, or the Commit dialog while it is open): the diff --git a/sdk/rust/openidea-plugin/tests/api/released/database.wit b/sdk/rust/openidea-plugin/tests/api/released/database.wit index 379266834..ea5b543a2 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/database.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/database.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Plugin-owned project data sources. Requires database.sources and project trust. /// Runs on the Database subsystem's host, including on remote project servers. diff --git a/sdk/rust/openidea-plugin/tests/api/released/decorations.wit b/sdk/rust/openidea-plugin/tests/api/released/decorations.wit index a291643cb..96c543ae3 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/decorations.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/decorations.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Editor and project-tree decorations (API 1.4). Requires project.read. An editor set /// follows its file: the file's own project, or the nearest one when it is outside them all. diff --git a/sdk/rust/openidea-plugin/tests/api/released/details.wit b/sdk/rust/openidea-plugin/tests/api/released/details.wit index 3ebf0eea0..3363dc99c 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/details.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/details.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// What the pane beside the Services tree shows for a plugin's node. interface detail-types { diff --git a/sdk/rust/openidea-plugin/tests/api/released/diagnostics.wit b/sdk/rust/openidea-plugin/tests/api/released/diagnostics.wit index 72a5b5ceb..32f1a9188 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/diagnostics.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/diagnostics.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Optional export (world `plugin-diagnostics`): problems in the current, /// possibly unsaved document, for the languages declared with the diff --git a/sdk/rust/openidea-plugin/tests/api/released/endpoints.wit b/sdk/rust/openidea-plugin/tests/api/released/endpoints.wit index 0aca4c9ac..44b7c6d79 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/endpoints.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/endpoints.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// HTTP endpoints found in a project (`[[contributes.endpoints]]`). interface endpoints-provider { diff --git a/sdk/rust/openidea-plugin/tests/api/released/events.wit b/sdk/rust/openidea-plugin/tests/api/released/events.wit index 27b0639f8..ca11daa53 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/events.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/events.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Workbench events, delivered in batches to `event-handler.handle`. interface events { diff --git a/sdk/rust/openidea-plugin/tests/api/released/exports.wit b/sdk/rust/openidea-plugin/tests/api/released/exports.wit index 173fe19cd..15858b5be 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/exports.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/exports.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; interface lifecycle { use types.{context, error}; diff --git a/sdk/rust/openidea-plugin/tests/api/released/extensions.wit b/sdk/rust/openidea-plugin/tests/api/released/extensions.wit index d2b73648a..aa2cc9d09 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/extensions.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/extensions.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// What other plugins contributed to the extension points this plugin declares /// (`[[extension-points]]` in `plugin.toml`; the contributors list this plugin diff --git a/sdk/rust/openidea-plugin/tests/api/released/file-actions.wit b/sdk/rust/openidea-plugin/tests/api/released/file-actions.wit index 9de9084f9..175d54247 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/file-actions.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/file-actions.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Optional export (world `plugin-file-actions`): quick fixes and /// refactorings that create, rename or delete files, next to the text edits diff --git a/sdk/rust/openidea-plugin/tests/api/released/fs.wit b/sdk/rust/openidea-plugin/tests/api/released/fs.wit index fc70f83d1..af4082de1 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/fs.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/fs.wit @@ -1,15 +1,15 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Files outside the open projects: the configuration of the program a /// plugin integrates with, a tool installed elsewhere, a licence file. /// /// A plugin's own WASI has no preopened directory. Every path outside its -/// own `plugin-dir` is checked against its `fs.read:` (reading) or -/// `fs.write:` -/// (writing; it doesn't imply reading) grants; without one covering the path a -/// call returns `denied` naming the capability the manifest has to declare. A -/// file inside a project is `workspace.project.read-file` / `write-file`. -/// `path` is absolute, or starts with `~/` for the user's home. +/// own `plugin-dir` and install directory is checked against its +/// `fs.read:` (reading) or `fs.write:` (writing; it doesn't imply +/// reading) grants; without one covering the path a call returns `denied` +/// naming the capability the manifest has to declare. The install directory is +/// read-only. A file inside a project is `workspace.project.read-file` / +/// `write-file`. `path` is absolute, or starts with `~/` for the user's home. interface fs { use types.{error}; use workspace.{file-kind, file-stat}; diff --git a/sdk/rust/openidea-plugin/tests/api/released/host.wit b/sdk/rust/openidea-plugin/tests/api/released/host.wit index 022f611f4..25b1b2244 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/host.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/host.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Writes to the IDE log, tagged with the plugin id. interface log { @@ -18,6 +18,27 @@ interface ui { command: option, } + /// An action in a status bar item's menu (API 1.14). + record status-menu-action { + /// Up to 256 bytes, one line. + label: string, + /// Secondary text shown after the label, such as a URL (up to 256 bytes). + description: option, + /// The id of a command the plugin declares, run when the entry is chosen. + command: string, + /// Passed to the command as its argument (up to 64 KiB). + argument: option, + } + + /// An entry of a status bar item's menu (API 1.14). + variant status-menu-entry { + action(status-menu-action), + /// A line between groups of actions. + separator, + /// A caption above a group (up to 256 bytes, one line). + header(string), + } + record pick-item { /// Returned when the item is chosen. key: string, @@ -90,6 +111,14 @@ interface ui { set-window-status-item: func(id: string, item: status-item) -> result<_, error>; /// Removes this window's override, falling back to the global item. remove-window-status-item: func(id: string) -> result<_, error>; + /// `set-status-item` with a menu (API 1.14): clicking the item opens the + /// menu anchored to it instead of running the item's command, and choosing + /// an action runs its command in that window. At most 64 entries. An empty + /// menu is the same as `set-status-item`. An action naming a command the + /// plugin does not declare fails the call and changes nothing. + set-status-item-menu: func(id: string, item: status-item, menu: list) -> result<_, error>; + /// `set-window-status-item` with a menu, as `set-status-item-menu` (API 1.14). + set-window-status-item-menu: func(id: string, item: status-item, menu: list) -> result<_, error>; /// Replaces the plugin's console highlight rules (API 1.12); an empty /// list removes them. Every window applies them to the stdout and stderr /// lines of its Run and Debug consoles; the plugin never sees the output. diff --git a/sdk/rust/openidea-plugin/tests/api/released/hover-actions.wit b/sdk/rust/openidea-plugin/tests/api/released/hover-actions.wit new file mode 100644 index 000000000..b58630b60 --- /dev/null +++ b/sdk/rust/openidea-plugin/tests/api/released/hover-actions.wit @@ -0,0 +1,40 @@ +package openidea:plugin@1.14.0; + +/// Optional export (world `plugin-hover-actions`): clickable actions rendered +/// at the left edge of a line and revealed while the pointer is in the leftmost +/// editing-area strip of the action's line range. +interface hover-actions { + use language-features.{document}; + + /// An action drawn at the left edge of `line`. + record hover-action { + /// The line the button is drawn on; normally the declaration line. + line: u32, + /// First line whose left strip reveals this action, inclusive. + start-line: u32, + /// Last line whose left strip reveals this action, inclusive. + end-line: u32, + /// Optional icon: a registered icon name or a declared manifest SVG path. + icon: option, + /// Text shown when no icon is present, or beside the icon. + label: string, + tooltip: option, + /// This plugin's declared command. + command: string, + argument: option, + } + + /// Actions for the visible document, under the editor-provider budget. + hover-actions: func(doc: document) -> list; +} + +/// The optional export-only world the SDK merges with `plugin`. +world hover-actions-provider { + export hover-actions; +} + +/// The host-side world used to instantiate a component that exports it. +world plugin-hover-actions { + include plugin; + export hover-actions; +} diff --git a/sdk/rust/openidea-plugin/tests/api/released/hover.wit b/sdk/rust/openidea-plugin/tests/api/released/hover.wit index c483d3df9..4a5bdad66 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/hover.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/hover.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Optional export (world `plugin-hover`): Markdown added to the hover of /// documents of the languages declared with the `hover` provider kind, diff --git a/sdk/rust/openidea-plugin/tests/api/released/indexing.wit b/sdk/rust/openidea-plugin/tests/api/released/indexing.wit index 727edfb77..9b2e9d5aa 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/indexing.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/indexing.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Cross-file associations a plugin publishes for the files it declares under /// `[[contributes.documentIndexers]]`. The host calls `index` in cancellable diff --git a/sdk/rust/openidea-plugin/tests/api/released/injections.wit b/sdk/rust/openidea-plugin/tests/api/released/injections.wit index 7570a6fb3..f9d56dbe1 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/injections.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/injections.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Embedded languages. The host routes plugin providers and configured language /// servers inside these ranges, preserving host-document UTF-16 coordinates. diff --git a/sdk/rust/openidea-plugin/tests/api/released/inlay.wit b/sdk/rust/openidea-plugin/tests/api/released/inlay.wit index aa58c6207..cfbb93b94 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/inlay.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/inlay.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Optional export (world `plugin-inlay-hints`): inline hints in documents of /// the languages declared with the `inlay-hints` provider kind, including diff --git a/sdk/rust/openidea-plugin/tests/api/released/io.wit b/sdk/rust/openidea-plugin/tests/api/released/io.wit index 1ebe516ce..20dfa230f 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/io.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/io.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Problems in files, shown in the editor and the Problems view. interface diagnostics { @@ -150,7 +150,8 @@ interface process { } /// What a kept-running program printed since the last call, and its exit - /// code once it ended (`none` while it still runs). + /// code with the last of its output (`none` while it still runs or output + /// is left to read, so the first chunk with a status is the final one). record chunk { /// Up to 1 MiB per stream; unpolled output keeps the last 1 MiB. /// `poll` takes up to `max-bytes`, or one whole character when that @@ -165,10 +166,13 @@ interface process { /// (the ninth `start` is `invalid`). They also end with the plugin: /// stopping, disabling or reclaiming it kills what it started. resource child { - /// What it printed since the last call, and its status once it ends. + /// What it printed since the last call; the status comes with the + /// chunk that holds the last of its output. poll: func(max-bytes: u32) -> result; - /// Waits up to `timeout-ms` for it to end (0 only checks), then - /// reports what it printed since the last call. + /// Waits up to `timeout-ms` for it to end and its output to reach the + /// end (0 only checks), then reports what it printed since the last + /// call. When more is left than one chunk holds, the status comes + /// with a later `poll`. wait: func(timeout-ms: u32) -> result; /// Writes to its stdin; fails once it ended or stdin was closed. write: func(text: string) -> result<_, error>; diff --git a/sdk/rust/openidea-plugin/tests/api/released/language-features.wit b/sdk/rust/openidea-plugin/tests/api/released/language-features.wit index ea49b0cdc..47aa04b22 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/language-features.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/language-features.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Additional language features, called only for declared API 1.4 provider kinds. /// Editor calls have a 50 ms soft / 500 ms hard budget; formatting has 5 seconds. diff --git a/sdk/rust/openidea-plugin/tests/api/released/mcp.wit b/sdk/rust/openidea-plugin/tests/api/released/mcp.wit index b65527ab5..c07d71583 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/mcp.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/mcp.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Discovery of the IDE's built-in MCP server; never exposes its URL or token. interface mcp { diff --git a/sdk/rust/openidea-plugin/tests/api/released/plugin.wit b/sdk/rust/openidea-plugin/tests/api/released/plugin.wit index 9248969e9..c777abda8 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/plugin.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/plugin.wit @@ -8,7 +8,7 @@ /// `fs` and `workspace`, and everything else goes through the imports below, /// gated by the capabilities granted in `plugin.toml` (a missing one returns /// `error::denied`). -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; world plugin { import log; diff --git a/sdk/rust/openidea-plugin/tests/api/released/providers.wit b/sdk/rust/openidea-plugin/tests/api/released/providers.wit index 287bf5fa7..b8f4d25fb 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/providers.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/providers.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Editor features a plugin provides for the languages it declares under /// `[[contributes.providers]]` (the host calls only declared kinds). They run diff --git a/sdk/rust/openidea-plugin/tests/api/released/run-targets.wit b/sdk/rust/openidea-plugin/tests/api/released/run-targets.wit index 43af1f11b..eaf7caa4b 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/run-targets.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/run-targets.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Project-scoped targets owned by the registering plugin (API 1.4). interface run-targets { diff --git a/sdk/rust/openidea-plugin/tests/api/released/run.wit b/sdk/rust/openidea-plugin/tests/api/released/run.wit index 040c0a7d4..2d9984066 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/run.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/run.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Launches this plugin's configurations in the invoking window's Run tool window. interface run { diff --git a/sdk/rust/openidea-plugin/tests/api/released/search.wit b/sdk/rust/openidea-plugin/tests/api/released/search.wit index 020c9404d..ca2ef675b 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/search.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/search.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// On-demand results for `[[contributes.searchCategories]]`. Optional, API 1.13. interface search-provider { diff --git a/sdk/rust/openidea-plugin/tests/api/released/semantic.wit b/sdk/rust/openidea-plugin/tests/api/released/semantic.wit index 521f12b70..9fd28437d 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/semantic.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/semantic.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Optional export (world `plugin-semantic-tokens`): semantic colouring of /// documents of the languages declared with the `semantic-tokens` provider diff --git a/sdk/rust/openidea-plugin/tests/api/released/types.wit b/sdk/rust/openidea-plugin/tests/api/released/types.wit index a6c7ae278..0300c273b 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/types.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/types.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Shared types. Positions are 0-based lines and UTF-16 code unit columns, /// as in the editor and LSP. diff --git a/sdk/rust/openidea-plugin/tests/api/released/views.wit b/sdk/rust/openidea-plugin/tests/api/released/views.wit index 81d06ad18..293b7f12e 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/views.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/views.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; /// Declarative views: tool windows declared /// under `[[contributes.views]]` and custom editors under @@ -188,8 +188,9 @@ interface views { /// Opens `path` (project-relative or absolute, inside the project) in an /// editor of the window the call came from, the caret at `line` and /// `column` (0-based; UTF-16 column): a view's links to code. - /// An absolute path inside the plugin's own fs.plugin-dir also works, - /// without project.read or an open project, from a command or event. + /// An absolute path inside the plugin's own fs.plugin-dir or its install + /// directory also works, without project.read or an open project, from a + /// command or event. open-location: func(path: string, line: u32, column: u32) -> result<_, error>; } diff --git a/sdk/rust/openidea-plugin/tests/api/released/workspace.wit b/sdk/rust/openidea-plugin/tests/api/released/workspace.wit index 7e12d4c54..54bfee1c3 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/workspace.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/workspace.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.13.0; +package openidea:plugin@1.14.0; interface workspace { use types.{error, location}; @@ -123,8 +123,9 @@ interface editor { record open-editor { path: string, language: string, dirty: bool, active: bool } /// Only from commands/events of a window. Requires editor.read. open-editors: func() -> result, error>; - /// Open a project file (project.read) or a file in plugin-dir, selecting a range. - /// Only from commands/events of a window. Paths follow views.open-location. + /// Open a project file (project.read), a file in plugin-dir, or a file in + /// the plugin's install directory, selecting a range. Only from + /// commands/events of a window. Paths follow views.open-location. open: func(path: string, selection: option) -> result<_, error>; /// Current version and text of an open project document. Unlike diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 5b32467e6..25096a8a1 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "OpenIDEA", - "version": "0.1.49", + "version": "0.1.50", "identifier": "ai.l0ng.openidea", "build": { "beforeDevCommand": "pnpm dev",