Skip to content

Commit

Permalink
fixed refactor cache invalidation on non-Haxe files
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Dec 8, 2024
1 parent 829e84b commit 4c07fb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions haxe_libraries/rename.hxml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @install: lix --silent download "gh://github.com/HaxeCheckstyle/haxe-rename#fe2a4879980005da4628325875817780c5b14b51" into rename/2.3.1/github/fe2a4879980005da4628325875817780c5b14b51
-cp ${HAXE_LIBCACHE}/rename/2.3.1/github/fe2a4879980005da4628325875817780c5b14b51/src
# @install: lix --silent download "gh://github.com/HaxeCheckstyle/haxe-rename#222e156eef9a32fb86ad015940248a683268cd7f" into rename/2.3.1/github/222e156eef9a32fb86ad015940248a683268cd7f
-cp ${HAXE_LIBCACHE}/rename/2.3.1/github/222e156eef9a32fb86ad015940248a683268cd7f/src
-D rename=2.3.1
4 changes: 3 additions & 1 deletion src/haxeLanguageServer/Context.hx
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,11 @@ class Context {
case Deleted:
diagnostics.clearDiagnostics(change.uri);
invalidateFile(change.uri);
refactorCache.invalidateFile(change.uri.toFsPath().toString());
case _:
}
if (change.uri.isHaxeFile()) {
refactorCache.invalidateFile(change.uri.toFsPath().toString());
}
}
}

Expand Down

0 comments on commit 4c07fb1

Please sign in to comment.