mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-08 08:52:12 +00:00
Adds the API 1.3 `endpoints-provider` export and `[[contributes.endpoints]]` (file globs, ^1.3, `project.read`). A plugin's routes join the Spring ones in Search Everywhere, `.http` URL completion and the declaration's Open in HTTP Client gutter action. The UI asks `plugin_endpoints` on demand; the host runs the plugin on a blocking thread, validates the whole list (bounds, project-relative locations, UTF-16 ranges) and caches it per project until a file matching the globs changes, then emits `EndpointsChanged`. A failed or invalid run keeps the last list; disabling, crashing or closing the project withdraws it, and late results can't restore it. Closes #1960. Co-authored-by: arnaud-ritti <[email protected]>
14 lines
282 B
TOML
14 lines
282 B
TOML
id = "test.endpoints"
|
|
name = "Endpoints fixture"
|
|
version = "0.1.0"
|
|
engines.openidea = "^1.3"
|
|
wasm = "dist/plugin.wasm"
|
|
capabilities.required = ["project.read"]
|
|
|
|
[[contributes.endpoints]]
|
|
files = ["routes.txt"]
|
|
|
|
[[contributes.commands]]
|
|
id = "crash"
|
|
title = "Crash endpoint fixture"
|