[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:
Ben Langmuir
2020-02-05 14:05:39 -08:00
parent 25e3574bc3
commit a679d4553d
9 changed files with 12 additions and 11 deletions

View File

@@ -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 {