Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Fixing file hier. (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
berkant authored and keegancsmith committed Aug 17, 2018
1 parent bf90fac commit 7df19dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion langserver/handler_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (h *HandlerCommon) Reset(rootURI lsp.DocumentURI) error {
return errors.New("unable to reset a server that is shutting down")
}
if !util.IsURI(rootURI) {
return fmt.Errorf("invalid root path %q: must be file:/// URI", rootURI)
return fmt.Errorf("invalid root path %q: must be file:// URI", rootURI)
}
h.RootFSPath = util.UriToPath(rootURI) // retain leading slash
return nil
Expand Down
2 changes: 1 addition & 1 deletion langserver/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func IsURI(s lsp.DocumentURI) bool {
}

func isURI(s string) bool {
return strings.HasPrefix(s, "file:///")
return strings.HasPrefix(s, "file://")
}

// PathToURI converts given absolute path to file URI
Expand Down

0 comments on commit 7df19dc

Please sign in to comment.