YcmDiags and ForceCompilation work again

This commit is contained in:
Strahinja Val Markovic 2013-10-03 14:17:05 -07:00
parent 62f813367d
commit 159a8ecdfa
3 changed files with 4 additions and 18 deletions

View File

@ -562,6 +562,7 @@ function! youcompleteme#OmniComplete( findstart, base )
endfunction
" TODO: Make this work again
function! s:ShowDetailedDiagnostic()
py ycm_state.ShowDetailedDiagnostic()
endfunction
@ -646,28 +647,19 @@ function! s:ForceCompile()
break
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
endwhile
return 1
endfunction
" TODO: Make this work again.
function! s:ForceCompileAndDiagnostics()
let compilation_succeeded = s:ForceCompile()
if !compilation_succeeded
return
endif
" call s:UpdateDiagnosticNotifications()
call s:UpdateDiagnosticNotifications()
echom "Diagnostics refreshed."
endfunction
@ -680,7 +672,7 @@ function! s:ShowDiagnostics()
return
endif
let diags = pyeval( 'ycm_state.GetDiagnosticsForCurrentFile()' )
let diags = pyeval( 'ycm_state.GetDiagnosticsFromStoredRequest()' )
if !empty( diags )
call setloclist( 0, diags )
lopen

View File

@ -77,6 +77,7 @@ let g:ycm_filetype_blacklist =
\ get( g:, 'ycm_filetype_blacklist',
\ get( g:, 'ycm_filetypes_to_completely_ignore', {
\ 'notes' : 1,
\ 'qf': 1,
\ 'markdown' : 1,
\ 'text' : 1,
\ 'unite' : 1,

View File

@ -201,13 +201,6 @@ class YouCompleteMe( object ):
pass
# TODO: Make this work again.
def GettingCompletions( self ):
# if self.FiletypeCompletionUsable():
# return self.GetFiletypeCompleter().GettingCompletions()
return False
def DebugInfo( self ):
debug_info = BaseRequest.PostDataToHandler( BuildRequestData(),
'debug_info' )