aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-01-26 18:55:14 +0100
committerTristan Gingold <tgingold@free.fr>2023-01-26 21:56:36 +0100
commit5d31b22337d176a7ff6d2df2adde742bc57a80f1 (patch)
tree92274fd6658558b544aea8466c3abf0ccaedd461
parent9ae0a8f4646ac3520ed4d52e4d464687b115c089 (diff)
downloadghdl-5d31b22337d176a7ff6d2df2adde742bc57a80f1.tar.gz
ghdl-5d31b22337d176a7ff6d2df2adde742bc57a80f1.tar.bz2
ghdl-5d31b22337d176a7ff6d2df2adde742bc57a80f1.zip
pyGHDL/lsp: add but disable code action
-rw-r--r--pyGHDL/lsp/vhdl_ls.py8
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)