From 0c64995ea28febcc7d38e1519da8d93391ce2e7d Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 7 Jun 2022 14:10:49 -0700 Subject: 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 --- slang.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'slang.h') diff --git a/slang.h b/slang.h index 1c6eb5fed..fbb368a24 100644 --- a/slang.h +++ b/slang.h @@ -4002,6 +4002,10 @@ namespace slang You have been warned. */ kSessionFlag_FalcorCustomSharedKeywordSemantics = 1 << 0, + + /** Indicates that this is a session created by language server. + */ + kSessionFlag_LanguageServer = 1 << 1, }; struct PreprocessorMacroDesc @@ -4036,6 +4040,8 @@ namespace slang PreprocessorMacroDesc const* preprocessorMacros = nullptr; SlangInt preprocessorMacroCount = 0; + + ISlangFileSystem* fileSystem = nullptr; }; enum class ContainerType @@ -4086,6 +4092,7 @@ namespace slang */ virtual SLANG_NO_THROW IModule* SLANG_MCALL loadModuleFromSource( const char* moduleName, + const char* path, slang::IBlob* source, slang::IBlob** outDiagnostics = nullptr) = 0; -- cgit v1.2.3