Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

disable autocomplete by default

  • Loading branch information...
commit 1e96aa072dbd63b9dd1dbe424cc7f8d7e0742555 1 parent 0eb0805
@casualjim casualjim authored
Showing with 6 additions and 3 deletions.
  1. +2 −1  Ensime.sublime-settings
  2. +4 −2 ensime_completions.py
View
3  Ensime.sublime-settings
@@ -1,4 +1,5 @@
{
"ensime_server_path": "Ensime/server",
- "ensime_work_dir": "Ensime/work"
+ "ensime_work_dir": "Ensime/work",
+ "use_auto_complete": false
}
View
6 ensime_completions.py
@@ -29,8 +29,10 @@ class EnsimeCompletionsListener(sublime_plugin.EventListener):
def on_query_completions(self, view, prefix, locations):
if not view.match_selector(locations[0], "source.scala") and not view.match_selector(locations[0], "source.java"):
return []
-
- data = ensime_environment.ensime_env.client().complete_member(view.file_name(), locations[0])
+ env = ensime_environment.ensime_env
+ if not env.use_auto_complete:
+ return []
+ data = env.client().complete_member(view.file_name(), locations[0])
if data is None:
return []
friend = sexp.sexp_to_key_map(data[1][1])
Please sign in to comment.
Something went wrong with that request. Please try again.