Skip to content

Commit

Permalink
feat(vscode): githru 로딩 및 실행 시 progress UI 표시
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseo committed Jul 19, 2024
1 parent 584b859 commit 78cc7ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 78cc7ef

Please sign in to comment.