From 93661fa7634022ed9464e1407cd30e054a7f641d Mon Sep 17 00:00:00 2001 From: Lukasz Samson Date: Thu, 12 Dec 2024 21:44:27 +0100 Subject: [PATCH] apply changes to param options schema --- .../providers/completion/reducers/params.ex | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/elixir_sense/providers/completion/reducers/params.ex b/lib/elixir_sense/providers/completion/reducers/params.ex index da407549..824ea202 100644 --- a/lib/elixir_sense/providers/completion/reducers/params.ex +++ b/lib/elixir_sense/providers/completion/reducers/params.ex @@ -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 """ @@ -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 @@ -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: ""