diff options
Diffstat (limited to 'src/libs/languageserverprotocol/lsptypes.h')
-rw-r--r-- | src/libs/languageserverprotocol/lsptypes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/languageserverprotocol/lsptypes.h b/src/libs/languageserverprotocol/lsptypes.h index 239d40f662..3a9adb1b0d 100644 --- a/src/libs/languageserverprotocol/lsptypes.h +++ b/src/libs/languageserverprotocol/lsptypes.h @@ -117,6 +117,8 @@ public: bool isLeftOf(const Range &other) const { return isEmpty() || other.isEmpty() ? end() < other.start() : end() <= other.start(); } + QTextCursor toSelection(QTextDocument *doc) const; + bool isValid() const override { return JsonObject::contains(startKey) && JsonObject::contains(endKey); } }; @@ -556,7 +558,6 @@ enum class SymbolKind { TypeParameter = 26, LastSymbolKind = TypeParameter, }; -using SymbolStringifier = std::function<QString(SymbolKind, const QString &, const QString &)>; namespace CompletionItemKind { enum Kind { |