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); }