mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
More debug information is provided
This commit is contained in:
+1
-1
@@ -171,7 +171,7 @@ abstract class AbstractMappingStrategy<T> implements MappingStrategy<T> {
|
||||
collapsedSymbolsWidthInColumns = foldingData.getCollapsedSymbolsWidthInColumns();
|
||||
}
|
||||
else {
|
||||
assert false;
|
||||
assert false : String.format("Problem fold region: %s. Soft wraps cache: %s", foldRegion, myCache);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
+3
-1
@@ -26,6 +26,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@@ -218,7 +219,8 @@ class CacheEntry implements Comparable<CacheEntry>, Cloneable {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "visual line: " + visualLine + ", offsets: " + startOffset + "-" + endOffset;
|
||||
return "visual line: " + visualLine + ", offsets: " + startOffset + "-" + endOffset + ", fold regions: "
|
||||
+ Arrays.toString(myFoldingData.getValues());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user