For Noctule (which uses SourceKit LSP), I received a bug report that SwiftData-enabled projects don't work as expected. SourceKit-LSP: SwiftData @Model macro conformance not visible in SwiftPM package test targets (false PersistentModel diagnostics) · Issue #101 · noctule-ide/noctule-swift-plugin · GitHub
The cause was that "backgroundPreparationMode: enabled" is used by default.
With "backgroundPreparationMode: build" and also "backgroundPreparationMode: noLazy" the editor (and thus SourceKit LSP) is able resolve references and no diagnostics are shown.
Should "enabled" be capable of handling SwiftData "@Model" and similar or is it expected that only the other background preparation modes handle this correctly?
Thanks!