Skip to content

Conversation

jwortmann
Copy link
Contributor

Closes #1310.

Disclaimer: only tested on Windows.

@@ -251,8 +251,10 @@ function initialized_notification(params::InitializedParams, server::LanguageSer
file_full_path = joinpath(server.env_path, file)
uri = filepath2uri(file_full_path)
if isfile(file_full_path)
# TODO properly normalize drive letters in paths
file_full_path_lowerfirst = lowercasefirst(file_full_path)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work for UNC paths, i.e. paths that start with \\SERVER\share\..., and we also shouldn't do this on Linux. Maybe something like

@static if Sys.iswindows()
  if length(file_full_path) > 1 && isletter(file_full_path[1]) && file_full_path[2] == ':'
    file_full_path = lowercasefirst(file_full_path)
  end
end

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in ba36759

@davidanthoff davidanthoff merged commit d92f409 into julia-vscode:master Aug 18, 2024
25 of 27 checks passed
@davidanthoff
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server doesn't initialize
2 participants