Skip to content

Commit 57712d0

Browse files
committed
Parse for find symbol
1 parent e4b702d commit 57712d0

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

RetailCoder.VBE/UI/Command/FindSymbolCommand.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public FindSymbolCommand(IVBE vbe, RubberduckParserState state, DeclarationIconC
2626
_state = state;
2727
_iconCache = iconCache;
2828
}
29-
29+
3030
public override RubberduckHotkey Hotkey
3131
{
3232
get { return RubberduckHotkey.FindSymbol; }
@@ -39,6 +39,14 @@ protected override void OnExecute(object parameter)
3939
{
4040
viewModel.Navigate += (sender, e) => { view.Hide(); };
4141
viewModel.Navigate += OnDialogNavigate;
42+
43+
bool needsAParse = _state.IsDirty();
44+
if (needsAParse)
45+
{
46+
//TODO: Implement parse.
47+
48+
}
49+
4250
view.ShowDialog();
4351
_navigateCommand.Execute(_selected);
4452
}

RetailCoder.VBE/UI/FindSymbol/FindSymbolDialog.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public FindSymbolDialog()
2828
InitializeComponent();
2929

3030
Text = string.Format("Rubberduck - {0}", RubberduckUI.FindSymbolDialog_Caption);
31+
32+
3133
}
3234

3335
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)

0 commit comments

Comments
 (0)