summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h7
1 files changed, 7 insertions, 0 deletions
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;