From 9899cac7b65a49cb026d7c6efd59072612760cc5 Mon Sep 17 00:00:00 2001 From: Matt <85322+mattmassicotte@users.noreply.github.com> Date: Fri, 11 Feb 2022 15:33:56 -0500 Subject: [PATCH] Convenience method for didChangeWatchedFiles --- Sources/LanguageServerProtocol/Server.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/LanguageServerProtocol/Server.swift b/Sources/LanguageServerProtocol/Server.swift index a81c2db..72b7e01 100644 --- a/Sources/LanguageServerProtocol/Server.swift +++ b/Sources/LanguageServerProtocol/Server.swift @@ -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) -> Void) { sendRequest(.completion(params), completionHandler: block) }