We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e35174 commit 34c6c15Copy full SHA for 34c6c15
internal/ls/converters.go
@@ -163,7 +163,7 @@ func DocumentURIToFileName(uri lsproto.DocumentUri) string {
163
if len(path) >= 4 {
164
if nextSlash := strings.IndexByte(path[1:], '/'); nextSlash != -1 {
165
if possibleDrive, _ := url.PathUnescape(path[1 : nextSlash+2]); strings.HasSuffix(possibleDrive, ":/") {
166
- return possibleDrive + path[len(possibleDrive)+1:]
+ return possibleDrive + path[nextSlash+2:]
167
}
168
169
0 commit comments