ycmd loads default options when none provided
This commit is contained in:
parent
2b8ee37bf5
commit
17d149e899
@ -71,14 +71,15 @@ def Main():
|
|||||||
logging.basicConfig( format = '%(asctime)s - %(levelname)s - %(message)s',
|
logging.basicConfig( format = '%(asctime)s - %(levelname)s - %(message)s',
|
||||||
level = numeric_level )
|
level = numeric_level )
|
||||||
|
|
||||||
options = None
|
options = ( json.load( open( args.options_file, 'r' ) )
|
||||||
if args.options_file:
|
if args.options_file
|
||||||
options = json.load( open( args.options_file, 'r' ) )
|
else user_options_store.DefaultOptions() )
|
||||||
user_options_store.SetAll( options )
|
user_options_store.SetAll( options )
|
||||||
# This ensures that ycm_core is not loaded before extra conf
|
|
||||||
# preload was run.
|
# This ensures that ycm_core is not loaded before extra conf
|
||||||
YcmCoreSanityCheck()
|
# preload was run.
|
||||||
extra_conf_store.CallGlobalExtraConfYcmCorePreloadIfExists()
|
YcmCoreSanityCheck()
|
||||||
|
extra_conf_store.CallGlobalExtraConfYcmCorePreloadIfExists()
|
||||||
|
|
||||||
# This can't be a top-level import because it transitively imports
|
# This can't be a top-level import because it transitively imports
|
||||||
# ycm_core which we want to be imported ONLY after extra conf
|
# ycm_core which we want to be imported ONLY after extra conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user