-
Notifications
You must be signed in to change notification settings - Fork 107
Description
I noticed that ElixirLS hangs on "Running Code Actions and Formatters..." during my development workflow. It happens especially when doing a search and replace that affects many files.
Sometimes, even when saving a single file, ElixirLS hangs for 10 seconds or so with the following notifications:
- Running 'ElixirLS: Elixir support and debugger' Formatter (configure).
- Saving 'filename': Running Code Actions and Formatters...
When affecting several files, there is the same set of notifications for each file. Therefore, clicking Skip of each notifications (with the idea of running a single mix format
later on) is not practical solution.
Despite several hours spent on it, I cannot find a way to properly reproduce the issue and provide a repo for testing. But the project size seems to affect this.
- My project size:
$ find lib -type f -name '*.ex' | wc -l
516
$ find test -type f -name '*.exs' | wc -l
616
- My config:
$ cat .vscode/settings.json
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"prettier.ignorePath": "assets/.prettierignore",
"eslint.workingDirectories": [{ "mode": "auto" }],
"[elixir]": {
"editor.defaultFormatter": "JakeBecker.elixir-ls"
}
}
$ cat .formatter.exs
[
import_deps: [:ecto, :ecto_sql, :phoenix],
inputs: ["*.{ex,exs}", "{config,lib,test}/**/*.{ex,exs}", "priv/*/seeds.exs"]
]
-
ElixirLS: 0.29.3
-
VSCodium:
Version: 1.104.16282
Commit: b18126fb99b60533fc069575d08d72758cd90fed
Date: 2025-09-18T18:33:00.492Z
Electron: 37.3.1
ElectronBuildId: undefined
Chromium: 138.0.7204.235
Node.js: 22.18.0
V8: 13.8.258.31-electron.0
OS: Linux x64 6.12.50