This is an archive of the discontinued LLVM Phabricator instance.

[clangd-vscode] Do not customize uri converters in vscode
ClosedPublic

Authored by kadircet on May 23 2019, 12:08 AM.

Details

Summary

Clangd is already resolving symlinks on the server side, therefore
there is no more need to handle it in client side. This was also resulting in
breakages whenever index contained a symbol coming from a non-existent file(like
a generated file), e.g. during workspace symbols whole response was dropped
since stat had failed.

Diff Detail

Event Timeline

kadircet created this revision.May 23 2019, 12:08 AM
ilya-biryukov accepted this revision.May 23 2019, 1:26 AM

LGTM, this improves the paths produced for generated files inside bazel-genfiles, we now point to the /my/project/bazel-genfiles/path/to/some.proto.h instead of /path/to/bazel/internals/<hashes>/path/to/some.proto.h

clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts
3 ↗(On Diff #200877)

NIT: remove this import, we don't need it anymore

This revision is now accepted and ready to land.May 23 2019, 1:26 AM
kadircet updated this revision to Diff 200909.May 23 2019, 2:54 AM
kadircet marked an inline comment as done.
  • Delete unusued import
This revision was automatically updated to reflect the committed changes.