Skip to content

Commit

Permalink
bugfix for show lint immd
Browse files Browse the repository at this point in the history
  • Loading branch information
jayli committed Dec 19, 2023
1 parent d955f90 commit 335a110
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autoload/easycomplete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1476,6 +1476,11 @@ function! s:FirstCompleteRendering(start_pos, menuitems)
call s:flush()
return
endif
" 如果 aone_copilot 已经给了提示,那么就暂停展示 pum
if exists("g:aone_copilot_ready") && g:aone_copilot_ready && aone_copilot#copilot_snippet_ready()
call s:flush()
return
endif
let typing_word = s:GetTypingWord()
let should_stop_render = 0
try
Expand Down Expand Up @@ -2039,6 +2044,7 @@ function! easycomplete#CursorHold()
\ && easycomplete#ok('g:easycomplete_diagnostics_hover')
call easycomplete#sign#LintPopup()
endif
call easycomplete#lint()
endfunction

function! easycomplete#CursorHoldI()
Expand Down
4 changes: 4 additions & 0 deletions autoload/easycomplete/action/diagnostics.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ let s:response_ready = 0

function! easycomplete#action#diagnostics#do()
" 确保从这里 fire 的 diagnostic 才会被更新渲染
if easycomplete#util#GetLspPluginName() == "ts"
call easycomplete#sources#ts#lint()
return
endif
if !easycomplete#util#LspServerReady() | return | endif
call easycomplete#lsp#notify_diagnostics_update()
let s:response_ready = 0
Expand Down

0 comments on commit 335a110

Please sign in to comment.