forked from qt-creator/qt-creator
CppEditor: Add actions for following a symbol to its type
Change-Id: I0b3913993b09b006e2d0431a68e98e21e8865898 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -832,7 +832,7 @@ void ClangdClient::followSymbol(TextDocument *document,
|
||||
d->followSymbol = nullptr;
|
||||
|
||||
const QTextCursor adjustedCursor = d->adjustedCursor(cursor, document);
|
||||
if (!resolveTarget) {
|
||||
if (followTo == FollowTo::SymbolDef && !resolveTarget) {
|
||||
symbolSupport().findLinkAt(document, adjustedCursor, callback, false);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user