File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ export default {
51
51
'panel.output.title' : 'output' ,
52
52
'panel.toolbox.closePanel' : 'Close Panel' ,
53
53
'panel.toolbox.maximize' : 'Maximize Panel Size' ,
54
+ 'panel.toolbox.restoreSize' : 'Restore Panel Size' ,
54
55
'panel.problems.title' : 'Problems' ,
55
56
'panel.problems.empty' :
56
57
'No problems have been detected in the workspace.' ,
Original file line number Diff line number Diff line change 51
51
"panel.problems.empty" : " 未在工作区检测到问题" ,
52
52
"panel.toolbox.closePanel" : " 关闭面板" ,
53
53
"panel.toolbox.maximize" : " 最大化面板" ,
54
+ "panel.toolbox.restoreSize" : " 恢复面板大小" ,
54
55
"notification.title" : " 通知" ,
55
56
"notification.title.no" : " 没有新通知" ,
56
57
"editor.closeToRight" : " 关闭右边" ,
Original file line number Diff line number Diff line change @@ -67,15 +67,15 @@ export class PanelService extends Component<IPanel> implements IPanelService {
67
67
const resizeBtn = toolbox [ resizeBtnIndex ] ;
68
68
if ( resizeBtn ) {
69
69
if ( panelMaximized ) {
70
+ toolbox [ resizeBtnIndex ] = builtInPanelToolboxResize ( ) ;
71
+ } else {
70
72
toolbox [ resizeBtnIndex ] = Object . assign ( { } , resizeBtn , {
71
73
title : localize (
72
74
PANEL_TOOLBOX_RESTORE_SIZE ,
73
75
'Restore Panel Size'
74
76
) ,
75
77
iconName : 'codicon-chevron-down' ,
76
78
} ) ;
77
- } else {
78
- toolbox [ resizeBtnIndex ] = builtInPanelToolboxResize ( ) ;
79
79
}
80
80
this . layoutService . togglePanelMaximized ( ) ;
81
81
}
You can’t perform that action at this time.
0 commit comments