MCPcopy Index your code
hub / github.com/ycm-core/YouCompleteMe / OpenLocationList

Function OpenLocationList

python/ycm/vimsupport.py:478–496  ·  view source on GitHub ↗

Open the location list to the bottom of the current window with its height automatically set to fit all entries. This behavior can be overridden by using the YcmLocationOpened autocommand. When focus is set to True, the location list window becomes the active window. When autoclose is set to T

( focus = False, autoclose = False )

Source from the content-addressed store, hash-verified

476
477
478def OpenLocationList( focus = False, autoclose = False ):
479 """Open the location list to the bottom of the current window with its
480 height automatically set to fit all entries. This behavior can be overridden
481 by using the YcmLocationOpened autocommand. When focus is set to True, the
482 location list window becomes the active window. When autoclose is set to True,
483 the location list window is automatically closed after an entry is
484 selected."""
485 vim.command( 'lopen' )
486
487 SetFittingHeightForCurrentWindow()
488
489 if autoclose:
490 AutoCloseOnCurrentBuffer( 'ycmlocation' )
491
492 if VariableExists( '#User#YcmLocationOpened' ):
493 vim.command( 'doautocmd User YcmLocationOpened' )
494
495 if not focus:
496 JumpToPreviousWindow()
497
498
499def SetQuickFixList( quickfix_list ):

Callers

nothing calls this directly

Calls 4

AutoCloseOnCurrentBufferFunction · 0.85
VariableExistsFunction · 0.85
JumpToPreviousWindowFunction · 0.85

Tested by

no test coverage detected