summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodegen_test.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2021-08-26 12:21:34 +0200
committerEike Ziller <eike.ziller@qt.io>2021-08-30 08:16:55 +0000
commita087bda44201228f046b8481da6fba5c38322c02 (patch)
tree7a7fbe58a95395c6aadee3b2d3d23e8146fac0c5 /src/plugins/cpptools/cppcodegen_test.cpp
parent940a203d937566f43f6862769da0c322f55fb0e0 (diff)
downloadqt-creator-a087bda44201228f046b8481da6fba5c38322c02.tar.gz
LSP: Do not sort completion items if none sets sortText
It is unclear if and how the client should order completion items, but at least haskell-language-server provides a sensibly sorted list (not alphabetically) and doesn't set a "sortText". Sorting the items alphabetically by label messes up the prioritization of "best" matches that the server correctly does. Only sort, if any item has a sortText. Task-number: QTCREATORBUG-26114 Change-Id: I55a966763e21ba8b85085a087c37e6005438d4e3 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppcodegen_test.cpp')
0 files changed, 0 insertions, 0 deletions