The root Uri is the workspace location and will be useful in the context of
indexing. We could also add more things to InitializeParams in order to
configure Clangd for C/C++ sepecific extensions.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
clangd/ClangdServer.cpp | ||
---|---|---|
168 ↗ | (On Diff #116051) | NIT: remove {} around single-statement conditional branches. |
clangd/ClangdServer.h | ||
214 ↗ | (On Diff #116051) | NIT: missing full stop at the end of the comment. |
285 ↗ | (On Diff #116051) | Why do we need to store it with a trailing /? |
clangd/ProtocolHandlers.cpp | ||
26 ↗ | (On Diff #116051) | I would probably still call Callbacks.onInitialize in that case. |
test/clangd/protocol.test | ||
10 ↗ | (On Diff #116051) | Maybe create a separate test for rootUri and leave this to test rootPath? |
test/clangd/protocol.test | ||
---|---|---|
10 ↗ | (On Diff #116051) | A separate test file? I don't think it's possible to add another initialize request in the same test file. |
test/clangd/protocol.test | ||
---|---|---|
10 ↗ | (On Diff #116051) | Sure, in a separate file. |
clangd/ClangdServer.h | ||
---|---|---|
285 ↗ | (On Diff #116051) | For appending filenames to it. I thought it would be better to make it explicitly clear that it was always trailing with a / instead of checking everywhere when appending whether or not to add the /. |
clangd/ClangdServer.h | ||
---|---|---|
285 ↗ | (On Diff #116051) | I had an opposite use-case in mind: you need to recursively iterate over all files in that directory, and for that you'd probably need to have the directory name without trailing /. |
clangd/ClangdServer.h | ||
---|---|---|
285 ↗ | (On Diff #116051) | it works with fs::directory_iterator with the trailing /. But I don't mind either way. I'll specify it never has it then and add it where necessary. |
clangd/ClangdServer.h | ||
---|---|---|
285 ↗ | (On Diff #116051) | Sounds good, thanks. |
clangd/ClangdLSPServer.cpp | ||
---|---|---|
95 ↗ | (On Diff #116051) | NIT: remove {} around single-statement branches. |
clangd/ProtocolHandlers.cpp | ||
---|---|---|
28 ↗ | (On Diff #116582) | Dereferencing *IP will now fail if IP does not have a value. |