================
@@ -730,6 +731,9 @@ void ClangdLSPServer::onSync(const NoParams &,
Callback<std::nullptr_t> Reply) {
void ClangdLSPServer::onDocumentDidOpen(
const DidOpenTextDocumentParams &Params) {
PathRef File = Params.textDocument.uri.file();
+ if (llvm::sys::fs::is_directory(File)) {
+ return;
+ }
----------------
vbvictor wrote:
See https://llvm.org/docs/CodingStandards.html
```suggestion
if (llvm::sys::fs::is_directory(File))
return;
```
https://github.com/llvm/llvm-project/pull/177834
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits