Skip to content

Commit 291abbf

Browse files
committed
Log error message when racer can't provide navigation
1 parent 30d686e commit 291abbf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

VisualRust/RustGoToDefinitionCommandHandler.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ protected override bool Execute(VSConstants.VSStd97CmdID command, uint options,
8989
}
9090
return true;
9191
}
92+
else
93+
{
94+
Utils.PrintToOutput(findOutput);
95+
}
9296

9397
}
9498
return false;

VisualRust/Utils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ internal static void PrintToOutput(string s, params object[] args)
262262
IVsOutputWindowPane pane;
263263
ErrorHandler.ThrowOnFailure(outWindow.CreatePane(paneGuid, "General", 1, 0));
264264
outWindow.GetPane(ref paneGuid, out pane);
265-
pane.OutputString(string.Format("[VisualRust]: " + s, args) + "\n");
265+
pane.OutputString(string.Format("[Visual Rust]: " + s, args));
266266
pane.Activate();
267267
}
268268

0 commit comments

Comments
 (0)