Permalink
Browse files

disable autocomplete by default

  • Loading branch information...
1 parent 0eb0805 commit 1e96aa072dbd63b9dd1dbe424cc7f8d7e0742555 @casualjim casualjim committed Mar 1, 2012
Showing with 6 additions and 3 deletions.
  1. +2 −1 Ensime.sublime-settings
  2. +4 −2 ensime_completions.py
View
@@ -1,4 +1,5 @@
{
"ensime_server_path": "Ensime/server",
- "ensime_work_dir": "Ensime/work"
+ "ensime_work_dir": "Ensime/work",
+ "use_auto_complete": false
}
View
@@ -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])

0 comments on commit 1e96aa0

Please sign in to comment.