File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 8686 "type" : " webview" ,
8787 "id" : " gitguardianQuotaView" ,
8888 "name" : " quota" ,
89- "collapsed" : true
89+ "collapsed" : true ,
90+ "when" : " isAuthenticated == true"
9091 }
9192 ]
9293 },
Original file line number Diff line number Diff line change @@ -163,7 +163,9 @@ export function activate(context: ExtensionContext) {
163163 authStatus = ggshieldAuthStatus ( configuration ) ;
164164 if ( ! authStatus ) {
165165 updateStatusBarItem ( StatusBarStatus . unauthenticated , statusBar ) ;
166- }
166+ } else {
167+ commands . executeCommand ( 'setContext' , 'isAuthenticated' , true ) ;
168+ }
167169 } )
168170 . then ( async ( ) => {
169171 // Check if git is installed
@@ -230,6 +232,7 @@ export function activate(context: ExtensionContext) {
230232 if ( isAuthenticated ) {
231233 authStatus = true ;
232234 updateStatusBarItem ( StatusBarStatus . ready , statusBar ) ;
235+ commands . executeCommand ( 'setContext' , 'isAuthenticated' , true ) ;
233236 ggshieldViewProvider . refresh ( ) ;
234237 ggshieldQuotaViewProvider . refresh ( ) ;
235238 } else {
You can’t perform that action at this time.
0 commit comments