> From my rather limited (10 mins) go knowledge func (bar int) string is the 
> signature of a [function](https://go.dev/ref/spec#Function_types) that takes 
> an int and returns a string. And when the programmer declared it they 
> probably didn't even specify the string and it was inferred.

I was referring to @kugel- 's idea of calling `textDocument/documentSymbol` and 
placing the result into the TMTag structures. But here we'd have to deal with 
server-specific meaning of
```
        /**
         * More detail for this symbol, e.g the signature of a function.
         */
        detail?: string;
``` 
and would have to convert it to the form that the rest of TM expects and I 
really don't think we should have code like
```
if (clangd) {
...
} else if (pylsp) {
...
} else if (gopls) {
...
}
```
in Geany (moreover, it may even depend on the server version used).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3571#issuecomment-1793502926
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3571/[email protected]>

Reply via email to