mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-06-24 12:21:58 +02:00
a39c92022f
Rename languageServices(for:), primaryLanguageService(for:), and their internal counterparts to use the `forOpenDocument` label, so the precondition that the document must already be open is visible at call sites. Also make primaryLanguageService(forOpenDocument:) throw instead of returning an optional, and switch several resolve-style handlers from the find-or-create primaryLanguageService(for:_:) to primaryLanguageService(forOpenDocument:), since those call sites already have an open document in hand.