summaryrefslogtreecommitdiff
path: root/indra/newview/llsyntaxid.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2025-10-10 12:28:41 -0700
committerGitHub <noreply@github.com>2025-10-10 12:28:41 -0700
commitdd9ea09d50ef5a4992d2ae29d2970ce05998bad0 (patch)
treed4500ea28b20dcb0aa274b3bbc0ad10585634193 /indra/newview/llsyntaxid.cpp
parent0b7bc35131ce4a526c1e696904c4e8332e1b0fe9 (diff)
parentc21fda0b79c2e18c0dccf9e88524a716b57b94bf (diff)
Merge pull request #4599 from secondlife/rider/vscode_integration
Websockets Server implementation for script editor integration with VSCode or other external editors. Full implementation of JSON-RPC server bound to external code editing.
Diffstat (limited to 'indra/newview/llsyntaxid.cpp')
-rw-r--r--indra/newview/llsyntaxid.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/indra/newview/llsyntaxid.cpp b/indra/newview/llsyntaxid.cpp
index 1f8766eea2..bca3f0abc8 100644
--- a/indra/newview/llsyntaxid.cpp
+++ b/indra/newview/llsyntaxid.cpp
@@ -343,7 +343,7 @@ void LLSyntaxLua::initialize()
if (mInitialized) return;
loadDefaultKeywordsIntoLLSD();
-
+ loadLuaTypesIntoLLSD();
mInitialized = true;
}
@@ -361,3 +361,18 @@ void LLSyntaxLua::loadDefaultKeywordsIntoLLSD()
}
}
}
+
+void LLSyntaxLua::loadLuaTypesIntoLLSD()
+{
+ std::string fullFileSpec = gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, "types_lua_default.xml");
+ llifstream file(fullFileSpec.c_str());
+
+ if (file.good())
+ {
+ LLSD content;
+ if (LLSDSerialize::fromXML(content, file) != LLSDParser::PARSE_FAILURE)
+ {
+ mTypesXml = content;
+ }
+ }
+}