mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Allow querying the build system for the language of a document
The build system has potentially more information about a document's language than we do based on the file’s extension.
This commit is contained in:
@@ -267,6 +267,10 @@ extension BuildServerBuildSystem: BuildSystem {
|
||||
return buildSettings[document]
|
||||
}
|
||||
|
||||
public func defaultLanguage(for document: DocumentURI) async -> Language? {
|
||||
return nil
|
||||
}
|
||||
|
||||
public func registerForChangeNotifications(for uri: DocumentURI) {
|
||||
let request = RegisterForChanges(uri: uri, action: .register)
|
||||
_ = self.buildServer?.send(request) { result in
|
||||
|
||||
Reference in New Issue
Block a user