mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
compile-server: when renaming a file send "deleted" notification for the old path
This commit is contained in:
+7
-1
@@ -1270,7 +1270,13 @@ public class TranslatingCompilerFilesMonitor implements ApplicationComponent {
|
||||
private class MyVfsListener extends VirtualFileAdapter {
|
||||
public void propertyChanged(final VirtualFilePropertyEvent event) {
|
||||
if (VirtualFile.PROP_NAME.equals(event.getPropertyName())) {
|
||||
markDirtyIfSource(event.getFile(), false);
|
||||
final VirtualFile file = event.getFile();
|
||||
final VirtualFile parent = event.getParent();
|
||||
if (parent != null) {
|
||||
final String oldName = (String)event.getOldValue();
|
||||
CompileServerManager.getInstance().notifyFilesDeleted(Collections.singleton(parent.getPath() + "/" + oldName));
|
||||
}
|
||||
markDirtyIfSource(file, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user