diff --git a/pyls/hookspecs.py b/pyls/hookspecs.py index a52f9902..21f2006e 100644 --- a/pyls/hookspecs.py +++ b/pyls/hookspecs.py @@ -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 diff --git a/pyls/python_ls.py b/pyls/python_ls.py index 8a1b1851..577675f7 100644 --- a/pyls/python_ls.py +++ b/pyls/python_ls.py @@ -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))