Liiked / Liiked/VS-Code-Extension-Doc-ZH
关于 task 的问题
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.2k
- Forks
- 158
- Avg merge
- 1m
- Merged PRs (30d)
- 3
Description
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) // 这里面也看不出来是成功了 还是失败了。。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the VS Code Task API entry points shown in the issue: vscode.tasks.executeTask and vscode.tasks.onDidEndTask. Check the Task and task-ended event documentation to determine whether success or failure is exposed, then document the supported way to distinguish outcomes or clarify the limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100