Skip to content

No diagnostics shown for Swift package in subfolder of workspace #2166

@ahoppen

Description

@ahoppen

When I have a directory structure like the following

abc
└── swifftest
    ├── Package.swift
    ├── Sources
    │   └── swifftest
    │       └── swifftest.swift
    └── Tests
        └── swifftestTests
            └── swifftestTests.swift

6 directories, 3 files

And I open the abc folder in VS Code, then navigate to swifttest.swift and introduce a syntax error in there, I don’t see any diagnostics. Looking at the SourceKit-LSP logs, it seems like no textDocument/diagnostics request is sent.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Unscreened

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions