mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-08 08:52:12 +00:00
Adds API 1.3 `events.subscribe-paths(kind, globs)` for `file-opened` and `file-saved`: project-relative globs checked before an event is queued or wakes an idle plugin, and again before a queued event is delivered. A new filter replaces the old one atomically; `subscribe` restores unfiltered delivery; filters survive idle reclamation. Also `workspace.project-of(path)`, the most specific open project containing a document (reading it still needs `project.read`). Closes #1958. Co-authored-by: arnaud-ritti <[email protected]>
35 lines
581 B
TOML
35 lines
581 B
TOML
id = "test.path-events"
|
|
name = "Path event fixture"
|
|
version = "0.1.0"
|
|
engines.openidea = "^1.3"
|
|
wasm = "dist/plugin.wasm"
|
|
activation = ["on-command:*"]
|
|
|
|
[capabilities]
|
|
required = ["storage"]
|
|
optional = ["events", "project.read"]
|
|
|
|
[[contributes.providers]]
|
|
kinds = ["hover"]
|
|
languages = ["text", "plaintext"]
|
|
|
|
[[contributes.commands]]
|
|
id = "project"
|
|
title = "project"
|
|
|
|
[[contributes.commands]]
|
|
id = "filter"
|
|
title = "filter"
|
|
|
|
[[contributes.commands]]
|
|
id = "all"
|
|
title = "all"
|
|
|
|
[[contributes.commands]]
|
|
id = "off"
|
|
title = "off"
|
|
|
|
[[contributes.commands]]
|
|
id = "count"
|
|
title = "count"
|