mirror of
https://gitea.computerliebe.org/ComputerLiebe_ORG_private/Gitea-VSCode-Clone-Plugin.git
synced 2025-01-14 13:50:32 +00:00
* 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
This commit is contained in:
parent
011e20b499
commit
57eccc781e
@ -9,7 +9,7 @@
|
|||||||
"categories": [
|
"categories": [
|
||||||
"Other"
|
"Other"
|
||||||
],
|
],
|
||||||
"activationEvents": [],
|
"activationEvents": ["onStartupFinished"],
|
||||||
"main": "./dist/extension.js",
|
"main": "./dist/extension.js",
|
||||||
"contributes": {
|
"contributes": {
|
||||||
"commands": [
|
"commands": [
|
||||||
|
@ -141,10 +141,10 @@ async function getDefaultBranch(instanceUrl: string, owner: string, repo: string
|
|||||||
// Funktion zum Hinzufügen des Statusbar-Icons
|
// Funktion zum Hinzufügen des Statusbar-Icons
|
||||||
function addStatusBarIcon() {
|
function addStatusBarIcon() {
|
||||||
const statusBar = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left);
|
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.tooltip = 'Create a Pull Request in Gitea';
|
||||||
statusBar.command = 'gitea.createPullRequest';
|
statusBar.command = 'gitea.createPullRequest';
|
||||||
statusBar.show(); // Sofortiges Anzeigen
|
statusBar.show(); // Sofortiges Anzeigen des Icons in der Statusleiste
|
||||||
return statusBar;
|
return statusBar;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -209,7 +209,7 @@ export function activate(context: vscode.ExtensionContext) {
|
|||||||
context.subscriptions.push(pullRequestCommand);
|
context.subscriptions.push(pullRequestCommand);
|
||||||
|
|
||||||
// Statusbar-Icon sofort anzeigen
|
// Statusbar-Icon sofort anzeigen
|
||||||
const statusBar = addStatusBarIcon();
|
const statusBar = addStatusBarIcon(); // Icon wird sofort beim Aktivieren angezeigt
|
||||||
context.subscriptions.push(statusBar);
|
context.subscriptions.push(statusBar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user