Support the migrated plugins in the host tests
- The pty_open mocks in layout/workbench and plugins/lifecycle send output through the channel that api.pty passes. Without a channel they keep the old events, so released Terminal versions still pass. - plugins/gitToolbar resolves the Git plugin's "@runestone/plugin-sdk" imports to this repository's SDK build. The smoke runner builds the SDK when it is missing. - The menu audit no longer compares the Terminal plugin's copies of the host menu files. The plugin now uses host menus through the SDK. Checked with the released plugins and with the migrated Terminal, Git, and Project Management branches.
This commit is contained in:
+1
-1
@@ -190,7 +190,7 @@ Some tests need files from outside this repository. Without those files, the tes
|
||||
The plugin SDK in `packages/plugin-sdk/` is the only source of the public plugin types.
|
||||
The host imports it with relative paths in `src/lib/plugins/sdk.ts`, `src/lib/ui/actionIcons.ts`, and `src/lib/ui/tooltip.ts`.
|
||||
Change a public type in the SDK, not in the host. Keep host-only types, such as the native transports, in `src/lib/plugins/sdk.ts`.
|
||||
The menu types in `src/lib/ui/actionMenu.ts` and `src/lib/ui/managedActionMenu.ts` are the exception. The Terminal plugin keeps copies of these two files, and `pnpm check:menus` compares them.
|
||||
The menu types in `src/lib/ui/actionMenu.ts` and `src/lib/ui/managedActionMenu.ts` are the exception: they keep their own declarations.
|
||||
`tests/unit/sdk/features.spec.ts` makes sure that their types and the SDK menu types are the same.
|
||||
The SDK source must not import host files. It must use only TypeScript syntax that Node.js can remove, because the unit tests load it directly.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user