d-language-server / dls

A Language Server implementation for D
http://dls.dub.pm
106 stars 14 forks source link

Completions not Working for Function Parameters? #49

Open ghost opened 5 years ago

ghost commented 5 years ago

There's no completion after typing "(", it doesn't keep the details of the function visible. Also when using Ctrl+Space it doesn't seem to fetch any completions. Most other LSP show the completions of the context of where the cursor is. It seems to just use the default VS Code list instead.

compl

LaurentTreguier commented 5 years ago

I don't think DCD has ever provided completions when there is no word beginning to work with. Did this work before ? I never trigger autocompletion like this, so I don't know if this is a regression or if it never worked.

ghost commented 5 years ago

Hmm yah, don't think it is implemented in DCD. The function calltips though should be.

rwols commented 5 years ago

Just FYI this is supposed to trigger textDocument/signatureHelp. A language server provides the trigger characters for it to the client (in this case I presume ( and ,) and then the client is supposed to request textDocument/signatureHelp. The server should respond with a list of overloads/params.