Actually stopping compilation when no support
Previously we would just emit an error message _and continue_. The "and continue" part was an embarrassing oversight.
This commit is contained in:
parent
21dac46ecc
commit
bdacf4dc36
@ -475,8 +475,9 @@ command! YcmDebugInfo call s:DebugInfo()
|
|||||||
|
|
||||||
function! s:ForceCompile()
|
function! s:ForceCompile()
|
||||||
if !pyeval( 'ycm_state.NativeFiletypeCompletionUsable()' )
|
if !pyeval( 'ycm_state.NativeFiletypeCompletionUsable()' )
|
||||||
echom "Filetype completion not supported for current file, "
|
echom "Native filetype completion not supported for current file, "
|
||||||
\ . "cannot force recompilation."
|
\ . "cannot force recompilation."
|
||||||
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
echom "Forcing compilation, this will block Vim until done."
|
echom "Forcing compilation, this will block Vim until done."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user