Skip to content

Commit

Permalink
fix: typo in file:// for import definitions
Browse files Browse the repository at this point in the history
I'm guessing it works in Emacs, but with the typo, definitions were completely broken for vscode
All good now!

Signed-off-by: Julien Duchesne <[email protected]>
  • Loading branch information
julienduchesne authored and jdbaldry committed Nov 7, 2021
1 parent cda483e commit 6b79416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (s *server) Definition(ctx context.Context, params *protocol.DefinitionPara
fmt.Fprintln(os.Stderr, err)
return nil, err
}
return protocol.Definition{{URI: "file:///" + protocol.DocumentURI(foundAt)}}, nil
return protocol.Definition{{URI: "file://" + protocol.DocumentURI(foundAt)}}, nil
}

// The point is on a variable, the definition of which is the first definition
Expand Down

0 comments on commit 6b79416

Please sign in to comment.