diff --git a/Cargo.lock b/Cargo.lock index 956cc235eb..39409999aa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4154,7 +4154,7 @@ checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" [[package]] name = "ide-agent" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "base64 0.22.1", "blake3", @@ -4185,7 +4185,7 @@ dependencies = [ [[package]] name = "ide-analysis" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "ast-grep-core", "ide-core", @@ -4197,7 +4197,7 @@ dependencies = [ [[package]] name = "ide-android" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "ide-core", "serde", @@ -4209,7 +4209,7 @@ dependencies = [ [[package]] name = "ide-build" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "blake3", "chardetng", @@ -4227,7 +4227,7 @@ dependencies = [ [[package]] name = "ide-cli" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "dirs 6.0.0", "serde", @@ -4241,7 +4241,7 @@ dependencies = [ [[package]] name = "ide-clipboard" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "gtk", "objc2 0.6.5", @@ -4252,7 +4252,7 @@ dependencies = [ [[package]] name = "ide-command" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "heck", "proc-macro2", @@ -4263,7 +4263,7 @@ dependencies = [ [[package]] name = "ide-core" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "base64 0.22.1", "dirs 6.0.0", @@ -4285,7 +4285,7 @@ dependencies = [ [[package]] name = "ide-coverage" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "ide-core", "ide-run", @@ -4298,7 +4298,7 @@ dependencies = [ [[package]] name = "ide-dap" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "base64 0.22.1", "futures", @@ -4328,7 +4328,7 @@ dependencies = [ [[package]] name = "ide-db" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "base64 0.22.1", "bb8", @@ -4367,7 +4367,7 @@ dependencies = [ [[package]] name = "ide-docker" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "ide-core", "serde", @@ -4380,7 +4380,7 @@ dependencies = [ [[package]] name = "ide-drag-out" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "gtk", "objc2 0.6.5", @@ -4394,7 +4394,7 @@ dependencies = [ [[package]] name = "ide-extension" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "base64 0.22.1", "blake3", @@ -4414,7 +4414,7 @@ dependencies = [ [[package]] name = "ide-flutter" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "ide-android", "ide-core", @@ -4425,7 +4425,7 @@ dependencies = [ [[package]] name = "ide-fonts" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "objc2-core-foundation", "objc2-core-text", @@ -4437,7 +4437,7 @@ dependencies = [ [[package]] name = "ide-github" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "ide-core", "ide-vcs", @@ -4449,7 +4449,7 @@ dependencies = [ [[package]] name = "ide-heap" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "criterion", "ide-core", @@ -4468,7 +4468,7 @@ dependencies = [ [[package]] name = "ide-host" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "base64 0.22.1", "blake3", @@ -4552,7 +4552,7 @@ dependencies = [ [[package]] name = "ide-http" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "base64 0.22.1", "http", @@ -4575,7 +4575,7 @@ dependencies = [ [[package]] name = "ide-index" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "blake3", "criterion", @@ -4598,7 +4598,7 @@ dependencies = [ [[package]] name = "ide-jdwp" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "ide-jvm-inspect", "proptest", @@ -4610,7 +4610,7 @@ dependencies = [ [[package]] name = "ide-jsonrpc" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "encoding_rs", "ide-core", @@ -4626,7 +4626,7 @@ dependencies = [ [[package]] name = "ide-jvm-attach" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "libc", "tempfile", @@ -4635,7 +4635,7 @@ dependencies = [ [[package]] name = "ide-jvm-inspect" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "futures", "serde", @@ -4646,7 +4646,7 @@ dependencies = [ [[package]] name = "ide-language" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "blake3", "criterion", @@ -4708,7 +4708,7 @@ dependencies = [ [[package]] name = "ide-lsp" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "criterion", "dunce", @@ -4738,7 +4738,7 @@ dependencies = [ [[package]] name = "ide-mcp" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "bytes", "dunce", @@ -4757,7 +4757,7 @@ dependencies = [ [[package]] name = "ide-notebook" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "futures", "ide-core", @@ -4782,7 +4782,7 @@ dependencies = [ [[package]] name = "ide-plugin" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "blake3", "dunce", @@ -4804,7 +4804,7 @@ dependencies = [ [[package]] name = "ide-profiler" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "ide-core", "ide-jvm-attach", @@ -4818,7 +4818,7 @@ dependencies = [ [[package]] name = "ide-remote" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "dunce", "futures", @@ -4838,7 +4838,7 @@ dependencies = [ [[package]] name = "ide-run" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "blake3", "dunce", @@ -4865,7 +4865,7 @@ dependencies = [ [[package]] name = "ide-scaffold" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "ide-core", "ide-tools", @@ -4881,7 +4881,7 @@ dependencies = [ [[package]] name = "ide-sdk" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "base64 0.22.1", "dirs 6.0.0", @@ -4907,7 +4907,7 @@ dependencies = [ [[package]] name = "ide-search" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "criterion", "encoding_rs", @@ -4928,7 +4928,7 @@ dependencies = [ [[package]] name = "ide-spell" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "ide-core", "parking_lot 0.12.5", @@ -4941,7 +4941,7 @@ dependencies = [ [[package]] name = "ide-ssh" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "dirs 6.0.0", "flate2", @@ -4966,7 +4966,7 @@ dependencies = [ [[package]] name = "ide-streams" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "ide-core", "ide-language", @@ -4979,7 +4979,7 @@ dependencies = [ [[package]] name = "ide-svn" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "dunce", "encoding_rs", @@ -4994,7 +4994,7 @@ dependencies = [ [[package]] name = "ide-syntax" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "ide-core", "ide-language", @@ -5009,7 +5009,7 @@ dependencies = [ [[package]] name = "ide-terminal" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "ide-core", "libc", @@ -5023,7 +5023,7 @@ dependencies = [ [[package]] name = "ide-text" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "criterion", "ide-core", @@ -5036,7 +5036,7 @@ dependencies = [ [[package]] name = "ide-tools" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "base64 0.22.1", "blake3", @@ -5063,7 +5063,7 @@ dependencies = [ [[package]] name = "ide-vcs" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "blake3", "dunce", @@ -5085,7 +5085,7 @@ dependencies = [ [[package]] name = "ide-vfs" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "chardetng", "dunce", @@ -5112,7 +5112,7 @@ dependencies = [ [[package]] name = "ide-web" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "dirs 6.0.0", "ide-core", @@ -5128,7 +5128,7 @@ dependencies = [ [[package]] name = "ide-workspace" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "blake3", "dunce", @@ -6783,7 +6783,7 @@ dependencies = [ [[package]] name = "openidea" -version = "0.1.57" +version = "0.1.58-nightly.20261204" dependencies = [ "base64 0.22.1", "blake3", diff --git a/Cargo.toml b/Cargo.toml index 0d5741eb92..90cd8638b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ members = ["crates/*", "src-tauri"] exclude = ["sdk", "plugins", "vendor"] [workspace.package] -version = "0.1.57" +version = "0.1.58-nightly.20261204" edition = "2024" rust-version = "1.96" license = "Apache-2.0" diff --git a/package.json b/package.json index 350dd36ecf..ac5bf44b56 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.57", + "version": "0.1.58-nightly.20261204", "license": "Apache-2.0", "type": "module", "scripts": { diff --git a/sdk/rust/openidea-plugin/tests/api/released/agents.wit b/sdk/rust/openidea-plugin/tests/api/released/agents.wit index d5b0b101a4..b5d9918262 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/agents.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/agents.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.20.0; +package openidea:plugin@1.21.0; /// Forking recorded native agent sessions into new tasks (API 1.18). Requires /// the `agents` capability. The session must belong to the invoking window's diff --git a/sdk/rust/openidea-plugin/tests/api/released/commit.wit b/sdk/rust/openidea-plugin/tests/api/released/commit.wit index 94a1c2882b..20426a680d 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.20.0; +package openidea:plugin@1.21.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/completion-list.wit b/sdk/rust/openidea-plugin/tests/api/released/completion-list.wit index 34d283648d..e6bba755cb 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/completion-list.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/completion-list.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.20.0; +package openidea:plugin@1.21.0; /// Optional export (API 1.16, world `plugin-completion-list`): completion that /// can say its list is incomplete. A plugin exporting it is called instead of diff --git a/sdk/rust/openidea-plugin/tests/api/released/database.wit b/sdk/rust/openidea-plugin/tests/api/released/database.wit index 0284b0e9da..159e7a2e1f 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.20.0; +package openidea:plugin@1.21.0; /// Plugin-owned project data sources. Requires database.sources and project trust. /// Runs on the Database subsystem's host, including on remote project servers. @@ -69,4 +69,49 @@ interface database { /// sources. Requires the separate database.schema grant and a trusted project. /// Never connects a source, returns credentials/rows, or executes caller SQL. describe-table: func(project: borrow, table: table-ref) -> result; + + /// Non-secret identity of an already connected project data source (API 1.21). + record connected-source { + source-id: string, + name: string, + driver: string, + database: option, + } + /// A table or view summary in a connected schema (API 1.21). + record table-summary { + name: string, + kind: string, + comment: option, + } + /// Column metadata of a query result (API 1.21). + record query-column { + name: string, + type-name: string, + } + /// Bounded result of executing a SQL statement on a connected source (API 1.21). + record query-result { + columns: list, + rows: list>>, + affected: option, + has-more: bool, + elapsed-ms: u64, + } + /// Lists already connected project sources (non-secret identity only, API 1.21). + /// Requires database.schema and a trusted project; never connects sources or returns credentials. + connected-sources: func(project: borrow) -> result, error>; + /// Lists schemas of an already connected project source (API 1.21). + /// Requires database.schema and a trusted project; never connects sources or returns credentials. + list-schemas: func(project: borrow, source-id: string) -> result, error>; + /// Lists tables and views in a schema of an already connected project source (API 1.21). + /// Requires database.schema and a trusted project; never connects sources or returns credentials. + list-tables: func(project: borrow, source-id: string, schema: string) -> result, error>; + /// Executes a SQL statement on an already connected project source (API 1.21). + /// Requires the separate high-risk database.query grant and a trusted project. + /// Never connects a disconnected source or returns credentials; max-rows is clamped to 1..=1000. + execute-query: func( + project: borrow, + source-id: string, + sql: string, + max-rows: option, + ) -> result; } diff --git a/sdk/rust/openidea-plugin/tests/api/released/decorations.wit b/sdk/rust/openidea-plugin/tests/api/released/decorations.wit index d7bc073934..90e3ea0d00 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.20.0; +package openidea:plugin@1.21.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 ec0948bc00..1bedc44ba0 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.20.0; +package openidea:plugin@1.21.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 9f4d97d979..ee9d420d83 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.20.0; +package openidea:plugin@1.21.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 b10ed5d8cd..ebf7647e01 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.20.0; +package openidea:plugin@1.21.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 740294de6e..83bce90173 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.20.0; +package openidea:plugin@1.21.0; /// Workbench events, delivered in batches to `event-handler.handle`. interface events { @@ -41,13 +41,16 @@ interface events { /// work waits for it; it requires `events`) through `other`. /// API 1.18 also delivers `project-closed` (JSON project root string) and /// `watched-files-changed` (see `watch-paths`) through `other`. + /// API 1.21 also delivers `run-started` (JSON {id, config, debug}) through `other` + /// whenever one of this plugin's configurations starts (whether launched by the plugin + /// or by the user), and delivers `run-exited` for user-launched plugin configurations too. /// Kinds: `file-opened`, `file-saved`, `document-changed` (versioned UTF-16 /// replacements from explicit path subscriptions), `websocket-ready` /// (a host-owned connection has messages to drain), `caret-moved`, `files-changed` (batched disk changes /// as `other`, with created/modified/removed path lists in JSON), `editor-focused` (the focused editor /// changed), `vcs-changed` (a repository's state changed: commit, /// checkout, fetch…), `action-performed` (an IDE action ran), - /// `project-closed` (a project closed) and + /// `project-closed` (a project closed), `run-started`, `run-exited`, and /// `scheduled` (the `on-schedule` period elapsed); later IDEs add more, /// and an IDE that doesn't know one fails with `invalid`. /// Requires `events` (`events.input` for `action-performed`). diff --git a/sdk/rust/openidea-plugin/tests/api/released/exports.wit b/sdk/rust/openidea-plugin/tests/api/released/exports.wit index 96592f8003..d352203adc 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.20.0; +package openidea:plugin@1.21.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 f5e081470e..3492888e1c 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.20.0; +package openidea:plugin@1.21.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 0a0f66690c..d386fe7bb7 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.20.0; +package openidea:plugin@1.21.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 5eb436bd81..ecd6cb9411 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/fs.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/fs.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.20.0; +package openidea:plugin@1.21.0; /// Files outside the open projects: the configuration of the program a /// plugin integrates with, a tool installed elsewhere, a licence file. diff --git a/sdk/rust/openidea-plugin/tests/api/released/host.wit b/sdk/rust/openidea-plugin/tests/api/released/host.wit index 1e131c6372..de2c376267 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.20.0; +package openidea:plugin@1.21.0; /// Writes to the IDE log, tagged with the plugin id. interface log { @@ -218,10 +218,10 @@ interface command-runner { execute: func(id: string, arg: option) -> result, error>; } -/// Requests to the language servers the IDE runs (API 1.9). +/// Requests and read-only semantic queries against running IDE language servers (API 1.9; semantic queries API 1.21). interface language-servers { - use types.{error}; - use workspace.{project}; + use types.{error, location, position}; + use workspace.{project, symbol-info}; /// Sends `method` to the server named `server` (the `name` of its /// `[[language-servers]]` entry in the language definition, e.g. `phoxite`) @@ -243,6 +243,24 @@ interface language-servers { /// The same for a notification: no answer is awaited. notify: func(project: borrow, server: string, method: string, params: option) -> result<_, error>; + + /// Resolves declaration targets at `at` through running language servers (`code.semantics`, API 1.21). + definition: func(project: borrow, path: string, at: position) -> result, error>; + + /// Resolves type definition targets at `at` through running language servers (`code.semantics`, API 1.21). + type-definition: func(project: borrow, path: string, at: position) -> result, error>; + + /// Resolves implementation targets at `at` through running language servers (`code.semantics`, API 1.21). + implementations: func(project: borrow, path: string, at: position) -> result, error>; + + /// Finds references at `at`, capped at `limit` (`code.semantics`, API 1.21). + references: func(project: borrow, path: string, at: position, limit: u32) -> result, error>; + + /// Reads resolved hover / type signature Markdown at `at` (`code.semantics`, API 1.21). + hover-info: func(project: borrow, path: string, at: position) -> result, error>; + + /// Reads document outline symbols for a project path or read-only `jdt://` URI (`code.semantics`, API 1.21). + document-symbols: func(project: borrow, path: string) -> result, error>; } /// Per-plugin named, read-only Output tabs (API 1.4), with a 1 MiB UTF-8 ring buffer. diff --git a/sdk/rust/openidea-plugin/tests/api/released/hover-actions.wit b/sdk/rust/openidea-plugin/tests/api/released/hover-actions.wit index 070c66a2bc..b7f3fa778e 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/hover-actions.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/hover-actions.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.20.0; +package openidea:plugin@1.21.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 diff --git a/sdk/rust/openidea-plugin/tests/api/released/hover.wit b/sdk/rust/openidea-plugin/tests/api/released/hover.wit index c9be10359f..726313f77c 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.20.0; +package openidea:plugin@1.21.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 7453f3ffe3..1c1bfe960b 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.20.0; +package openidea:plugin@1.21.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 10608d5f6c..e2c79c58b1 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.20.0; +package openidea:plugin@1.21.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 b6d1498e65..78e483cd33 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.20.0; +package openidea:plugin@1.21.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 d9f3354a47..77f41019cf 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.20.0; +package openidea:plugin@1.21.0; /// Problems in files, shown in the editor and the Problems view. interface diagnostics { 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 1a6a722d4b..9abd049e42 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.20.0; +package openidea:plugin@1.21.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 c1de914ec7..e2a6f0d65d 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.20.0; +package openidea:plugin@1.21.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 e802e21e13..42a119bcef 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.20.0; +package openidea:plugin@1.21.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 2fb49ff34c..245f2c6d51 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.20.0; +package openidea:plugin@1.21.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/rename.wit b/sdk/rust/openidea-plugin/tests/api/released/rename.wit new file mode 100644 index 0000000000..0700cb18be --- /dev/null +++ b/sdk/rust/openidea-plugin/tests/api/released/rename.wit @@ -0,0 +1,33 @@ +package openidea:plugin@1.21.0; + +/// Optional export (world `plugin-rename`, API 1.21): prepare-rename and +/// cross-file workspace rename edits alongside native language servers. +interface rename-provider { + use types.{error, position, range}; + use providers.{document, file-edit}; + + /// Editable target range and optional prefilled text for inline/dialog rename. + record prepare-rename-result { + range: range, + placeholder: option, + } + + /// Checks whether `at` names a symbol this plugin can rename, under the + /// editing-path budget. Returning `none` lets other providers or LSP answer. + prepare-rename: func(doc: document, at: position) -> option; + + /// Computes cross-file edits to rename the symbol at `at` to `new-name` + /// (command budget; runs alongside any native language server). + rename: func(doc: document, at: position, new-name: string) -> result, error>; +} + +/// The optional export-only world the SDK merges with `plugin`. +world rename-exports { + export rename-provider; +} + +/// The host-side world used to instantiate a component that exports it. +world plugin-rename { + include plugin; + export rename-provider; +} 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 2495bc1ce4..1b51595a55 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.20.0; +package openidea:plugin@1.21.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 6bfb18b74d..33f1dc3b35 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.20.0; +package openidea:plugin@1.21.0; /// Launches this plugin's configurations in the invoking window's Run tool window. interface run { @@ -24,6 +24,30 @@ interface run { start: func(config: string, args: list, debug: bool) -> result; /// Starts an owned configuration with launch options, appending args (API 1.18). start-with-options: func(config: string, args: list, options: start-options) -> result; + /// Stops an active run started from one of this plugin's configurations (API 1.21). + /// Only from a window command/event. + stop: func(id: string) -> result<_, error>; + /// Payload for `upsert-configuration` (API 1.21). + record run-config-draft { + /// Existing saved config id to update (`none` creates a new configuration). + id: option, + /// Id from one of this plugin's own `[[contributes.runConfigTypes]]`. + type-id: string, + name: string, + command: option, + args: list, + cwd: option, + env: list>, + params: list>, + allow-parallel: bool, + } + /// Creates or updates a saved run configuration of one of this plugin's own + /// `contributes.runConfigTypes` in the invoking window's project (API 1.21). + /// Returns the saved configuration id. + upsert-configuration: func(draft: run-config-draft) -> result; + /// Opens the Run/Debug Configurations dialog in the invoking window, optionally + /// selecting `config-id` (API 1.21). + open-edit-configurations: func(config-id: option) -> result<_, error>; } /// Optional dynamic configurations, refreshed alongside run detectors. diff --git a/sdk/rust/openidea-plugin/tests/api/released/search.wit b/sdk/rust/openidea-plugin/tests/api/released/search.wit index 775cc03415..f5148ed49f 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.20.0; +package openidea:plugin@1.21.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 551db318d7..3829da74b1 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.20.0; +package openidea:plugin@1.21.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/syntax-decorations.wit b/sdk/rust/openidea-plugin/tests/api/released/syntax-decorations.wit index 3c5bdb4c32..84018b27a7 100644 --- a/sdk/rust/openidea-plugin/tests/api/released/syntax-decorations.wit +++ b/sdk/rust/openidea-plugin/tests/api/released/syntax-decorations.wit @@ -1,4 +1,4 @@ -package openidea:plugin@1.20.0; +package openidea:plugin@1.21.0; /// Optional export (world `plugin-syntax-decorations`): foreground marks for /// documents of the languages declared with the `syntax-decorations` provider diff --git a/sdk/rust/openidea-plugin/tests/api/released/types.wit b/sdk/rust/openidea-plugin/tests/api/released/types.wit index d28702152d..90eca253a9 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.20.0; +package openidea:plugin@1.21.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 9733418473..47a1d8e1ea 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.20.0; +package openidea:plugin@1.21.0; /// Declarative views: tool windows declared /// under `[[contributes.views]]` and custom editors under diff --git a/sdk/rust/openidea-plugin/tests/api/released/workspace.wit b/sdk/rust/openidea-plugin/tests/api/released/workspace.wit index d96234945a..4018c87da8 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.20.0; +package openidea:plugin@1.21.0; interface workspace { use types.{error, location}; @@ -172,6 +172,10 @@ interface editor { /// Selections when the command was invoked (a cursor is an empty /// range). Requires `editor.read`. selections: func() -> result, error>; + /// First and last document line (0-based, inclusive) on screen in this + /// editor when the command or event was invoked; `none` when the editor + /// is not shown. Requires `editor.read` (API 1.21). + visible-lines: func() -> result>, error>; /// Applies `edits` as one undoable change, only if the document is /// still at `version` (else `stale`, and nothing changes). Ranges are /// in that version and must not overlap. Returns the new version. @@ -318,4 +322,62 @@ interface build { /// At most 100,000 nodes (else `failed`: ask for one module). Trusted /// projects only; requires `build.read`. dependencies: func(project: borrow, module: option) -> result, error>; + + /// One installed interpreter, JDK, or toolchain visible to the IDE (API 1.21). + record sdk-info { + /// SDK kind (`jdk`, `maven`, `python`, `node`, `php`, `package-manager`, + /// `rust`, `go`, `typescript`, `ruby`, `zig`, `dotnet`, `flutter`, `xcode`). + kind: string, + name: string, + /// Executable or home directory path. + path: string, + version: option, + /// Origin (`system`, `venv`, `pyenv`, `mise`, `homebrew`, `user`, …). + source: string, + home: option, + /// True when currently selected for the open project. + active: bool, + } + + /// Origin of an artifact returned by `build.artifacts` (API 1.21). + enum artifact-origin { + /// WAR module discovered from a Maven or Gradle build model (`id` is + /// `maven:` or `gradle:`). + build-model, + /// Entry configured in **Project Structure › Artifacts** (`id` is + /// `project:`). + project-structure, + } + + /// Packaging kind of an artifact (API 1.21). + enum artifact-kind { + jar, + war, + war-exploded, + } + + /// One deployable WAR module or Project Structure › Artifacts definition (API 1.21). + record artifact-info { + /// Run-configuration artifact identifier (`maven:`, `gradle:`, + /// or `project:`). + id: string, + origin: artifact-origin, + /// Source build tool (`maven`, `gradle`, or `project`). + tool: string, + name: string, + kind: artifact-kind, + /// Module path relative to project root (`"."` or `""` for root module). + module: string, + output-directory: string, + main-class: string, + include-libraries: list, + } + + /// Installed SDKs / toolchains relevant to this project, optionally narrowed by + /// `kind` (API 1.21). Trusted projects only; requires `build.read`. + sdks: func(project: borrow, kind: option) -> result, error>; + + /// Deployable WAR modules from the build model and Project Structure › Artifacts + /// definitions of this project (API 1.21). Trusted projects only; requires `build.read`. + artifacts: func(project: borrow) -> result, error>; } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index d07f08aac4..e1a800fab9 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.57", + "version": "0.1.58-nightly.20261204", "identifier": "ai.l0ng.openidea", "build": { "beforeDevCommand": "pnpm dev", @@ -31,9 +31,22 @@ }, "bundle": { "active": true, - "targets": "all", + "targets": [ + "app", + "dmg", + "appimage", + "deb", + "msi", + "nsis" + ], "createUpdaterArtifacts": true, - "icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"], + "icon": [ + "icons/32x32.png", + "icons/128x128.png", + "icons/128x128@2x.png", + "icons/icon.icns", + "icons/icon.ico" + ], "category": "DeveloperTool", "copyright": "Copyright © 2026 OpenIDEA contributors", "license": "Apache-2.0", @@ -42,13 +55,20 @@ "macOS": { "entitlements": "./Entitlements.plist", "minimumSystemVersion": "11.0" + }, + "windows": { + "wix": { + "version": "0.1.57.20" + } } }, "mainBinaryName": "openidea", "plugins": { "updater": { "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDFCOUU0MUFFOUY4NzZCNkQKUldSdGE0ZWZya0dlRzNnRFJUR2loUVdNZ1BmamxkNzFoaWNPUTBsRmI0cjhxZFRqQURybkMwakEK", - "endpoints": ["https://github.com/l0ng-ai/openidea/releases/latest/download/latest.json"] + "endpoints": [ + "https://github.com/l0ng-ai/openidea/releases/download/nightly/latest.json" + ] } } }