Skip to content

Commit 93661fa

Browse files
committed
apply changes to param options schema
1 parent 46bfe27 commit 93661fa

File tree

1 file changed

+3
-9
lines changed
  • lib/elixir_sense/providers/completion/reducers

1 file changed

+3
-9
lines changed

lib/elixir_sense/providers/completion/reducers/params.ex

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ defmodule ElixirSense.Providers.Completion.Reducers.Params do
1212
subtype: :keyword | :atom,
1313
name: String.t(),
1414
origin: String.t(),
15-
type_spec: String.t(),
16-
doc: String.t(),
17-
expanded_spec: String.t()
15+
type_spec: String.t()
1816
}
1917

2018
@doc """
@@ -54,10 +52,8 @@ defmodule ElixirSense.Providers.Completion.Reducers.Params do
5452
expanded_spec = Introspection.to_string_with_parens(type)
5553

5654
%{
57-
doc: "",
58-
expanded_spec: expanded_spec,
5955
name: name |> Atom.to_string(),
60-
origin: inspect(mod),
56+
origin: "#{inspect(mod)}.#{fun}",
6157
type: :param_option,
6258
subtype: :keyword,
6359
type_spec: expanded_spec
@@ -69,10 +65,8 @@ defmodule ElixirSense.Providers.Completion.Reducers.Params do
6965
if options_so_far == [] and cursor_at_option == true and
7066
Matcher.match?(inspect(name), hint) do
7167
%{
72-
doc: "",
73-
expanded_spec: "",
7468
name: name |> Atom.to_string(),
75-
origin: inspect(mod),
69+
origin: "#{inspect(mod)}.#{fun}",
7670
type: :param_option,
7771
subtype: :atom,
7872
type_spec: ""

0 commit comments

Comments
 (0)