fix(LineEndCache): delete line get doc from before line

This commit is contained in:
林万程
2024-01-12 21:58:00 +08:00
parent 3f2ead8349
commit 5e163de171

View File

@@ -107,6 +107,10 @@ public class LineEndCacheUtils {
if (list != null) {
list.clear();
}
// fix delete line get doc from before line because PsiFile be not updated
if ("}".equals(info.text.trim())) {
return;
}
if (lineExt != null) {
if (list != null) {
list.add(lineExt);