Remove slow debugging code
This commit is contained in:
parent
1ace7b648e
commit
45f0b68d87
1 changed files with 11 additions and 11 deletions
|
|
@ -324,13 +324,13 @@ function! vimspector#CompleteFuncSync( prompt, find_start, query ) abort
|
||||||
let s:latest_completion_request.start_pos = start_pos
|
let s:latest_completion_request.start_pos = start_pos
|
||||||
let s:latest_completion_request.prompt = a:prompt
|
let s:latest_completion_request.prompt = a:prompt
|
||||||
|
|
||||||
call s:Debug( 'FindStart: %s', {
|
" call s:Debug( 'FindStart: %s', {
|
||||||
\ 'line': line,
|
" \ 'line': line,
|
||||||
\ 'col': col,
|
" \ 'col': col,
|
||||||
\ 'prompt': len( a:prompt ),
|
" \ 'prompt': len( a:prompt ),
|
||||||
\ 'start_pos': start_pos,
|
" \ 'start_pos': start_pos,
|
||||||
\ 'returning': ( start_pos + len( a:prompt ) ) - 1,
|
" \ 'returning': ( start_pos + len( a:prompt ) ) - 1,
|
||||||
\ } )
|
" \ } )
|
||||||
|
|
||||||
" start_pos is 1-based and the return of findstart is 0-based
|
" start_pos is 1-based and the return of findstart is 0-based
|
||||||
return ( start_pos + len( a:prompt ) ) - 1
|
return ( start_pos + len( a:prompt ) ) - 1
|
||||||
|
|
@ -349,9 +349,9 @@ function! vimspector#CompleteFuncSync( prompt, find_start, query ) abort
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if item.length > len( a:query )
|
if item.length > len( a:query )
|
||||||
call s:Debug( 'Rejecting %s, length is greater than %s',
|
" call s:Debug( 'Rejecting %s, length is greater than %s',
|
||||||
\ item,
|
" \ item,
|
||||||
\ len( a:query ) )
|
" \ len( a:query ) )
|
||||||
continue
|
continue
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
@ -363,7 +363,7 @@ function! vimspector#CompleteFuncSync( prompt, find_start, query ) abort
|
||||||
endfor
|
endfor
|
||||||
let s:latest_completion_request = {}
|
let s:latest_completion_request = {}
|
||||||
|
|
||||||
call s:Debug( 'Items: %s', items )
|
" call s:Debug( 'Items: %s', items )
|
||||||
return { 'words': items, 'refresh': 'always' }
|
return { 'words': items, 'refresh': 'always' }
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue