diff options
| author | Yong He <yonghe@outlook.com> | 2024-11-19 13:47:37 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-19 13:47:37 -0800 |
| commit | f9c5fa7cbcd3f08565e1df7a7aa72dccf44cf9cc (patch) | |
| tree | e6fbb562818a1a8e0e6b75bac2a861ed3f3d3116 | |
| parent | 6e4473d1dc18d6a1d6c8e57df7af649f67719419 (diff) | |
LanuageServer: fix signature help param range. (#5593)
| -rw-r--r-- | source/slang/slang-ast-print.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<Decl>& declRef, List<Range<Index>>* auto addParamElement = [&](Type* type, Index elementIndex) { if (!first) + { sb << ", "; + rangeStart += 2; + } // Type part. { |
