Skip to content

Commit 6fd7f3c

Browse files
committed
Fix uri related type bug
1 parent 142bc3c commit 6fd7f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/protocol/initialize.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ end
110110
function InitializeParams(dict::Dict)
111111
InitializeParams(dict["processId"],
112112
haskey(dict, "clientInfo") ? InfoParams(dict["clientInfo"]) : missing,
113-
!haskey(dict, "rootPath") ? missing : dict["rootPath"] === nothing ? nothing : DocumentUri(dict["rootPath"]),
113+
!haskey(dict, "rootPath") ? missing : dict["rootPath"],
114114
# LS specification says this key should always exist, but neovim 0.5.1 doesn't seem to
115115
# send it (seems fixed in neovim 0.6). For now, just assume it might not exist here.
116116
(rootUri = get(dict, "rootUri", nothing); rootUri === nothing) ? nothing : DocumentUri(rootUri),

0 commit comments

Comments
 (0)