diff options
Diffstat (limited to 'pyGHDL')
-rw-r--r-- | pyGHDL/lsp/vhdl_ls.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pyGHDL/lsp/vhdl_ls.py b/pyGHDL/lsp/vhdl_ls.py index bd6abcf41..fd34383cf 100644 --- a/pyGHDL/lsp/vhdl_ls.py +++ b/pyGHDL/lsp/vhdl_ls.py @@ -26,6 +26,7 @@ class VhdlLanguageServer(object): "textDocument/definition": self.textDocument_definition, "textDocument/implementation": self.textDocument_implementation, "textDocument/documentSymbol": self.textDocument_documentSymbol, + "textDocument/codeAction": self.textDocument_codeAction, # 'textDocument/completion': self.completion, "textDocument/rangeFormatting": self.textDocument_rangeFormatting, "workspace/xShowAllFiles": self.workspace_xShowAllFiles, @@ -137,6 +138,13 @@ class VhdlLanguageServer(object): def textDocument_hover(self, textDocument=None, position=None): return self.workspace.hover(textDocument["uri"], position) + def textDocument_codeAction(self, textDocument=None, range=None, context=None): + # Not yet implemented. + # * reorder associations (but keep comments !) + # * add missing associations (all or only IN) + # * add formal in assocs + return None + def m_workspace__did_change_configuration(self, _settings=None): for doc_uri in self.workspace.documents: self.lint(doc_uri) |