From 57eccc781eadd3cc981020c0dda8ec05baf142a6 Mon Sep 17 00:00:00 2001 From: Peter Schuemann Date: Mon, 21 Oct 2024 01:57:46 +0200 Subject: [PATCH] * chore(package.json): add "onStartupFinished" to activationEvents * chore(extension.ts): update status bar text to "Create Gitea PR" * chore(extension.ts): update comment for showing status bar icon --- gitea-git-clone/package.json | 2 +- gitea-git-clone/src/extension.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gitea-git-clone/package.json b/gitea-git-clone/package.json index 4b517a5..dcd8f42 100644 --- a/gitea-git-clone/package.json +++ b/gitea-git-clone/package.json @@ -9,7 +9,7 @@ "categories": [ "Other" ], - "activationEvents": [], + "activationEvents": ["onStartupFinished"], "main": "./dist/extension.js", "contributes": { "commands": [ diff --git a/gitea-git-clone/src/extension.ts b/gitea-git-clone/src/extension.ts index 80f4b47..e9e95aa 100644 --- a/gitea-git-clone/src/extension.ts +++ b/gitea-git-clone/src/extension.ts @@ -141,10 +141,10 @@ async function getDefaultBranch(instanceUrl: string, owner: string, repo: string // Funktion zum Hinzufügen des Statusbar-Icons function addStatusBarIcon() { const statusBar = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left); - statusBar.text = `$(git-pull-request) Create PR`; + statusBar.text = `$(git-pull-request) Create Gitea PR`; statusBar.tooltip = 'Create a Pull Request in Gitea'; statusBar.command = 'gitea.createPullRequest'; - statusBar.show(); // Sofortiges Anzeigen + statusBar.show(); // Sofortiges Anzeigen des Icons in der Statusleiste return statusBar; } @@ -209,7 +209,7 @@ export function activate(context: vscode.ExtensionContext) { context.subscriptions.push(pullRequestCommand); // Statusbar-Icon sofort anzeigen - const statusBar = addStatusBarIcon(); + const statusBar = addStatusBarIcon(); // Icon wird sofort beim Aktivieren angezeigt context.subscriptions.push(statusBar); }