swiftlang / vscode-swift

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

Don't prepend target id to test ids if it exists #941

Closed plemarquand closed 4 months ago

plemarquand commented 4 months ago

With https://github.com/swiftlang/sourcekit-lsp/pull/1530, sourcekit-lsp will start prepending a test target's name to the test id. This helps disambiguate when there are two identically named suites in two different test targets.

To maintain the current behaviour with older sourcekit-lsp versions only prefix the test target if it isn't already there.