be stricter about which files to watch
Things like flycheck-elixir in Emacs can create temporary files in the same directory as the upstream files that contain the koans, with a "flycheck_" prefix but still ending in ".ex". This change makes it so that we skip such files.
This commit is contained in:
@@ -21,7 +21,7 @@ defmodule Watcher do
|
||||
end
|
||||
|
||||
defp reload(file) do
|
||||
if Path.extname(file) == ".ex" do
|
||||
if String.match?(file, Runner.koan_path_pattern()) do
|
||||
try do
|
||||
file
|
||||
|> portable_load_file
|
||||
|
||||
Reference in New Issue
Block a user