Skip to content

Commit 4b6e846

Browse files
committed
Fix that the change text notification is not called
1 parent ccfa376 commit 4b6e846

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tool/Sources/GitHubCopilotService/GitHubCopilotExtension.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public final class GitHubCopilotExtension: BuiltinExtension {
9393
do {
9494
guard let content else { return }
9595
guard let service = await serviceLocator.getService(from: workspace) else { return }
96-
try await service.notifyOpenTextDocument(fileURL: documentURL, content: content)
96+
try await service.notifyChangeTextDocument(fileURL: documentURL, content: content, version: 0)
9797
} catch {
9898
Logger.gitHubCopilot.error(error.localizedDescription)
9999
}

0 commit comments

Comments
 (0)