mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
[buildsystem] Standardize call between register and settings query NFC
In preparation for injecting doing more during registration, pass through the same parameters (add language) so that we can call settings as necessary.
This commit is contained in:
@@ -149,7 +149,7 @@ extension BuildServerBuildSystem: BuildSystem {
|
||||
|
||||
/// Register the given file for build-system level change notifications, such as command
|
||||
/// line flag changes, dependency changes, etc.
|
||||
public func registerForChangeNotifications(for uri: DocumentURI) {
|
||||
public func registerForChangeNotifications(for uri: DocumentURI, language: Language) {
|
||||
let request = RegisterForChanges(uri: uri, action: .register)
|
||||
_ = self.buildServer?.send(request, queue: requestQueue, reply: { result in
|
||||
if let error = result.failure {
|
||||
|
||||
Reference in New Issue
Block a user