Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
Try to deal with issue #543
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdufault committed May 8, 2018
1 parent cede3b8 commit d87c6b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lsp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ struct UriCache {
if (cache.TryGet(path, &resolved))
return resolved;
LOG_S(INFO) << "No cached URI for " << path;

// If we do not have the value in the cache, try to renormalize it.
// Otherwise we will return paths with all lower-case letters which may
// break vscode.
optional<AbsolutePath> normalized = NormalizePath(path.path);
if (normalized)
return normalized->path;

return path;
}

Expand Down

0 comments on commit d87c6b8

Please sign in to comment.