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 的问题 #116

Open
blankul opened this issue Jun 29, 2021 · 0 comments
Open

关于 task 的问题 #116

blankul opened this issue Jun 29, 2021 · 0 comments

Comments

@blankul
Copy link

blankul commented Jun 29, 2021

hello hello, 最近开发 vscode插件,有个问题非常困扰我,就是如何 监听到 一个 task 的成功或失败

一般我都是运行一系列 任务(task),如果其中一个失败了,后面就不应该运行了,但是我现在监听不到, 比如这样

vscode.tasks.executeTask(
  new vscode.Task(
    { type: 'try' },
    vscode.TaskScope.Workspace,
    'try',
    'ext',
    new vscode.ShellExecution('ll'),
  ),
)

vscode.tasks.onDidEndTask(console.log) // 这里面也看不出来是成功了 还是失败了。。
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

1 participant