File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ import {
1111 StatusBarAlignment ,
1212 StatusBarItem ,
1313 env ,
14- QuickPickItemKind
14+ QuickPickItemKind ,
15+ authentication
1516} from 'vscode' ;
1617import path = require( 'path' ) ;
1718import { startTelemetry } from './telemetry' ;
@@ -89,6 +90,9 @@ export async function activate(extensionContext: ExtensionContext): Promise<any>
8990 ] ;
9091 disposable . forEach ( ( value ) => extensionContext . subscriptions . push ( value ) ) ;
9192
93+ // activate "Sign in with Red Hat ..."
94+ void authentication . getSession ( 'redhat-account-auth' , [ 'openid' ] , { silent : false } ) ;
95+
9296 function statusBarFunctions ( ) {
9397 return commands . registerCommand ( 'openshift.openStatusBar' , async ( ) => {
9498 const selection = await window . showQuickPick (
You can’t perform that action at this time.
0 commit comments