docs(sdk): feedback visible via windows.open + séparation Codex skills documentées — commands-and-feedback (surface normative + exemple), layouts-react (type↔contributes.layouts, capacité ui), manifest (exemple complet menu+layout+ui), windows (contrat ui, retour structuré), packaging-distribution (idea_plugin_install_from_directory, sémantique plugin_reloaded/ESM), nouveau codex-skills-and-idea-plugins, README (lien) — #280 QA verte
This commit is contained in:
@ -32,6 +32,26 @@ ctx.layouts?.register({
|
||||
});
|
||||
```
|
||||
|
||||
The `type` must exactly match one entry in `contributes.layouts`. The host
|
||||
rejects registrations for undeclared layout types. A plugin that opens this
|
||||
layout for human feedback must also declare the `ui` capability so the UI
|
||||
runtime and window services are part of the public contract.
|
||||
|
||||
```json
|
||||
{
|
||||
"capabilities": ["ui", "tooling"],
|
||||
"contributes": {
|
||||
"layouts": [
|
||||
{
|
||||
"type": "hello-plugin.dashboard",
|
||||
"label": "Dashboard",
|
||||
"component": "Dashboard"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Props
|
||||
|
||||
- `projectId`: project hosting the layout.
|
||||
|
||||
Reference in New Issue
Block a user