Skip to content

Commit a31f47e

Browse files
authored
Fixed Uri length (#751)
1 parent 2056774 commit a31f47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/lsp/converters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func documentUriToFileName(uri lsproto.DocumentUri) string {
153153
if len(path) >= 4 {
154154
if nextSlash := strings.IndexByte(path[1:], '/'); nextSlash != -1 {
155155
if possibleDrive, _ := url.PathUnescape(path[1 : nextSlash+2]); strings.HasSuffix(possibleDrive, ":/") {
156-
return possibleDrive + path[len(possibleDrive)+3:]
156+
return possibleDrive + path[len(possibleDrive)+1:]
157157
}
158158
}
159159
}

0 commit comments

Comments
 (0)