SublimErl icon indicating copy to clipboard operation
SublimErl copied to clipboard

Use specs for autocomplete

Open archydragon opened this issue 11 years ago • 0 comments

Feature request. E.g. I have the following function:

-spec cmd(Command :: binary(), Params :: list()) -> {ok, Reply :: binary()} | error.
cmd(<<"help">>, []) ->
    % something goes here
cmd(<<"status">>, Message) ->
    % something goes here too

But it is autocompleted as cmd(Param1, Message). Why don't use specs for readable parameter names if they're available?

archydragon avatar Dec 14 '13 08:12 archydragon