Графік комітів
2 Коміти
Автор SHA1 Повідомлення Дата
RuyimgByCN acf5e53953 fix(plugins): define local records in rename and completion-resolve WIT interfaces (#8151)
A plugin exporting `providers` together with `rename` or `completion_resolve` failed to link: `rename-provider` and `completion-resolve-provider` imported their `document`, `file-edit` and `completion-item` types from `providers`, and wit-component refuses to add `providers` as an export once another export depends on it as an import. Both interfaces now define those records locally, like hover, file-actions and diagnostics already do. The rename and completion-resolve fixtures co-export `providers`, and all components are rebuilt. These interfaces are new in API 1.21, which has not been released.

Co-authored-by: RuyimgByCN <[email protected]>
2026-12-05 13:46:18 +08:00
RuyimgByCN ea32779559 feat(plugins): add completion-resolve-provider for lazy completion details (#8122)
Plugin API 1.21 adds the optional completion-resolve-provider export: completion returns items with an opaque data token, and resolve is called when the user focuses one. As with LSP completionItem/resolve, the resolved detail, documentation and additional edits are filled in while the label and what the item inserts stay as listed. Plugins without the export keep the existing completion providers. Includes the SDK trait and registration, a fixture plugin with a host integration test, rebuilt plugin components and README notes.

Co-authored-by: RuyimgByCN <[email protected]>
2026-12-05 04:17:28 +08:00