mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't perform 'sequential formatting' if dummy special text is inserted to the document
This commit is contained in:
@@ -23,6 +23,7 @@ package com.intellij.codeInsight.template;
|
||||
import com.intellij.psi.codeStyle.JavaCodeStyleManager;
|
||||
import com.intellij.psi.codeStyle.SuggestedNameInfo;
|
||||
import com.intellij.psi.codeStyle.VariableKind;
|
||||
import com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl;
|
||||
import com.intellij.psi.text.BlockSupport;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -54,6 +55,7 @@ package com.intellij.codeInsight.template;
|
||||
ApplicationManager.getApplication().runWriteAction(new Runnable() {
|
||||
public void run() {
|
||||
BlockSupport blockSupport = ServiceManager.getService(project, BlockSupport.class);
|
||||
CodeStyleManagerImpl.setSequentialProcessingAllowed(false);
|
||||
try{
|
||||
blockSupport.reparseRange(fileCopy, offset, offset, "xxx");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user