дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-08 19:02:17 +02:00
Closes #1948 Plugins receive debounced batches of files created, changed and removed outside the editor in open projects, as SDK `Event::FilesChanged` (delivered through `other("files-changed", …)`, so released WIT is unchanged), under the `events` capability and the plugin's path filters. Activation on these events requires API 1.3. Batches are coalesced per plugin through its actor, survive cancellation without losing deltas, and are dropped when the project or host shuts down. Co-authored-by: arnaud-ritti <[email protected]>
27 рядки
594 B
TOML
27 рядки
594 B
TOML
id = "files-events"
|
|
name = "Filesystem events test"
|
|
version = "0.1.0"
|
|
engines.openidea = "^1.3"
|
|
wasm = "dist/plugin.wasm"
|
|
activation = ["on-command:*", "on-event:files-changed"]
|
|
|
|
[capabilities]
|
|
required = ["events", "storage"]
|
|
optional = ["project.read"]
|
|
|
|
[[contributes.commands]]
|
|
id = "events"
|
|
title = "Read filesystem events"
|
|
|
|
[[contributes.commands]]
|
|
id = "filter"
|
|
title = "Filter filesystem events"
|
|
|
|
[[contributes.commands]]
|
|
id = "filter-after-event"
|
|
title = "Change the filter after the next event"
|
|
|
|
[[contributes.commands]]
|
|
id = "unsubscribe"
|
|
title = "Unsubscribe from filesystem events"
|