Skip to content

Commit

Permalink
Initialized hook (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
jroitgrund authored and gatesn committed Jan 21, 2020
1 parent 5d01b62 commit fc2ab66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pyls/hookspecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ def pyls_initialize(config, workspace):
pass


@hookspec
def pyls_initialized():
pass


@hookspec
def pyls_lint(config, workspace, document, is_saved):
pass
Expand Down
2 changes: 1 addition & 1 deletion pyls/python_ls.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def watch_parent_process(pid):
return {'capabilities': self.capabilities()}

def m_initialized(self, **_kwargs):
pass
self._hook('pyls_initialized')

def code_actions(self, doc_uri, range, context):
return flatten(self._hook('pyls_code_actions', doc_uri, range=range, context=context))
Expand Down

0 comments on commit fc2ab66

Please sign in to comment.