From 44288303ca9cd0dab07ddf99c663c03a794d5536 Mon Sep 17 00:00:00 2001 From: Yaroslav Veremenko Date: Thu, 26 Aug 2021 22:15:36 -0600 Subject: [PATCH] Return full path to the source file to enable problem matcher work in VSCode --- src/wiz/utility/source_location.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wiz/utility/source_location.cpp b/src/wiz/utility/source_location.cpp index a6e3e68..85ba186 100644 --- a/src/wiz/utility/source_location.cpp +++ b/src/wiz/utility/source_location.cpp @@ -28,8 +28,8 @@ namespace wiz { canonicalPath(expandedPath) {} std::string SourceLocation::toString() const { - return displayPath.getLength() != 0 - ? displayPath.toString() + (line > 0 ? ":" + std::to_string(line) : "") + return canonicalPath.getLength() != 0 + ? canonicalPath.toString() + (line > 0 ? ":" + std::to_string(line) : "") : ""; } } \ No newline at end of file