Elixir-LS/VSCode issue with some things doubled up?

I’ve searched the forum and the elixir-ls issues page and haven’t seen this mentioned. Has anyone else seen an issue where certain elements in VS Code are doubled?

For example if I open a file in which I define a single module, in the VS Code outline I see this:

Also format on save is broken for a similar issue. I ether get a message about more than one formatter being available (I’ve not been able to really duplicate this message); or it just silently fails, but using the “Format document with” option brings me this:

where only the bottom of the two work.

I also see it in the code hover popups…

I should note that this is using the remote development features of VS Code, so it’s conceivable that’s a contributing aspect.

Anyway, if someone else has dealt with this before and has any ideas what could be causing this, I’d appreciate any pointers.

I think I’ve got this figured out.

I believe this issue comes up because of the way I had my VS Code workspace folders structured. My project is built using a mono-repo style collection of smaller, but individual, Elixir projects. In VS Code, each Elixir project is its own top level workspace folder… but I also had the main project directory as a workspace folder as well; all of the elixir projects live in subdirectories of this main project directory.

Apparently this was enough to confuse some of the Elixir VS Code extensions. In essence I was getting an ElixirLS instance for the individual project workspace folder and then, after a time/some unknown action of mine, I get another instance running for the main project folder in the workspace.

Removing the main project folder from the workspace immediately closed the duplicate ElixirLS items I was seeing in the various places in VS Code. This is a bit of a minor nuisance since there are files in that root I want to work with from time to time… but it’s rare and something I can absolutely work around with minimal discomfort.

I’ve not see this stick for very long, so I might be wrong, but my gut feeling is that I understand what I’ve done to make this problem possible.