Files
openidea/crates/ide-plugin/tests/fixtures/misbehave/plugin.toml
WangTongchaoandchaoes 6373bce476 feat(plugins): renew the background budget while a task reports (#2055)
Closes #2053

A call that begins a background task gets the longer `background` budget, but it was armed once, so a task that kept calling `report` was still killed at the first deadline. Each `report` and `is-cancelled` now renews it (the deadline only moves forward; silent work still times out), up to a 30-minute ceiling per task. User Cancel, disable and unload still interrupt the task, teardown interrupts a running task promptly, and cancellation is counted once. WIT change is documentation only. Verified on macOS with a 75 s task.

Co-authored-by: chaoes <[email protected]>
2026-11-08 04:46:58 +08:00

108 lines
1.7 KiB
TOML

id = "misbehave"
name = "Misbehave"
version = "0.0.2"
description = "Test fixture: traps, spins, allocates, probes capabilities."
engines.openidea = "^1.0"
wasm = "dist/plugin.wasm"
activation = ["on-command:*"]
[capabilities]
required = ["project.read"]
optional = ["process:git"]
[[contributes.commands]]
id = "echo"
title = "echo"
[[contributes.commands]]
id = "panic"
title = "panic"
[[contributes.commands]]
id = "spin"
title = "spin"
[[contributes.commands]]
id = "alloc"
title = "alloc"
[[contributes.commands]]
id = "read"
title = "read"
[[contributes.commands]]
id = "root"
title = "root"
[[contributes.commands]]
id = "fsread"
title = "fsread"
[[contributes.commands]]
id = "read-dir"
title = "List a directory outside the project"
[[contributes.commands]]
id = "fswrite"
title = "fswrite"
[[contributes.commands]]
id = "projwrite"
title = "projwrite"
[[contributes.commands]]
id = "insert"
title = "insert"
[[contributes.commands]]
id = "cancel"
title = "cancel"
[[contributes.commands]]
id = "subscribe"
title = "subscribe"
[[contributes.commands]]
id = "diagnose"
title = "diagnose"
[[contributes.commands]]
id = "child"
title = "child"
[[contributes.commands]]
id = "envrun"
title = "envrun"
[[contributes.commands]]
id = "envstart"
title = "envstart"
[[contributes.commands]]
id = "envdeny-run"
title = "envdeny-run"
[[contributes.commands]]
id = "envdeny-start"
title = "envdeny-start"
[[contributes.commands]]
id = "childkeep"
title = "childkeep"
[[contributes.commands]]
id = "childpoll"
title = "childpoll"
[[contributes.commands]]
id = "childdrop"
title = "childdrop"
[[contributes.commands]]
id = "childtrap"
title = "childtrap"
[[contributes.commands]]
id = "patient"
title = "patient"