From f9c5fa7cbcd3f08565e1df7a7aa72dccf44cf9cc Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 19 Nov 2024 13:47:37 -0800 Subject: LanuageServer: fix signature help param range. (#5593) --- source/slang/slang-ast-print.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/slang/slang-ast-print.cpp b/source/slang/slang-ast-print.cpp index 8547fcda9..3e3d333c3 100644 --- a/source/slang/slang-ast-print.cpp +++ b/source/slang/slang-ast-print.cpp @@ -315,7 +315,10 @@ void ASTPrinter::addDeclParams(const DeclRef& declRef, List>* auto addParamElement = [&](Type* type, Index elementIndex) { if (!first) + { sb << ", "; + rangeStart += 2; + } // Type part. { -- cgit v1.2.3