File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -251,10 +251,14 @@ function initialized_notification(params::InitializedParams, server::LanguageSer
251251 file_full_path = joinpath (server. env_path, file)
252252 uri = filepath2uri (file_full_path)
253253 if isfile (file_full_path)
254- # TODO properly normalize drive letters in paths
255- file_full_path_lowerfirst = lowercasefirst (file_full_path)
254+ @static if Sys. iswindows ()
255+ # Normalize drive letter to lowercase
256+ if length (file_full_path) > 1 && isletter (file_full_path[1 ]) && file_full_path[2 ] == ' :'
257+ file_full_path = lowercasefirst (file_full_path)
258+ end
259+ end
256260 # Only add again if outside of the workspace folders
257- if all (i-> ! startswith (file_full_path_lowerfirst , i), server. workspaceFolders)
261+ if all (i-> ! startswith (file_full_path , i), server. workspaceFolders)
258262 if haskey (server. _files_from_disc, uri)
259263 error (" This should not happen" )
260264 end
You can’t perform that action at this time.
0 commit comments