forked from qt-creator/qt-creator
ProjectExplorer: Support column numbers in file path linkification
... for task details. As a result, clicking on a linkified file path inside a task in the issues pane will now open the editor at the column specified in the compiler output, if there is one. We used to consider only the line. Change-Id: Idccba33b5b33029abfa8f29c7888af6c7f2e1622 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -237,7 +237,7 @@ OutputLineParser::Result CustomParser::hasMatch(
|
||||
const int lineNumber = match.captured(expression.lineNumberCap()).toInt();
|
||||
const QString message = match.captured(expression.messageCap());
|
||||
LinkSpecs linkSpecs;
|
||||
addLinkSpecForAbsoluteFilePath(linkSpecs, fileName, lineNumber, match,
|
||||
addLinkSpecForAbsoluteFilePath(linkSpecs, fileName, lineNumber, -1, match,
|
||||
expression.fileNameCap());
|
||||
scheduleTask(CompileTask(taskType, message, fileName, lineNumber), 1);
|
||||
return {Status::Done, linkSpecs};
|
||||
|
||||
Reference in New Issue
Block a user