mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't load document to calculate view provider stamp
This commit is contained in:
@@ -614,16 +614,9 @@ public class SingleRootFileViewProvider extends UserDataHolderBase implements Fi
|
||||
|
||||
@Override
|
||||
public long getModificationStamp() {
|
||||
final VirtualFile virtualFile = getVirtualFile();
|
||||
if (virtualFile instanceof LightVirtualFile) {
|
||||
Document doc = getCachedDocument();
|
||||
if (doc != null) return getLastCommittedStamp(doc);
|
||||
return virtualFile.getModificationStamp();
|
||||
}
|
||||
|
||||
final Document document = getDocument();
|
||||
final Document document = getCachedDocument();
|
||||
if (document == null) {
|
||||
return virtualFile.getModificationStamp();
|
||||
return getVirtualFile().getModificationStamp();
|
||||
}
|
||||
return getLastCommittedStamp(document);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user