Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

目前无法添加直接调用某个task的命令 #120

Open
galaxychilli opened this issue Aug 16, 2024 · 1 comment
Open

目前无法添加直接调用某个task的命令 #120

galaxychilli opened this issue Aug 16, 2024 · 1 comment

Comments

@galaxychilli
Copy link

想要做一个点击Button 触发指定某个task 任务的需求,通过注册并调用command
1723800910432
可以实现button触发task:run这个命令,但是无法运行具体指定任务
1723799134076_E02CC328-160F-433e-8A86-99C9191EB189
看了下vscode和opensumi这块的实现好像都是只有打开task:run这个命令的接口 没有执行具体task的接口

@Ricbet
Copy link
Member

Ricbet commented Aug 16, 2024

https://github.com/opensumi/core/blob/a53fac57ec78743997f602682e661ba9594ec99e/packages/debug/src/browser/debug-session-manager.ts#L320-L323

可以参考这个例子。
点击按钮的时候直接 run 具体的 task 任务

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants