sequenceDiagram
	autonumber
	actor user
	user->>designer: 1.点击切换
	designer->>plugin-module: 2.关闭模块
	alt is local
		plugin-module->>plugin-engine: 2 全量关闭
	else is remote and is switching
		plugin-module->>hot-switch-engine: 2 热关闭
	end
	plugin-module->>designer: 3.关闭完成
	designer->>designer: 3.切换目录
	designer->>plugin-module: 4.启动模块
	plugin-module->>plugin-engine: 4.1 全量启动
	plugin-module->>hot-switch-engine: 4.2 热启动
	hot-switch-engine->>hot-switch-sync: 4.2.1 触发远程同步
	hot-switch-sync->>remote-server: 4.2.1.1 获取远程插件信息
	remote-server->>hot-switch-sync: 4.2.1.2 返回远程插件信息
	hot-switch-sync->>plugin-engine: 4.2.2 保证插件仓库一致
	hot-switch-engine->>plugin-engine: 4.2.3 获取插件信息
	plugin-engine->>hot-switch-engine: 4.2.4 返回插件信息
	hot-switch-engine->>plugin-module: 4.2.5 热启动完毕
	plugin-module->>designer: 5.启动完成
	designer->>user: 6.设计器可用