[vcs/gh/gl] Add share project actions to VCS toolwindow on empty repo (IJPL-180514)

GitOrigin-RevId: e4d99c6360b3aef316c382b00b7132a72c9c3586
This commit is contained in:
Chris Lemaire
2025-05-28 09:11:30 +02:00
committed by intellij-monorepo-bot
parent e49b44c1f4
commit 43e22411b0
9 changed files with 87 additions and 7 deletions

View File

@@ -17,5 +17,8 @@
<extensions defaultExtensionNs="com.intellij">
<github.ghShareProjectCompatibilityExtension implementation="com.intellij.vcs.github.git.share.GHShareProjectUtilCompatExtension"/>
<openapi.vcs.changes.ui.shareProjectAction
implementation="com.intellij.vcs.github.git.share.GithubShareActionProvider"
order="first"/>
</extensions>
</idea-plugin>

View File

@@ -0,0 +1,14 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.vcs.github.git.share
import com.intellij.openapi.actionSystem.ActionManager
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.vcs.changes.ui.ShareProjectActionProvider
import org.jetbrains.annotations.Nls
import org.jetbrains.plugins.github.i18n.GithubBundle
internal class GithubShareActionProvider : ShareProjectActionProvider {
override val hostServiceName: @Nls String = GithubBundle.message("settings.configurable.display.name")
override val action: AnAction
get() = ActionManager.getInstance().getAction("Github.Share")
}