File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 103103 " ./vs/workbench/browser/labels.ts" ,
104104 " ./vs/workbench/browser/panel.ts" ,
105105 " ./vs/workbench/browser/part.ts" ,
106+ " ./vs/workbench/browser/parts/activitybar/activitybarActions.ts" ,
106107 " ./vs/workbench/browser/parts/compositeBarActions.ts" ,
107108 " ./vs/workbench/browser/parts/compositePart.ts" ,
108109 " ./vs/workbench/browser/parts/editor/baseEditor.ts" ,
Original file line number Diff line number Diff line change @@ -199,14 +199,14 @@ export class SidebarPart extends CompositePart<Viewlet> implements ISerializable
199199 this . hideActiveComposite ( ) ;
200200 }
201201
202- openViewlet ( id : string , focus ?: boolean ) : Promise < IViewlet | null > {
203- if ( this . getViewlet ( id ) ) {
202+ openViewlet ( id : string | undefined , focus ?: boolean ) : Promise < IViewlet | null > {
203+ if ( typeof id === 'string' && this . getViewlet ( id ) ) {
204204 return Promise . resolve ( this . doOpenViewlet ( id , focus ) ) ;
205205 }
206206
207207 return this . extensionService . whenInstalledExtensionsRegistered ( )
208208 . then ( ( ) => {
209- if ( this . getViewlet ( id ) ) {
209+ if ( typeof id === 'string' && this . getViewlet ( id ) ) {
210210 return this . doOpenViewlet ( id , focus ) ;
211211 }
212212
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export interface IViewletService {
2222 /**
2323 * Opens a viewlet with the given identifier and pass keyboard focus to it if specified.
2424 */
25- openViewlet ( id : string , focus ?: boolean ) : Promise < IViewlet | null > ;
25+ openViewlet ( id : string | undefined , focus ?: boolean ) : Promise < IViewlet | null > ;
2626
2727 /**
2828 * Returns the current active viewlet or null if none.
You can’t perform that action at this time.
0 commit comments