diff options
| author | Rider Linden <rider@lindenlab.com> | 2025-10-10 12:28:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-10 12:28:41 -0700 |
| commit | dd9ea09d50ef5a4992d2ae29d2970ce05998bad0 (patch) | |
| tree | d4500ea28b20dcb0aa274b3bbc0ad10585634193 /indra/newview/llsyntaxid.cpp | |
| parent | 0b7bc35131ce4a526c1e696904c4e8332e1b0fe9 (diff) | |
| parent | c21fda0b79c2e18c0dccf9e88524a716b57b94bf (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.cpp | 17 |
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; + } + } +} |
