Skip to content

Commit 6b79416

Browse files
julienduchesnejdbaldry
authored andcommitted
fix: typo in file:// for import definitions
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]>
1 parent cda483e commit 6b79416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func (s *server) Definition(ctx context.Context, params *protocol.DefinitionPara
164164
fmt.Fprintln(os.Stderr, err)
165165
return nil, err
166166
}
167-
return protocol.Definition{{URI: "file:///" + protocol.DocumentURI(foundAt)}}, nil
167+
return protocol.Definition{{URI: "file://" + protocol.DocumentURI(foundAt)}}, nil
168168
}
169169

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

0 commit comments

Comments
 (0)