Skip to content

Commit

Permalink
Merge pull request #296 from zachdaniel/add-new-plugin-behaviour
Browse files Browse the repository at this point in the history
fix: include new plugin behaviour in detection list
  • Loading branch information
lukaszsamson authored Oct 5, 2024
2 parents d1ebaad + 572c81c commit 1a23c9c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/elixir_sense/providers/plugins/module_store.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@ 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
{: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
Expand Down

0 comments on commit 1a23c9c

Please sign in to comment.