Skip to content

Commit

Permalink
Fix RefreshContextForIdeAction call to pass correct column (#458)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dimfeld authored Oct 7, 2024
1 parent 9ff8d32 commit d85a85c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/codeium.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d85a85c

Please sign in to comment.