mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
psi to doc synchronization fixed for multiple transactions for one document
This commit is contained in:
@@ -219,7 +219,8 @@ public class PsiToDocumentSynchronizer extends PsiTreeChangeAdapter {
|
||||
}
|
||||
|
||||
public void startTransaction(Document doc, PsiElement scope) {
|
||||
myTransactionsMap.put(doc, new DocumentChangeTransaction(doc, scope));
|
||||
if(!myTransactionsMap.containsKey(doc))
|
||||
myTransactionsMap.put(doc, new DocumentChangeTransaction(doc, scope));
|
||||
}
|
||||
|
||||
public void commitTransaction(Document document){
|
||||
|
||||
Reference in New Issue
Block a user