-
Notifications
You must be signed in to change notification settings - Fork 37.9k
Open
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugtasksTask system issuesTask system issues
Milestone
Description
- VSCode Version: 1.44.2
- OS Version: macOS 10.5.4
Steps to Reproduce:
- Create a new extension using
yo code. - Add the following to the 'activate' function body:
let disposable = vscode.commands.registerCommand('extension.helloWorld', async () => {
let echoTask = new vscode.Task({type: "taskbug"}, vscode.TaskScope.Workspace, 'echo', 'taskbug', new vscode.ProcessExecution('/bin/echo', ['hello world']));
const echoTaskExecution = await vscode.tasks.executeTask(echoTask);
vscode.tasks.onDidStartTaskProcess(e => {
if (e.execution === echoTaskExecution) {
console.log(`Detected that my task started with pid ${e.processId}`);
} else if (e.execution.task === echoTask) {
console.log(`Detected that my task started with pid ${e.processId}`);
}
});
vscode.tasks.onDidEndTaskProcess(e => {
if (e.execution === echoTaskExecution) {
console.log(`Detected that my task exited with exit code ${e.exitCode}`);
} else if (e.execution.task === echoTask) {
console.log(`Detected that my task exited with exit code ${e.exitCode}`);
}
});
});
- Run debug the extension and run the 'Hello World' command.
If you break inside the onDidStartTaskProcess and onDidEndTaskProcess that comparison fail, which means its difficult to determine when the task starts or ends.
It's worth noting that in VSCode 1.43 the above comparisons both work, but in 1.44 this is not working.
Does this issue occur when all extensions are disabled?: Yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugtasksTask system issuesTask system issues