We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b4e560 commit 2b39f5aCopy full SHA for 2b39f5a
handler/uri.go
@@ -41,7 +41,9 @@ func pathToURI(path string) lsp.DocumentURI {
41
}
42
segments := strings.Split(path, string(filepath.Separator))
43
for _, segment := range segments {
44
- urlObj.Path += "/" + url.PathEscape(segment)
+ if len(segment) > 0 {
45
+ urlObj.Path += "/" + url.PathEscape(segment)
46
+ }
47
48
return lsp.DocumentURI(urlObj.String())
49
0 commit comments