Skip to content

Commit

Permalink
Merge pull request #694 from lexical-lsp/fix_heex_disable
Browse files Browse the repository at this point in the history
Fix disabling HEEx as-you-type compilation.
  • Loading branch information
Moosieus authored Apr 14, 2024
2 parents 1e00d8e + 478b6fe commit ef747aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/remote_control/lib/lexical/remote_control/build.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defmodule Lexical.RemoteControl.Build do

def compile_document(%Project{} = project, %Document{} = document) do
with false <- Path.absname(document.path) == "mix.exs",
false <- HEEx.recognizes?(document.language_id) do
false <- HEEx.recognizes?(document) do
RemoteControl.call(project, GenServer, :cast, [__MODULE__, {:compile_file, document}])
end

Expand All @@ -38,7 +38,7 @@ defmodule Lexical.RemoteControl.Build do
# this is for testing
def force_compile_document(%Project{} = project, %Document{} = document) do
with false <- Path.absname(document.path) == "mix.exs",
false <- HEEx.recognizes?(document.language_id) do
false <- HEEx.recognizes?(document) do
RemoteControl.call(project, GenServer, :call, [
__MODULE__,
{:force_compile_file, document}
Expand Down

0 comments on commit ef747aa

Please sign in to comment.