mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Transactions fixed
This commit is contained in:
@@ -215,9 +215,10 @@ public class PsiToDocumentSynchronizer extends PsiTreeChangeAdapter {
|
||||
|
||||
public void commitTransaction(Document document){
|
||||
final DocumentChangeTransaction documentChangeTransaction = myTransactionsMap.get(document);
|
||||
if(documentChangeTransaction == null) return;
|
||||
if(documentChangeTransaction.getAffectedFragments().size() == 0) return; // Nothing to do
|
||||
try{
|
||||
if(documentChangeTransaction == null) return;
|
||||
if(documentChangeTransaction.getAffectedFragments().size() == 0) return; // Nothing to do
|
||||
|
||||
final PsiElement changeScope = documentChangeTransaction.getChangeScope();
|
||||
final PsiTreeChangeEventImpl fakeEvent = new PsiTreeChangeEventImpl(changeScope.getManager());
|
||||
fakeEvent.setParent(changeScope);
|
||||
|
||||
Reference in New Issue
Block a user