Skip to content

Commit

Permalink
apply changes to param options schema
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Dec 12, 2024
1 parent 46bfe27 commit 93661fa
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/elixir_sense/providers/completion/reducers/params.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ defmodule ElixirSense.Providers.Completion.Reducers.Params do
subtype: :keyword | :atom,
name: String.t(),
origin: String.t(),
type_spec: String.t(),
doc: String.t(),
expanded_spec: String.t()
type_spec: String.t()
}

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

%{
doc: "",
expanded_spec: expanded_spec,
name: name |> Atom.to_string(),
origin: inspect(mod),
origin: "#{inspect(mod)}.#{fun}",
type: :param_option,
subtype: :keyword,
type_spec: expanded_spec
Expand All @@ -69,10 +65,8 @@ defmodule ElixirSense.Providers.Completion.Reducers.Params do
if options_so_far == [] and cursor_at_option == true and
Matcher.match?(inspect(name), hint) do
%{
doc: "",
expanded_spec: "",
name: name |> Atom.to_string(),
origin: inspect(mod),
origin: "#{inspect(mod)}.#{fun}",
type: :param_option,
subtype: :atom,
type_spec: ""
Expand Down

0 comments on commit 93661fa

Please sign in to comment.