emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.03k stars 141 forks source link

Method signature instead of sideline ? #247

Open testinggithub1222 opened 5 years ago

testinggithub1222 commented 5 years ago

I saw that this package is working very well in lsp-java which provide a very good method signature on the sideline. But what about if we can have an inline message signature instead? For example, instead of System.out.print("param")=> System.out.print(String: "param") where String is data type signature.

yyoncho commented 5 years ago

In order to do that we need server side support unless we want to do the parsing of arguments client side which is not in the scope of the project(the language intelligence must be implemented on the server). AFAIK at some point language servers will have a method for lightweight AST which will enable such functionality but until then we cannot implement this feature(please correct me if I have understood you incorrectly).

testinggithub1222 commented 5 years ago

Hi @yyoncho, What i really expected is method signature that was shown in intellij ide. I am not sure if your saying is right or wrong because i am not sure much about it.

yyoncho commented 5 years ago

@testinggithub1222 can you post a screenshot?

testinggithub1222 commented 5 years ago

baqcg

Please check this @yyoncho

yyoncho commented 5 years ago

We need server support for this feature, but definitely in the scope once there is a way to be implemented.

brotzeit commented 4 years ago

Is rust the only language that provides this feature in lsp-mode ? Maybe we should think of a more general way to add inlay hints. Do we put it into lsp-mode or lsp-ui ?

yyoncho commented 4 years ago

AFAIK rust is the only server providing such functionality. I will put in lsp-mode - lsp-ui is reserved for alternative fancier GUI.