Skip to content

Commit fc2ab66

Browse files
jroitgrundgatesn
authored andcommitted
Initialized hook (#732)
1 parent 5d01b62 commit fc2ab66

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pyls/hookspecs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ def pyls_initialize(config, workspace):
9292
pass
9393

9494

95+
@hookspec
96+
def pyls_initialized():
97+
pass
98+
99+
95100
@hookspec
96101
def pyls_lint(config, workspace, document, is_saved):
97102
pass

pyls/python_ls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def watch_parent_process(pid):
227227
return {'capabilities': self.capabilities()}
228228

229229
def m_initialized(self, **_kwargs):
230-
pass
230+
self._hook('pyls_initialized')
231231

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

0 commit comments

Comments
 (0)