Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct a few typos in comments #4220

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions autoload/youcompleteme.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
let s:save_cpo = &cpo
set cpo&vim

" NOTE: Noevim reports v:version as 800, which is garbage. For some features
" that are supporetd by our minimum Vim version, we have to guard them against
" NOTE: Neovim reports v:version as 800, which is garbage. For some features
" that are supported by our minimum Vim version, we have to guard them against
" neovim, which doesn't implement them.
let s:is_neovim = has( 'nvim' )

Expand Down Expand Up @@ -150,7 +150,7 @@
\ g:ycm_add_preview_to_completeopt

" Will we be using the preview popup ? That is either the user set it in their
" compelteopt or we're going to add it later.
" completeopt or we're going to add it later.
let use_preview_popup =
\ s:force_preview_popup ||
\ index( completeopt, 'popup' ) >= 0
Expand All @@ -169,7 +169,7 @@
" supported, enable it.
let s:resolve_completions = s:RESOLVE_ON_DEMAND
elseif require_resolve
" The preview window or info popup is enalbed - request the server
" The preview window or info popup is enabled - request the server
" pre-resolves completion items
let s:resolve_completions = s:RESOLVE_UP_FRONT
else
Expand Down Expand Up @@ -293,18 +293,18 @@
# If we're able to resolve completion details asynchronously, set the option
# which enables this in the server.
if int( vim.eval( 's:resolve_completions == s:RESOLVE_ON_DEMAND' ) ):
# resovle a small number upfront, the rest on demand
# resolve a small number upfront, the rest on demand

Check warning on line 296 in autoload/youcompleteme.vim

View check run for this annotation

Codecov / codecov/patch

autoload/youcompleteme.vim#L296

Added line #L296 was not covered by tests
default_options = {
'max_num_candidates_to_detail': 10
}
elif int( vim.eval( 's:resolve_completions == s:RESOLVE_NONE' ) ):
# don't reasolve any
# don't resolve any

Check warning on line 301 in autoload/youcompleteme.vim

View check run for this annotation

Codecov / codecov/patch

autoload/youcompleteme.vim#L301

Added line #L301 was not covered by tests
default_options = {
'max_num_candidates_to_detail': 0
}
else:
# i.e. s:resolve_completions == s:RESOLVE_UP_FRONT
# The server will decide - i.e. resovle everything upfront
# The server will decide - i.e. resolve everything upfront

Check warning on line 307 in autoload/youcompleteme.vim

View check run for this annotation

Codecov / codecov/patch

autoload/youcompleteme.vim#L307

Added line #L307 was not covered by tests
default_options = {}

ycm_state = youcompleteme.YouCompleteMe( default_options )
Expand Down Expand Up @@ -816,8 +816,8 @@
" We only want to send a new FileReadyToParse event notification if the buffer
" has changed since the last time we sent one, or if forced.
if force_parsing || py3eval( "ycm_state.NeedsReparse()" )
" We switched buffers or somethuing, so claer.
" FIXME: sig hekp should be buffer local?
" We switched buffers or something, so clear.
" FIXME: sig help should be buffer local?
call s:ClearSignatureHelp()
py3 ycm_state.OnFileReadyToParse()

Expand Down Expand Up @@ -1144,8 +1144,8 @@
\ vimsupport.GetBoolValue( 's:force_semantic' ) )

if py3eval( 'ycm_state.CompletionRequestReady()' )
" We can't call complete() syncrhounsouly in the TextChangedI/TextChangedP
" autocommmands (it's designed to be used async only completion). The result
" We can't call complete() synchronously in the TextChangedI/TextChangedP
" autocommands (it's designed to be used async only completion). The result
" (somewhat oddly) is that the completion menu is shown, but ctrl-n doesn't
" actually select anything.
" When the request is satisfied synchronously (e.g. the omnicompleter), we
Expand Down Expand Up @@ -1201,8 +1201,8 @@
py3 ycm_state.SendCompletionRequest( True )

if py3eval( 'ycm_state.CompletionRequestReady()' )
" We can't call complete() syncrhounsouly in the TextChangedI/TextChangedP
" autocommmands (it's designed to be used async only completion). The
" We can't call complete() synchronously in the TextChangedI/TextChangedP
" autocommands (it's designed to be used async only completion). The
" result (somewhat oddly) is that the completion menu is shown, but ctrl-n
" doesn't actually select anything. When the request is satisfied
" synchronously (e.g. the omnicompleter), we must return to the main loop
Expand Down Expand Up @@ -1248,7 +1248,7 @@

" Note we re-use the 'completion' request for resolves. This prevents us
" sending a completion request and a resolve request at the same time, as
" resolve requests re-use the requset data from the last completion request
" resolve requests re-use the request data from the last completion request
" and it must not change.
" We also re-use the poller, so that any new completion request effectively
" cancels this poller.
Expand Down Expand Up @@ -1504,7 +1504,7 @@
if py3eval( 'ycm_state.GetCommandRequest( int( vim.eval( "request_id" ) ) )'
\ . 'is None' )
" Possible in case of race conditions and things like RestartServer
" But particualrly in the tests
" But particularly in the tests
let result = v:none
elseif !py3eval( 'ycm_state.GetCommandRequest( '
\ . 'int( vim.eval( "request_id" ) ) ).Done()' )
Expand Down Expand Up @@ -1681,7 +1681,7 @@
call popup_hide( s:cursorhold_popup )
let s:cursorhold_popup = -1

" Diable the auto-trigger until the next cursor movement.
" Disable the auto-trigger until the next cursor movement.
call s:DisableAutoHover()
augroup YCMHover
autocmd! CursorMoved <buffer>
Expand Down
Loading