Skip to content

Commit

Permalink
Merge 6693c91 into 99c2493
Browse files Browse the repository at this point in the history
  • Loading branch information
rwols authored Jul 17, 2019
2 parents 99c2493 + 6693c91 commit fdf8080
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ def initialize(self):
if session:
completionProvider = session.get_capability(
'completionProvider')
if completionProvider:
# A language server may have an empty dict as CompletionOptions. In that case,
# no trigger characters will be registered but we'll still respond to Sublime's
# usual query for completions. So the explicit check for None is necessary.
if completionProvider is not None:
self.enabled = True
self.resolve = completionProvider.get('resolveProvider') or False
self.trigger_chars = completionProvider.get(
Expand Down

0 comments on commit fdf8080

Please sign in to comment.