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:
parent
a64e595416
commit
88e2936420
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue