@@ -21,11 +21,12 @@ type ProofViewPageProps = {
21
21
messages : ProofViewMessage [ ] ,
22
22
collapseGoalHandler : ( id : string , key : ProofViewGoalsKey ) => void ,
23
23
displaySetting : string ;
24
+ maxDepth : number ;
24
25
} ;
25
26
26
27
const proofViewPage : FunctionComponent < ProofViewPageProps > = ( props ) => {
27
28
28
- const { goals, messages, displaySetting, collapseGoalHandler} = props ;
29
+ const { goals, messages, displaySetting, collapseGoalHandler, maxDepth } = props ;
29
30
30
31
const renderGoals = ( ) => {
31
32
const goalBadge = < VSCodeBadge > { goals ! . main . length } </ VSCodeBadge > ;
@@ -53,6 +54,7 @@ const proofViewPage: FunctionComponent<ProofViewPageProps> = (props) => {
53
54
emptyIcon = {
54
55
goals ! . shelved . length === 0 && goals ! . givenUp . length === 0 ? < VscPass /> : < VscWarning />
55
56
}
57
+ maxDepth = { maxDepth }
56
58
/>
57
59
</ VSCodePanelView > ,
58
60
< VSCodePanelView className = { classes . View } >
@@ -62,6 +64,7 @@ const proofViewPage: FunctionComponent<ProofViewPageProps> = (props) => {
62
64
collapseGoalHandler = { ( id ) => collapseGoalHandler ( id , ProofViewGoalsKey . shelved ) }
63
65
displaySetting = { displaySetting }
64
66
emptyMessage = 'There are no shelved goals'
67
+ maxDepth = { maxDepth }
65
68
/>
66
69
</ VSCodePanelView > ,
67
70
< VSCodePanelView className = { classes . View } >
@@ -71,6 +74,7 @@ const proofViewPage: FunctionComponent<ProofViewPageProps> = (props) => {
71
74
collapseGoalHandler = { ( id ) => collapseGoalHandler ( id , ProofViewGoalsKey . givenUp ) }
72
75
displaySetting = { displaySetting }
73
76
emptyMessage = 'There are no given up goals'
77
+ maxDepth = { maxDepth }
74
78
/>
75
79
</ VSCodePanelView >
76
80
] ;
@@ -85,7 +89,7 @@ const proofViewPage: FunctionComponent<ProofViewPageProps> = (props) => {
85
89
86
90
const displayMessages = messages . map ( m => {
87
91
return (
88
- < Message message = { m [ 1 ] } severity = { m [ 0 ] } />
92
+ < Message message = { m [ 1 ] } severity = { m [ 0 ] } maxDepth = { maxDepth } />
89
93
) ;
90
94
} ) ;
91
95
0 commit comments