@@ -230,7 +230,7 @@ extension CodeiumSuggestionService: CodeiumSuggestionServiceType {
230230
231231 let relativePath = getRelativePath ( of: fileURL)
232232
233- let request = CodeiumRequest . GetCompletion ( requestBody: . init(
233+ let request = await CodeiumRequest . GetCompletion ( requestBody: . init(
234234 metadata: try getMetadata ( ) ,
235235 document: . init(
236236 absolute_path: fileURL. path,
@@ -306,7 +306,7 @@ extension CodeiumSuggestionService: CodeiumSuggestionServiceType {
306306
307307 public func notifyOpenTextDocument( fileURL: URL , content: String ) async throws {
308308 let relativePath = getRelativePath ( of: fileURL)
309- openedDocumentPool. openDocument (
309+ await openedDocumentPool. openDocument (
310310 url: fileURL,
311311 relativePath: relativePath,
312312 content: content
@@ -315,15 +315,15 @@ extension CodeiumSuggestionService: CodeiumSuggestionServiceType {
315315
316316 public func notifyChangeTextDocument( fileURL: URL , content: String ) async throws {
317317 let relativePath = getRelativePath ( of: fileURL)
318- openedDocumentPool. updateDocument (
318+ await openedDocumentPool. updateDocument (
319319 url: fileURL,
320320 relativePath: relativePath,
321321 content: content
322322 )
323323 }
324324
325325 public func notifyCloseTextDocument( fileURL: URL ) async throws {
326- openedDocumentPool. closeDocument ( url: fileURL)
326+ await openedDocumentPool. closeDocument ( url: fileURL)
327327 }
328328}
329329
0 commit comments