forked from qt-creator/qt-creator
LSP: take account of resolveTarget when checking for links
Return a link to the word under cursor when the target should not get resolved. This results in a highlight of the text the mouse cursor is positioned on when pressing ctrl to follow a link. Change-Id: Iaf1ba289644ed3e3fc062b418dd2fa3bfa8da6ad Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -97,7 +97,7 @@ private:
|
||||
void documentContentsSaved(Core::IDocument *document);
|
||||
void documentWillSave(Core::IDocument *document);
|
||||
void findLinkAt(TextEditor::TextDocument *document, const QTextCursor &cursor,
|
||||
Utils::ProcessLinkCallback callback);
|
||||
Utils::ProcessLinkCallback callback, const bool resolveTarget);
|
||||
void findUsages(TextEditor::TextDocument *document, const QTextCursor &cursor);
|
||||
|
||||
void projectAdded(ProjectExplorer::Project *project);
|
||||
|
||||
Reference in New Issue
Block a user