public void Navigate(IVBE vbe) { var selection = new Selection(Exception.LineNumber, Exception.Position, Exception.LineNumber, Exception.Position + Exception.OffendingSymbol.Text.Length - 1); if (!_moduleName.TryGetComponent(vbe, out var component)) { return; } using (component) using (var module = component.CodeModule) using (var pane = module.CodePane) { pane.Selection = selection; } }