Skip to content

Commit

Permalink
Merge pull request elixir-editors#23 from axelson/watch-live-view-eex…
Browse files Browse the repository at this point in the history
…-files

Watch LiveView .leex files
  • Loading branch information
axelson authored May 3, 2019
2 parents c215fc8 + 2e93df5 commit e70f86c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- `defdelegate` snippet is now syntactically correct (was previously missing a comma)
- `workspace/didChangeConfiguration` handles `null` now (fixes [eglot](https://github.com/joaotavora/eglot) support)
- Update elixir_sense
- Watch LiveView .leex files

### v0.2.24: 15 Oct 2018

Expand Down
2 changes: 1 addition & 1 deletion apps/language_server/lib/language_server/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ defmodule ElixirLS.LanguageServer.Server do
defp handle_notification(did_change_watched_files(changes), state) do
needs_build =
Enum.any?(changes, fn %{"uri" => uri, "type" => type} ->
Path.extname(uri) in [".ex", ".exs", ".erl", ".yrl", ".xrl", ".eex"] and
Path.extname(uri) in [".ex", ".exs", ".erl", ".yrl", ".xrl", ".eex", ".leex"] and
(type in [1, 3] or not Map.has_key?(state.source_files, uri))
end)

Expand Down

0 comments on commit e70f86c

Please sign in to comment.