File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export async function activate(extensionContext: extensionApi.ExtensionContext):
83
83
84
84
await initMenu ( extensionContext ) ;
85
85
86
- extensionApi . authentication . registerAuthenticationProvider (
86
+ const providerDisposable = extensionApi . authentication . registerAuthenticationProvider (
87
87
'redhat.autentication-provider' ,
88
88
'Red Hat' , {
89
89
onDidChangeSessions : onDidChangeSessions . event ,
@@ -103,6 +103,7 @@ export async function activate(extensionContext: extensionApi.ExtensionContext):
103
103
onDidChangeSessions . fire ( { removed : [ session ] } ) ;
104
104
}
105
105
} ) ;
106
+ extensionContext . subscriptions . push ( providerDisposable ) ;
106
107
107
108
const SignInCommand = extensionApi . commands . registerCommand ( 'redhat.authentication.signin' , async ( ) => {
108
109
loginService = await getAutenticatonService ( ) ;
You can’t perform that action at this time.
0 commit comments