Skip to content

Commit 1a6fb00

Browse files
committed
Merge pull request #158 from vosen/master
Quote the file path passed to the racer when invoking "Go to definition"
2 parents 335b7d3 + 3b81bcf commit 1a6fb00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

VisualRust/RustGoToDefinitionCommandHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected override bool Execute(VSConstants.VSStd97CmdID command, uint options,
6565
// line.LineNumber uses 0 based indexing
6666
int row = line.LineNumber + 1;
6767
int column = snapshotPoint.Position - line.Start.Position;
68-
var args = String.Format("find-definition {0} {1} {2}", row, column, tmpFile.Path);
68+
var args = String.Format("find-definition {0} {1} \"{2}\"", row, column, tmpFile.Path);
6969
var findOutput = Racer.RacerSingleton.Run(args);
7070
if (Regex.IsMatch(findOutput, "^MATCH"))
7171
{

0 commit comments

Comments
 (0)