дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-29 13:52:36 +02:00
document-changed gave plugins the path relative to the file's own project but not which project, so with two open projects holding the same relative path a plugin couldn't tell which document changed. The event now carries project (the root the path is relative to); the SDK's DocumentChanged exposes it as Option<String>. The payload is JSON through other, so WIT is unchanged; plugin components are rebuilt for the SDK change.
43 рядки
734 B
TOML
43 рядки
734 B
TOML
id = "test.path-events"
|
|
name = "Path event fixture"
|
|
version = "0.1.0"
|
|
engines.openidea = "^1.6"
|
|
wasm = "dist/plugin.wasm"
|
|
activation = ["on-command:*"]
|
|
|
|
[capabilities]
|
|
required = ["storage"]
|
|
optional = ["events", "project.read", "editor.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 = "document"
|
|
title = "document"
|
|
|
|
[[contributes.commands]]
|
|
id = "document-project"
|
|
title = "document-project"
|
|
|
|
[[contributes.commands]]
|
|
id = "count"
|
|
title = "count"
|