summaryrefslogtreecommitdiff
path: root/tools/slangd/language-server.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-06-07 14:10:49 -0700
committerGitHub <noreply@github.com>2022-06-07 14:10:49 -0700
commit0c64995ea28febcc7d38e1519da8d93391ce2e7d (patch)
tree8696ab86b29caf80c3ebbd205c700e24b8c20bf3 /tools/slangd/language-server.h
parent8c4a15c522861d2f30eacc9cd2b03ad793018639 (diff)
Major language server features. (#2264)
* Major language server features. * Include slangd in binary release. * Fix compiler issues. * Fix compiler error. * Completion resolve. * Various improvements. * Update diagnostic test expected output. * Bug fix for source locations. * Adjust diagnostic update frequency. * Update github actions to store artifacts. * Fix infinite parser loop. * Fix parser recovery. * Fix parser recovery. * Update test. * Fix test. * Disable IR gen for language server. * Allow commit characters in auto completion. * Fix lookup for invoke exprs. * More parser robustness fixes. * update solution file Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/slangd/language-server.h')
-rw-r--r--tools/slangd/language-server.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/tools/slangd/language-server.h b/tools/slangd/language-server.h
deleted file mode 100644
index 829a629b1..000000000
--- a/tools/slangd/language-server.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#pragma once
-
-#include "../../source/core/slang-io.h"
-#include "../../source/core/slang-process-util.h"
-#include "../../source/core/slang-string-util.h"
-#include "../../source/core/slang-string.h"
-#include "../../source/core/slang-writer.h"
-#include "../../source/compiler-core/slang-json-rpc-connection.h"
-#include "language-server-protocol.h"
-
-namespace Slang
-{
- class LanguageServer
- {
- public:
- RefPtr<JSONRPCConnection> m_connection;
- ComPtr<slang::IGlobalSession> m_session;
- bool m_quit = false;
- List<LanguageServerProtocol::WorkspaceFolder> m_workspaceFolders;
-
- SlangResult init(const LanguageServerProtocol::InitializeParams& args);
- SlangResult execute();
- void update();
- SlangResult didOpenTextDocument(
- const LanguageServerProtocol::DidOpenTextDocumentParams& args);
- SlangResult didCloseTextDocument(
- const LanguageServerProtocol::DidCloseTextDocumentParams& args);
- SlangResult didChangeTextDocument(
- const LanguageServerProtocol::DidChangeTextDocumentParams& args);
-
- private:
- SlangResult _executeSingle();
- slang::IGlobalSession* getOrCreateGlobalSession();
- };
-}