File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
apps/language_server/lib/language_server Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,11 @@ defmodule ElixirLS.LanguageServer.Server do
407
407
Enum . any? ( changes , fn % { "uri" => uri = "file:" <> _ , "type" => type } ->
408
408
path = SourceFile . path_from_uri ( uri )
409
409
410
- Path . extname ( path ) in ( additional_watched_extensions ++ @ default_watched_extensions ) and
410
+ relative_path = Path . relative_to ( path , state . project_dir )
411
+ first_path_segment = relative_path |> Path . split ( ) |> hd
412
+
413
+ first_path_segment not in [ ".elixir_ls" , "_build" ] and
414
+ Path . extname ( path ) in ( additional_watched_extensions ++ @ default_watched_extensions ) and
411
415
( type in [ 1 , 3 ] or not Map . has_key? ( state . source_files , uri ) or
412
416
state . source_files [ uri ] . dirty? )
413
417
end )
You can’t perform that action at this time.
0 commit comments