@@ -141,7 +141,7 @@ def pyls_document_did_open(self, config, workspace):
141141 ctags_exe = _ctags_exe (settings )
142142
143143 for tag_file in settings .get ('tagFiles' , []):
144- mode = tag_file .get ('onStart' , CtagMode . DEFAULT_ON_START_MODE )
144+ mode = tag_file .get ('onStart' , DEFAULT_ON_START_MODE )
145145
146146 if mode == CtagMode .NONE :
147147 log .debug ("Skipping tag file with onStart mode NONE: %s" , tag_file )
@@ -158,7 +158,7 @@ def pyls_document_did_save(self, config, document):
158158 ctags_exe = _ctags_exe (settings )
159159
160160 for tag_file in settings .get ('tagFiles' , []):
161- mode = tag_file .get ('onSave' , CtagMode . DEFAULT_ON_SAVE_MODE )
161+ mode = tag_file .get ('onSave' , DEFAULT_ON_SAVE_MODE )
162162
163163 if mode == CtagMode .NONE :
164164 log .debug ("Skipping tag file with onSave mode NONE: %s" , tag_file )
@@ -210,7 +210,7 @@ def execute(ctags_exe, tag_file, directory, append=False):
210210
211211def parse_tags (tag_file , query ):
212212 if not os .path .exists (tag_file ):
213- return []
213+ return
214214
215215 with io .open (tag_file , 'rb' ) as f :
216216 for line in f :
0 commit comments