YcmDiags and ForceCompilation work again
This commit is contained in:
parent
62f813367d
commit
159a8ecdfa
@ -562,6 +562,7 @@ function! youcompleteme#OmniComplete( findstart, base )
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
" TODO: Make this work again
|
||||||
function! s:ShowDetailedDiagnostic()
|
function! s:ShowDetailedDiagnostic()
|
||||||
py ycm_state.ShowDetailedDiagnostic()
|
py ycm_state.ShowDetailedDiagnostic()
|
||||||
endfunction
|
endfunction
|
||||||
@ -646,28 +647,19 @@ function! s:ForceCompile()
|
|||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let getting_completions = pyeval(
|
|
||||||
\ 'ycm_state.GettingCompletions()' )
|
|
||||||
|
|
||||||
if !getting_completions
|
|
||||||
echom "Unable to retrieve diagnostics, see output of `:mes` for possible details."
|
|
||||||
return 0
|
|
||||||
endif
|
|
||||||
|
|
||||||
sleep 100m
|
sleep 100m
|
||||||
endwhile
|
endwhile
|
||||||
return 1
|
return 1
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
" TODO: Make this work again.
|
|
||||||
function! s:ForceCompileAndDiagnostics()
|
function! s:ForceCompileAndDiagnostics()
|
||||||
let compilation_succeeded = s:ForceCompile()
|
let compilation_succeeded = s:ForceCompile()
|
||||||
if !compilation_succeeded
|
if !compilation_succeeded
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" call s:UpdateDiagnosticNotifications()
|
call s:UpdateDiagnosticNotifications()
|
||||||
echom "Diagnostics refreshed."
|
echom "Diagnostics refreshed."
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@ -680,7 +672,7 @@ function! s:ShowDiagnostics()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let diags = pyeval( 'ycm_state.GetDiagnosticsForCurrentFile()' )
|
let diags = pyeval( 'ycm_state.GetDiagnosticsFromStoredRequest()' )
|
||||||
if !empty( diags )
|
if !empty( diags )
|
||||||
call setloclist( 0, diags )
|
call setloclist( 0, diags )
|
||||||
lopen
|
lopen
|
||||||
|
@ -77,6 +77,7 @@ let g:ycm_filetype_blacklist =
|
|||||||
\ get( g:, 'ycm_filetype_blacklist',
|
\ get( g:, 'ycm_filetype_blacklist',
|
||||||
\ get( g:, 'ycm_filetypes_to_completely_ignore', {
|
\ get( g:, 'ycm_filetypes_to_completely_ignore', {
|
||||||
\ 'notes' : 1,
|
\ 'notes' : 1,
|
||||||
|
\ 'qf': 1,
|
||||||
\ 'markdown' : 1,
|
\ 'markdown' : 1,
|
||||||
\ 'text' : 1,
|
\ 'text' : 1,
|
||||||
\ 'unite' : 1,
|
\ 'unite' : 1,
|
||||||
|
@ -201,13 +201,6 @@ class YouCompleteMe( object ):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
# TODO: Make this work again.
|
|
||||||
def GettingCompletions( self ):
|
|
||||||
# if self.FiletypeCompletionUsable():
|
|
||||||
# return self.GetFiletypeCompleter().GettingCompletions()
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
def DebugInfo( self ):
|
def DebugInfo( self ):
|
||||||
debug_info = BaseRequest.PostDataToHandler( BuildRequestData(),
|
debug_info = BaseRequest.PostDataToHandler( BuildRequestData(),
|
||||||
'debug_info' )
|
'debug_info' )
|
||||||
|
Loading…
Reference in New Issue
Block a user