diff options
| author | Yong He <yonghe@outlook.com> | 2025-07-07 14:54:54 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-07 21:54:54 +0000 |
| commit | 3865a6596afca1c193eb17bbb74008077096e7c3 (patch) | |
| tree | 0d04cab0ad720b75027ddcee855daf6f6eba5d57 /tools | |
| parent | 7119d9cb487d866d1c25e55eafa03aca6e5e52e3 (diff) | |
Language server: sort completion candidate by relevance. (#7626)
* Language server: sort completion candidate by relevance.
* Small adjustment.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/slang-test/slang-test-main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/slang-test/slang-test-main.cpp b/tools/slang-test/slang-test-main.cpp index 5e17513d5..14c9b52ef 100644 --- a/tools/slang-test/slang-test-main.cpp +++ b/tools/slang-test/slang-test-main.cpp @@ -2107,6 +2107,8 @@ TestResult runLanguageServerTest(TestContext* context, TestInput& input) actualOutputSB << item.label << ": " << item.kind << " " << item.detail << " "; for (auto ch : item.commitCharacters) actualOutputSB << ch; + if (item.sortText.hasValue) + actualOutputSB << " sort(" << item.sortText.value << ")"; actualOutputSB << "\n"; } } |
