Skip to content

Commit b07cf53

Browse files
author
winter
committed
fix bug: asm outline doesn't change when the source file had changed
1 parent 8f251e9 commit b07cf53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/org/objectweb/asm/idea/ShowBytecodeOutlineAction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
import com.intellij.openapi.wm.ToolWindowManager;
3939
import com.intellij.psi.*;
4040
import com.intellij.psi.codeStyle.CodeStyleManager;
41+
import org.objectweb.asm.idea.config.ASMPluginComponent;
4142
import reloc.org.objectweb.asm.ClassReader;
4243
import reloc.org.objectweb.asm.ClassVisitor;
43-
import org.objectweb.asm.idea.config.ASMPluginComponent;
4444
import reloc.org.objectweb.asm.util.ASMifier;
4545
import reloc.org.objectweb.asm.util.TraceClassVisitor;
4646

@@ -190,6 +190,7 @@ public void run() {
190190
ClassVisitor visitor = new TraceClassVisitor(new PrintWriter(stringWriter));
191191
ClassReader reader = null;
192192
try {
193+
file.refresh(false, false);
193194
reader = new ClassReader(file.contentsToByteArray());
194195
} catch (IOException e) {
195196
return;

0 commit comments

Comments
 (0)