1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed GotoRefrenceAtLine for VS-style error locations

This commit is contained in:
Brian Fiete 2022-03-17 11:37:09 -07:00
parent a64e595416
commit 88e2936420

View file

@ -74,6 +74,22 @@ namespace IDE.ui
if ((filePath.Contains('\\')) || (filePath.Contains('/')))
break;
}
else
{
// filePath:(line,col)
int commaPos = lineStr.IndexOf(',');
if (commaPos != -1)
{
if ((Int32.Parse(lineStr.Substring(0, commaPos)) case .Ok(out errLine)) &&
(Int32.Parse(lineStr.Substring(commaPos + 1)) case .Ok(out errLineChar)))
{
filePath = scope:: String(selectionText, 0, startIdx - 1);
filePath.Trim();
if ((filePath.Contains('\\')) || (filePath.Contains('/')))
break;
}
}
}
}
else
{