Sam McCall

Results 207 comments of Sam McCall

Can you explain a little how you would use this and how it differs from find-references? What do you mean by the "caller" of a struct member? As I understand,...

A few random thoughts... (Full disclosure: I did some brainstorming about this a few months ago and couldn't come up with anything good, hopefully y'all are more creative & understand...

(sorry, hit the wrong button) > Is there an opportunity to reuse this persisted BMI cache between the indexer and the preambles of open files? The "lite mode" ASTs (skip-function-bodies...

> I am not sure what you mean for indexing. Abstractly, do you mean a map from source files to the BMI? If yet, I think we're on the same...

Browsing the code [findSection()](https://github.com/redhat-developer/yaml-language-server/blob/b63cee842597e73ae692efd35cece4c7f9eb414a/src/languageservice/services/yamlSchemaService.ts#L176-L190) looks suspicious: it seems ids/anchors would have to be handled somewhere near there, rather than just assuming the hash fragment is a JSON pointer.

I'm puzzled by the behavior here. If I've opened a file and: - my editor tells yaml-language-server that the file is open, the language is YAML and the filename is...

I'm not sure this is a bug, just because I don't think there was ever an attempt to support OpenMP, just c++/c/ObjC. The syntax doesn't follow the principles of C-family...

@aerosayan it would be great if you could try this out and give feedback on what does/doesn't work. If it feels significantly better in practice, I'd vote for baking this...

I agree, we should improve this. Quick answers though: 1. The `Index` block is a sibling to `If`, not nested in it. `If` applies to the whole config fragment. So...

`.clangd` only applies to files that appears in your source tree, but --check without args tests a random temporary file (`/var/folders/t2/...`) so never even attempts to load your .clangd file....