From 78cc7ef90eb1f023b7f9151ff44b4fdfec93b248 Mon Sep 17 00:00:00 2001 From: yuiseo <24oesiu@gmail.com> Date: Sat, 20 Jul 2024 02:57:11 +0900 Subject: [PATCH 1/3] =?UTF-8?q?feat(vscode):=20githru=20=EB=A1=9C=EB=94=A9?= =?UTF-8?q?=20=EB=B0=8F=20=EC=8B=A4=ED=96=89=20=EC=8B=9C=20progress=20UI?= =?UTF-8?q?=20=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vscode/src/extension.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/vscode/src/extension.ts b/packages/vscode/src/extension.ts index 10e67a44..d59d9a82 100644 --- a/packages/vscode/src/extension.ts +++ b/packages/vscode/src/extension.ts @@ -33,6 +33,7 @@ export async function activate(context: vscode.ExtensionContext) { console.log('Congratulations, your extension "githru" is now active!'); const disposable = vscode.commands.registerCommand(COMMAND_LAUNCH, async () => { + myStatusBarItem.text = "$(sync~spin) githru"; try { console.debug("current Panel = ", currentPanel, currentPanel?.onDidDispose); if (currentPanel) { @@ -100,12 +101,14 @@ export async function activate(context: vscode.ExtensionContext) { currentPanel?.onDidDispose( () => { currentPanel = undefined; + myStatusBarItem.text = "githru"; }, null, context.subscriptions ); subscriptions.push(webLoader); + myStatusBarItem.text = "$(check) githru"; vscode.window.showInformationMessage("Hello Githru"); } catch (error) { if (error instanceof GithubTokenUndefinedError) { From 749eb02e209dfe3131730aa35287863fdf20e7af Mon Sep 17 00:00:00 2001 From: yuiseo <24oesiu@gmail.com> Date: Sat, 20 Jul 2024 03:28:49 +0900 Subject: [PATCH 2/3] =?UTF-8?q?fix(vscode):=20githru=20=ED=8C=90=EB=84=AC?= =?UTF-8?q?=20=EC=9D=B4=EB=AF=B8=20=EB=A1=9C=EB=94=A9=20=EB=90=98=EC=97=88?= =?UTF-8?q?=EC=9D=84=20=EB=95=8C=20=EC=8A=A4=ED=94=BC=EB=84=88=20=EA=B3=84?= =?UTF-8?q?=EC=86=8D=20=ED=91=9C=EC=8B=9C=20=EB=90=98=EB=8A=94=20=ED=98=84?= =?UTF-8?q?=EC=83=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vscode/src/extension.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vscode/src/extension.ts b/packages/vscode/src/extension.ts index d59d9a82..6d153557 100644 --- a/packages/vscode/src/extension.ts +++ b/packages/vscode/src/extension.ts @@ -38,6 +38,7 @@ export async function activate(context: vscode.ExtensionContext) { console.debug("current Panel = ", currentPanel, currentPanel?.onDidDispose); if (currentPanel) { currentPanel.reveal(); + myStatusBarItem.text = "$(check) githru"; return; } const gitPath = (await findGit()).path; From 8b6a948f2e8aeb22f6f0ef7b6258ef2d4061448b Mon Sep 17 00:00:00 2001 From: yuiseo <24oesiu@gmail.com> Date: Sat, 20 Jul 2024 16:11:52 +0900 Subject: [PATCH 3/3] =?UTF-8?q?feat(vscode):=20=20=ED=94=84=EB=A1=9C?= =?UTF-8?q?=EC=A0=9D=ED=8A=B8=EB=AA=85=20=EB=B3=80=EC=88=98=EB=A1=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vscode/src/extension.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/vscode/src/extension.ts b/packages/vscode/src/extension.ts index 6d153557..2fc0c8e6 100644 --- a/packages/vscode/src/extension.ts +++ b/packages/vscode/src/extension.ts @@ -18,6 +18,7 @@ import { import WebviewLoader from "./webview-loader"; let myStatusBarItem: vscode.StatusBarItem; +const projectName = 'githru'; function normalizeFsPath(fsPath: string) { return fsPath.replace(/\\/g, "/"); @@ -33,12 +34,12 @@ export async function activate(context: vscode.ExtensionContext) { console.log('Congratulations, your extension "githru" is now active!'); const disposable = vscode.commands.registerCommand(COMMAND_LAUNCH, async () => { - myStatusBarItem.text = "$(sync~spin) githru"; + myStatusBarItem.text = `$(sync~spin) ${projectName}`; try { console.debug("current Panel = ", currentPanel, currentPanel?.onDidDispose); if (currentPanel) { currentPanel.reveal(); - myStatusBarItem.text = "$(check) githru"; + myStatusBarItem.text = `$(check) ${projectName}`; return; } const gitPath = (await findGit()).path; @@ -102,14 +103,14 @@ export async function activate(context: vscode.ExtensionContext) { currentPanel?.onDidDispose( () => { currentPanel = undefined; - myStatusBarItem.text = "githru"; + myStatusBarItem.text = projectName; }, null, context.subscriptions ); subscriptions.push(webLoader); - myStatusBarItem.text = "$(check) githru"; + myStatusBarItem.text = `$(check) ${projectName}`; vscode.window.showInformationMessage("Hello Githru"); } catch (error) { if (error instanceof GithubTokenUndefinedError) { @@ -141,7 +142,7 @@ export async function activate(context: vscode.ExtensionContext) { subscriptions.concat([disposable, loginWithGithub, resetGithubAuth]); myStatusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left, -10); - myStatusBarItem.text = "githru"; + myStatusBarItem.text = projectName; myStatusBarItem.command = COMMAND_LAUNCH; subscriptions.push(myStatusBarItem);