swiftlang / vscode-swift

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

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

Open plemarquand opened 3 days ago

plemarquand commented 3 days 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.