From c4e42ab49019bcd9f05217abe8e5d4c083622473 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 22 Jan 2024 13:13:49 -0800 Subject: Fix language server for VS. (#3473) Co-authored-by: Yong He --- source/slang/slang-language-server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-language-server.cpp') diff --git a/source/slang/slang-language-server.cpp b/source/slang/slang-language-server.cpp index 12151441c..2c24ba6e5 100644 --- a/source/slang/slang-language-server.cpp +++ b/source/slang/slang-language-server.cpp @@ -1974,7 +1974,7 @@ SlangResult LanguageServer::queueJSONCall(JSONRPCCall call) else if (call.method == SemanticTokensParams::methodName) { SemanticTokensParams args; - SLANG_RETURN_ON_FAIL(m_connection->toNativeArgsOrSendError(call.params, &args, call.id)); + SLANG_RETURN_ON_FAIL(m_connection->checkArrayObjectWrap( call.params, GetRttiInfo::get(), &args, call.id )); cmd.semanticTokenArgs = args; } else if (call.method == SignatureHelpParams::methodName) @@ -1995,7 +1995,7 @@ SlangResult LanguageServer::queueJSONCall(JSONRPCCall call) else if (call.method == DocumentSymbolParams::methodName) { DocumentSymbolParams args; - SLANG_RETURN_ON_FAIL(m_connection->toNativeArgsOrSendError(call.params, &args, call.id)); + SLANG_RETURN_ON_FAIL(m_connection->checkArrayObjectWrap( call.params, GetRttiInfo::get(), &args, call.id )); cmd.documentSymbolArgs = args; } else if (call.method == DocumentFormattingParams::methodName) -- cgit v1.2.3