Skip to content

Commit

Permalink
Convenience method for didChangeWatchedFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Feb 11, 2022
1 parent dfe6aa2 commit 9899cac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/LanguageServerProtocol/Server.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ public extension Server {
sendNotification(.didSaveTextDocument(params), completionHandler: block)
}

func didChangeWatchedFiles(params: DidChangeWatchedFilesParams, block: @escaping (ServerError?) -> Void) {
sendNotification(.didChangeWatchedFiles(params), completionHandler: block)
}

func completion(params: CompletionParams, block: @escaping (ServerResult<CompletionResponse>) -> Void) {
sendRequest(.completion(params), completionHandler: block)
}
Expand Down

0 comments on commit 9899cac

Please sign in to comment.