Skip to content

Commit

Permalink
- Disable autocomplete for open files.
Browse files Browse the repository at this point in the history
- Disable reporting supported files for tool tip in console (debug log)
  • Loading branch information
sigmantium committed Jun 26, 2019
1 parent 68ad594 commit 31605ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ToolTipHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,11 @@ def get_tooltip_files(self, current_scope):
file['file_name'] = full_path
tooltip_files.append(file)
has_files = True

if has_files:
""" #UNCOMMENT BELOW TO SEE SCOPES IN CONSOLE
msg = "files with valid scope: %s\n" % str(tooltip_files)
self.logger_msg += msg
self.logger_msg += msg"""
break
if not has_files:
self.logger_msg += 'There is no file with scope from the files list that match to the current scope\n'
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ def on_query_completions(self, view, prefix, locations):
if scope and view.match_selector(locations[0], scope):
self.completions += pleasurazy.api[API_Keyword].get('completions')

"""REMOVED FOR MULTI FILE AUTOCOMPLETE
for w, v in words:
trigger = w
contents = w.replace('$', '\\$')
if v.id != view.id and v.file_name():
trigger += '\t(%s)' % basename(v.file_name())
if v.id == view.id:
trigger += settings.get("file_view_abbrev", '\tview')
##REMOVED FOR NOW##
#self.completions.append([trigger, contents])
#self.completions.append([trigger, contents])"""

if not self.completions:
return []
Expand Down

0 comments on commit 31605ad

Please sign in to comment.