================
@@ -1027,6 +1031,10 @@ flattenSymbolHierarchy(llvm::ArrayRef<DocumentSymbol> 
Symbols,
 void ClangdLSPServer::onDocumentSymbol(const DocumentSymbolParams &Params,
                                        Callback<llvm::json::Value> Reply) {
   URIForFile FileURI = Params.textDocument.uri;
+  if (llvm::sys::fs::is_directory(FileURI.file())) {
----------------
HighCommander4 wrote:

We shouldn't need to change `documentSymbol`. Once we've refused to open the 
file in `didOpen`, all further requests related to the file such as 
`documentSymbol` should fail given our existing checks.

https://github.com/llvm/llvm-project/pull/177834
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to