Skip to content

Commit

Permalink
fix: move rollnw kernel start to lsp.INITIALIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
jd28 committed Dec 15, 2023
1 parent 3ad9bbd commit 7db55f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions nwscript_language_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,3 +337,10 @@ def text_document_signature_help(params: lsp.SignatureHelpParams) -> Optional[ls
return

return lsp.SignatureHelp(signatures, 0, sig_help.active_param)


@SERVER.feature(lsp.INITIALIZE)
def initialize(params: lsp.InitializeParams):
rollnw.kernel.start()

# [TODO] All client capabilities:
2 changes: 0 additions & 2 deletions servers/nwscript_server.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import rollnw
from nwscript_language_server.cli import cli

if __name__ == "__main__":
rollnw.kernel.start()
cli()

0 comments on commit 7db55f6

Please sign in to comment.