mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Improved errors on GoToDefinition
This commit is contained in:
parent
15c3ad98de
commit
a5e0f34549
4 changed files with 13 additions and 8 deletions
|
@ -3735,15 +3735,20 @@ namespace IDE
|
|||
mInDisassemblyView = true;
|
||||
}
|
||||
|
||||
public void GoToDefinition()
|
||||
public void GoToDefinition(bool force)
|
||||
{
|
||||
var sourceViewPanel = GetActiveSourceViewPanel();
|
||||
if (sourceViewPanel != null)
|
||||
{
|
||||
int line;
|
||||
int lineChar;
|
||||
sourceViewPanel.mEditWidget.Content.GetCursorLineChar(out line, out lineChar);
|
||||
if (!force)
|
||||
{
|
||||
if ((!sourceViewPanel.mIsBeefSource) || (sourceViewPanel.mProjectSource == null))
|
||||
return;
|
||||
}
|
||||
|
||||
if ((!sourceViewPanel.mEditWidget.Content.GetCursorLineChar(var line, var lineChar)) && (!force))
|
||||
return;
|
||||
|
||||
if (!sourceViewPanel.HasTextAtCursor())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue