fix: include new plugin behaviour in detection list #296
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The plugin module was renamed from
ElixirSense.Plugin
toElixirLS.LanguageServer.Plugin
, toElixirSense.Providers.Plugin
(both renames broke spark's plugin, not a big deal but if you can try not to rename those modules w/o letting me know so I can get ahead of it w/ a release of spark, that would be great.)However, the new behaviour module is not in the list used to detect a plugin, so I have to use a behaviour that doesn't exist.
Additionally, module attributes from
.module_info
that are persisted appear (or can appear) as lists, and so we need to update the way we check for those flags.This stuff has a lot of cruft, and I fully understand if we need to change it in the future, and I'm happy to participate in whatever changes we want to make. I know that there are likely changes coming to language servers soon, my only request is that I'm given a chance to justify the plugin logic's existence. It truly is a huge quality of life improvement for Ash users :)