swiftlang / vscode-swift

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

swift-testing: If LSP is disabled, swift-testing tests do not work #892

Open adam-fowler opened 2 weeks ago

adam-fowler commented 2 weeks ago

It appears swift-testing tests are not flagged as swift-testing until they are found via the workspace/tests or textDocument/tests LSP requests. We need another way to catch this. While disabling SourceKit-LSP is a special situation, it could occur in situations where LSP is particularly slow in large projects.

award999 commented 2 weeks ago

Swift-testing is more complex than XCTests so Paul said he would be hesitant to parse this. Some ideas:

  1. Update setting description, warning if they disable sourcekit-lsp, they lose this functionality
  2. Update warning notification message that shows up to kill the LSP
  3. Provide warning in testing view (if we can still show XCTests at same time)