-
Notifications
You must be signed in to change notification settings - Fork 38.2k
Closed
Labels
author-verification-requestedIssues potentially verifiable by issue authorIssues potentially verifiable by issue authorfeature-requestRequest for new features or functionalityRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsiderstasksTask system issuesTask system issuesterminal-shell-integrationShell integration infrastructure, command decorations, etc.Shell integration infrastructure, command decorations, etc.verification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded
Milestone
Description
Does this issue occur when all extensions are disabled?: No
You need to have a task definition in an extension in order for this to be applicable.
Version: 1.106.0-insider (user setup)
Commit: d8b0787
Date: 2025-10-10T08:19:44.111Z
Electron: 37.6.0
ElectronBuildId: 12506819
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200
Coming from an offline email with @isidorn
Steps to Reproduce:
- In our package.json, we have a taskDefinition as follows:
"taskDefinitions": [
{
"type": "func",
"required": [
"command"
],
"properties": {
"command": {
"type": "string"
},
"args": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
],
- In the tasks.json, there is the following task:
{
"type": "func",
"dependsOn": "build (functions)",
"options": {
"cwd": "${workspaceFolder}/bin/Debug/net9.0"
},
"command": "host start",
"args": [
"--dotnet-isolated-debug",
"--enable-json-output"
],
"isBackground": true,
"problemMatcher": "$func-dotnet-watch"
}
- In our extension code, we dynamically create the task in the following constructor:
new Task(definition, folder, command, func, new ShellExecution(commandLine, options), problemMatcher);
- Set a
vscode.window.onDidStartTerminalShellExecutionor avscode.window.onDidChangeTerminalShellIntegrationevent handler. - Start our launch with F5 which kicks off our task.
- When the other type
processtasks run, these trigger an event on the event handlers. However, thefunctask does not fire an event despite being run in the same terminal as theprocesstasks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
author-verification-requestedIssues potentially verifiable by issue authorIssues potentially verifiable by issue authorfeature-requestRequest for new features or functionalityRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsiderstasksTask system issuesTask system issuesterminal-shell-integrationShell integration infrastructure, command decorations, etc.Shell integration infrastructure, command decorations, etc.verification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded