You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a RunningAzureFunctions class to handle multiple function tasks in one workspace (#4320)
* Remove runtime limitations on the jsonCliTool
* Fix accidental version.txt change
* Use an array to hold multiple tasks by buildPath rather than making it workspace scoped
* Make type unique
* Fix for .NET Aspire; create fake workspace folder
* Weird fix for build path
* Use vscode.uri.parse to normalize path
* PR feedback
* Refactor function running task map
thrownewError(localize('failedToFindFuncHost','Failed to stop previous running Functions host within "{0}" seconds. Make sure the task has stopped before you debug again.',timeoutInSeconds));
// Throw if _any_ task fails, not just funcTask (since funcTask often depends on build/clean tasks)
124
-
taskError=newError(localize('taskFailed','Error exists after running preLaunchTask "{0}". View task output for more information.',e.execution.task.name,e.exitCode));
// Throw if _any_ task fails, not just funcTask (since funcTask often depends on build/clean tasks)
132
+
taskError=newError(localize('taskFailed','Error exists after running preLaunchTask "{0}". View task output for more information.',e.execution.task.name,e.exitCode));
// The "IfNotActive" part helps when the user starts, stops and restarts debugging quickly in succession. We want to use the already-active task to avoid two func tasks causing a port conflict error
139
+
// The most common case we hit this is if the "clean" or "build" task is running when we get here. It's unlikely the "func host start" task is active, since we would've stopped it in `waitForPrevFuncTaskToStop` above
// The "IfNotActive" part helps when the user starts, stops and restarts debugging quickly in succession. We want to use the already-active task to avoid two func tasks causing a port conflict error
133
-
// The most common case we hit this is if the "clean" or "build" task is running when we get here. It's unlikely the "func host start" task is active, since we would've stopped it in `waitForPrevFuncTaskToStop` above
// Timeout likely means localhost isn't ready yet, but we'll increase the timeout each time it fails just in case it's a slow computer that can't handle a request that fast
// Timeout likely means localhost isn't ready yet, but we'll increase the timeout each time it fails just in case it's a slow computer that can't handle a request that fast
thrownewError(localize('failedToFindFuncHost','Failed to detect running Functions host within "{0}" seconds. You may want to adjust the "{1}" setting.',timeoutInSeconds,`${ext.prefix}.${settingKey}`));
177
-
}finally{
178
-
errorListener.dispose();
179
+
awaitdelay(intervalMs);
179
180
}
180
-
}
181
-
else{
182
-
thrownewError(localize('failedToFindFuncTask','Failed to detect AzFunctions Task'));
181
+
182
+
thrownewError(localize('failedToFindFuncHost','Failed to detect running Functions host within "{0}" seconds. You may want to adjust the "{1}" setting.',timeoutInSeconds,`${ext.prefix}.${settingKey}`));
0 commit comments