Skip to content

Commit 1a23c9c

Browse files
authored
Merge pull request #296 from zachdaniel/add-new-plugin-behaviour
fix: include new plugin behaviour in detection list
2 parents d1ebaad + 572c81c commit 1a23c9c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/elixir_sense/providers/plugins/module_store.ex

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,14 @@ defmodule ElixirSense.Providers.Plugins.ModuleStore do
5151
module.module_info(:attributes)
5252
|> Enum.any?(fn
5353
{:behaviour, behaviours} when is_list(behaviours) ->
54-
ElixirSense.Plugin in behaviours or ElixirLS.LanguageServer.Plugin in behaviours
54+
ElixirSense.Plugin in behaviours or ElixirLS.LanguageServer.Plugin in behaviours or
55+
ElixirSense.Providers.Plugin in behaviours
5556

56-
{:is_elixir_sense_plugin, true} ->
57-
true
57+
{:is_elixir_sense_plugin, value} ->
58+
true in List.wrap(value)
5859

59-
{:is_elixir_ls_plugin, true} ->
60-
true
60+
{:is_elixir_ls_plugin, value} ->
61+
true in List.wrap(value)
6162

6263
_ ->
6364
false

0 commit comments

Comments
 (0)