From 769c058dc06edf2da88282a648e8db603cce50f0 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Sat, 14 Sep 2024 16:37:25 -0400 Subject: [PATCH 1/2] fix: include new plugin behaviour in detection list --- lib/elixir_sense/providers/plugins/module_store.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/elixir_sense/providers/plugins/module_store.ex b/lib/elixir_sense/providers/plugins/module_store.ex index b404076f..932eacc2 100644 --- a/lib/elixir_sense/providers/plugins/module_store.ex +++ b/lib/elixir_sense/providers/plugins/module_store.ex @@ -51,7 +51,8 @@ defmodule ElixirSense.Providers.Plugins.ModuleStore do module.module_info(:attributes) |> Enum.any?(fn {:behaviour, behaviours} when is_list(behaviours) -> - ElixirSense.Plugin in behaviours or ElixirLS.LanguageServer.Plugin in behaviours + ElixirSense.Plugin in behaviours or ElixirLS.LanguageServer.Plugin in behaviours or + ElixirSense.Providers.Plugin in behaviours {:is_elixir_sense_plugin, true} -> true From 572c81c4046e12857b734abc28aa14b7d1f6f595 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Sat, 14 Sep 2024 16:44:43 -0400 Subject: [PATCH 2/2] fix: check for proper patterns for persisted module attributes --- lib/elixir_sense/providers/plugins/module_store.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/elixir_sense/providers/plugins/module_store.ex b/lib/elixir_sense/providers/plugins/module_store.ex index 932eacc2..9500499e 100644 --- a/lib/elixir_sense/providers/plugins/module_store.ex +++ b/lib/elixir_sense/providers/plugins/module_store.ex @@ -54,11 +54,11 @@ defmodule ElixirSense.Providers.Plugins.ModuleStore do ElixirSense.Plugin in behaviours or ElixirLS.LanguageServer.Plugin in behaviours or ElixirSense.Providers.Plugin in behaviours - {:is_elixir_sense_plugin, true} -> - true + {:is_elixir_sense_plugin, value} -> + true in List.wrap(value) - {:is_elixir_ls_plugin, true} -> - true + {:is_elixir_ls_plugin, value} -> + true in List.wrap(value) _ -> false