File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -109,21 +109,27 @@ async function reinitWave() {
109
109
}
110
110
111
111
function reloadAllWorkspaceTabs ( ws : Workspace ) {
112
- if ( ws == null || ws . tabids == null ) {
112
+ if ( ws == null || ( ! ws . tabids ?. length && ! ws . pinnedtabids ?. length ) ) {
113
113
return ;
114
114
}
115
- ws . tabids . forEach ( ( tabid ) => {
115
+ ws ?. tabids . forEach ( ( tabid ) => {
116
+ WOS . reloadWaveObject < Tab > ( WOS . makeORef ( "tab" , tabid ) ) ;
117
+ } ) ;
118
+ ws ?. pinnedtabids ?. forEach ( ( tabid ) => {
116
119
WOS . reloadWaveObject < Tab > ( WOS . makeORef ( "tab" , tabid ) ) ;
117
120
} ) ;
118
121
}
119
122
120
123
function loadAllWorkspaceTabs ( ws : Workspace ) {
121
- if ( ws == null || ws . tabids == null ) {
124
+ if ( ws == null || ( ! ws . tabids ?. length && ! ws . pinnedtabids ?. length ) ) {
122
125
return ;
123
126
}
124
127
ws . tabids . forEach ( ( tabid ) => {
125
128
WOS . getObjectValue < Tab > ( WOS . makeORef ( "tab" , tabid ) ) ;
126
129
} ) ;
130
+ ws . pinnedtabids . forEach ( ( tabid ) => {
131
+ WOS . getObjectValue < Tab > ( WOS . makeORef ( "tab" , tabid ) ) ;
132
+ } ) ;
127
133
}
128
134
129
135
async function initWave ( initOpts : WaveInitOpts ) {
You can’t perform that action at this time.
0 commit comments