Skip to content

Commit 2171f2d

Browse files
author
“chae-dahee”
committed
refactor: 콘솔 개발환경 분기
1 parent 838d81e commit 2171f2d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/vscode/src/extension.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)