mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid blocking runReadAction in debug logging
This commit is contained in:
+1
-1
@@ -492,7 +492,7 @@ public abstract class PassExecutorService implements Disposable {
|
||||
|
||||
public static void log(ProgressIndicator progressIndicator, TextEditorHighlightingPass pass, @NonNls Object... info) {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
String docText = pass == null ? "" : StringUtil.first(pass.getDocument().getText(), 10, true);
|
||||
CharSequence docText = pass == null ? "" : StringUtil.first(pass.getDocument().getCharsSequence(), 10, true);
|
||||
synchronized (PassExecutorService.class) {
|
||||
StringBuilder s = new StringBuilder();
|
||||
for (Object o : info) {
|
||||
|
||||
Reference in New Issue
Block a user