File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ export async function activate(context: vscode.ExtensionContext) {
3535 console . log ( 'Congratulations, your extension "githru" is now active!' ) ;
3636
3737 const disposable = vscode . commands . registerCommand ( COMMAND_LAUNCH , async ( ) => {
38- console . time ( "Githru-Launch-Time" ) ;
38+ if ( context . extensionMode === vscode . ExtensionMode . Development ) {
39+ console . time ( "Githru-Launch-Time" ) ;
40+ }
3941 myStatusBarItem . text = `$(sync~spin) ${ projectName } ` ;
4042 try {
4143 console . debug ( "current Panel = " , currentPanel , currentPanel ?. onDidDispose ) ;
@@ -119,7 +121,9 @@ export async function activate(context: vscode.ExtensionContext) {
119121
120122 subscriptions . push ( webLoader ) ;
121123 myStatusBarItem . text = `$(check) ${ projectName } ` ;
122- console . timeEnd ( "Githru-Launch-Time" ) ;
124+ if ( context . extensionMode === vscode . ExtensionMode . Development ) {
125+ console . timeEnd ( "Githru-Launch-Time" ) ;
126+ }
123127 vscode . window . showInformationMessage ( "Hello Githru" ) ;
124128 } catch ( error ) {
125129 if ( error instanceof GithubTokenUndefinedError ) {
You can’t perform that action at this time.
0 commit comments