Skip to content

Commit

Permalink
- Fixed a bug that prevented Navi Bar from navigating to external par…
Browse files Browse the repository at this point in the history
…tial files
  • Loading branch information
wmjordan committed Jan 3, 2019
1 parent 042b35f commit 2a65b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Codist/NaviBar/CSharpBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ void SelectOrGoToSource() {
void SelectOrGoToSource(SyntaxNode node) {
node = _Bar._SemanticContext.RelocateDeclarationNode(node) ?? node;
var span = node.FullSpan;
if (span.Contains(_Bar._SemanticContext.Position)) {
if (span.Contains(_Bar._SemanticContext.Position) && node.SyntaxTree.FilePath == _Bar._SemanticContext.Document.FilePath) {
_Bar._View.SelectNode(node, Keyboard.Modifiers != ModifierKeys.Control);
}
else {
Expand Down

0 comments on commit 2a65b0b

Please sign in to comment.