merge(sdk): fix #336 — contrat docs commandes/menus apres hot reload (erreur retryable, feedback host-owned, contrat manifest/registration, reload sans refresh auto)
# Conflicts: # docs/menus.md
This commit is contained in:
@ -41,9 +41,11 @@ export function activate(ctx: ActivateContext): void {
|
||||
|
||||
## Rules
|
||||
|
||||
- A command can only be registered if at least one manifest menu item declares
|
||||
that exact `command` id.
|
||||
- Missing command handlers are a no-op when the user clicks the menu item.
|
||||
- There is no separate `contributes.commands` collection. A command can only be
|
||||
registered if at least one manifest `menuItems[].command` or
|
||||
`slashCommands[].command` entry declares that exact id.
|
||||
- A missing command handler is surfaced by the host as a retryable reload error;
|
||||
menu clicks must never fail silently.
|
||||
- A registered handler's rejected promise is not swallowed: the host logs the
|
||||
plugin id, command id and reason, then presents a retryable error. In
|
||||
particular, return/await `services.windows.open(...)` so native-window
|
||||
|
||||
Reference in New Issue
Block a user