From d85a85ca7e12967db22b00fd5e9f1a095bb47c96 Mon Sep 17 00:00:00 2001 From: Daniel Imfeld Date: Mon, 7 Oct 2024 08:17:12 -1000 Subject: [PATCH] Fix RefreshContextForIdeAction call to pass correct column (#458) This fixes this error: E1002 15:51:49.912757 76190 interceptor.go:51] /exa.language_server_pb.LanguageServerService/RefreshContextForIdeAction: invalid position (row 258, col 258): character 258 out of range [0, 18] for line 258 --- autoload/codeium.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/codeium.vim b/autoload/codeium.vim index 0ea437e1..1ccbee66 100644 --- a/autoload/codeium.vim +++ b/autoload/codeium.vim @@ -473,7 +473,7 @@ endfunction function! codeium#RefreshContext() abort " current buffer is 1 try - call codeium#server#Request('RefreshContextForIdeAction', {'active_document': codeium#doc#GetDocument(1, line('.'), line('.'))}) + call codeium#server#Request('RefreshContextForIdeAction', {'active_document': codeium#doc#GetDocument(1, line('.'), col('.'))}) catch call codeium#log#Exception() endtry