swiftlang / vscode-swift

Visual Studio Code Extension for Swift
https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Apache License 2.0
708 stars 47 forks source link

Switch to Build All task when listing tests fails #814

Closed plemarquand closed 1 month ago

plemarquand commented 1 month ago

Use the buildAllTask instead of SwiftExecOperation to make long this behaviour the same as other builds in the extension.

Added a task cache since provideTasks can be called multiple times and the most recently returned task is held by VSCode. If we attempted created the build all task and hooked up the event listeners but then provideTasks was called again before the task was executed, the executed task would not be the one we were listening to.

Fixes #808

adam-fowler commented 1 month ago

Added a task cache since provideTasks can be called multiple times and the most recently returned task is held by VSCode. If we attempted created the build all task and hooked up the event listeners but then provideTasks was called again before the task was executed, the executed task would not be the one we were listening to.

What is this actually fixing. Is there an issue you came across that requires this?