aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/lsp/vhdl_ls.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-08-23 22:04:28 +0200
committerGitHub <noreply@github.com>2021-08-23 22:04:28 +0200
commitc58dff10cb3d4d7f942ecd43169cd4681afe26f1 (patch)
tree4095a2b7e8f083ca22a9f4ca0424960002d34f9f /pyGHDL/lsp/vhdl_ls.py
parentdac2e4dca824f413821962eeac314ceaf56925a7 (diff)
parent3dddb7dea5cf898f7f05699a7f6aee8906f9ce24 (diff)
downloadghdl-c58dff10cb3d4d7f942ecd43169cd4681afe26f1.tar.gz
ghdl-c58dff10cb3d4d7f942ecd43169cd4681afe26f1.tar.bz2
ghdl-c58dff10cb3d4d7f942ecd43169cd4681afe26f1.zip
Set black formatting to 120 chars per line.
Added pyproject.toml
Diffstat (limited to 'pyGHDL/lsp/vhdl_ls.py')
-rw-r--r--pyGHDL/lsp/vhdl_ls.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/pyGHDL/lsp/vhdl_ls.py b/pyGHDL/lsp/vhdl_ls.py
index 0c022c380..8207c9e28 100644
--- a/pyGHDL/lsp/vhdl_ls.py
+++ b/pyGHDL/lsp/vhdl_ls.py
@@ -62,15 +62,7 @@ class VhdlLanguageServer(object):
}
return server_capabilities
- def initialize(
- self,
- processId,
- rootPath,
- capabilities,
- rootUri=None,
- initializationOptions=None,
- **_
- ):
+ def initialize(self, processId, rootPath, capabilities, rootUri=None, initializationOptions=None, **_):
log.debug(
"Language server initialize: pid=%s uri=%s path=%s options=%s",
processId,
@@ -91,9 +83,7 @@ class VhdlLanguageServer(object):
def textDocument_didOpen(self, textDocument=None):
doc_uri = textDocument["uri"]
- self.workspace.put_document(
- doc_uri, textDocument["text"], version=textDocument.get("version")
- )
+ self.workspace.put_document(doc_uri, textDocument["text"], version=textDocument.get("version"))
self.lint(doc_uri)
def textDocument_didChange(self, textDocument=None, contentChanges=None, **_kwargs):