Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/requests/init.jl
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@
file_full_path = joinpath(server.env_path, file)
uri = filepath2uri(file_full_path)
if isfile(file_full_path)
@static if Sys.iswindows()

Check warning on line 254 in src/requests/init.jl

View check run for this annotation

Codecov / codecov/patch

src/requests/init.jl#L254

Added line #L254 was not covered by tests
# Normalize drive letter to lowercase
if length(file_full_path) > 1 && isletter(file_full_path[1]) && file_full_path[2] == ':'
file_full_path = lowercasefirst(file_full_path)

Check warning on line 257 in src/requests/init.jl

View check run for this annotation

Codecov / codecov/patch

src/requests/init.jl#L256-L257

Added lines #L256 - L257 were not covered by tests
end
end
# Only add again if outside of the workspace folders
if all(i->!startswith(file_full_path, i), server.workspaceFolders)
if haskey(server._files_from_disc, uri)
Expand Down
Loading