Procházet zdrojové kódy

Adds context menu command for adding linked workspace repos

main
Ramin Tadayon před 1 rokem
rodič
revize
6d5a3405e1
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 79D60DDE3DFB95F5
3 změnil soubory, kde provedl 19 přidání a 0 odebrání
  1. +14
    -0
      package.json
  2. +1
    -0
      src/constants.ts
  3. +4
    -0
      src/views/workspacesView.ts

+ 14
- 0
package.json Zobrazit soubor

@ -6912,6 +6912,11 @@
"icon": "$(add)"
},
{
"command": "gitlens.views.workspaces.addReposFromLinked",
"title": "Add Repositories from Linked Workspace...",
"category": "GitLens"
},
{
"command": "gitlens.views.workspaces.info",
"title": "Learn more about GitKraken Workspaces...",
"category": "GitLens",
@ -9503,6 +9508,10 @@
"when": "false"
},
{
"command": "gitlens.views.workspaces.addReposFromLinked",
"when": "false"
},
{
"command": "gitlens.views.workspaces.repo.locate",
"when": "false"
},
@ -11176,6 +11185,11 @@
"group": "1_gitlens_actions@2"
},
{
"command": "gitlens.views.workspaces.addReposFromLinked",
"when": "viewItem =~ /gitlens:repositories\\b(?=.*?\\b\\+synced\\b)/",
"group": "1_gitlens_actions@3"
},
{
"command": "gitlens.views.workspaces.createLocal",
"when": "viewItem =~ /gitlens:workspace\\b(?=.*?\\b\\+(cloud|local)\\b)(?!.*?\\b\\+empty\\b)/",
"group": "2_gitlens_quickopen@3"

+ 1
- 0
src/constants.ts Zobrazit soubor

@ -404,6 +404,7 @@ export type TreeViewCommands = `gitlens.views.${
| 'copy'
| 'refresh'
| 'addRepos'
| 'addReposFromLinked'
| 'changeAutoAddSetting'
| 'convert'
| 'create'

+ 4
- 0
src/views/workspacesView.ts Zobrazit soubor

@ -77,6 +77,10 @@ export class WorkspacesView extends ViewBase<'workspaces', WorkspacesViewNode, R
await this.container.workspaces.addCloudWorkspaceRepos(node.workspace.id);
void node.getParent()?.triggerChange(true);
}),
registerViewCommand(this.getQualifiedCommand('addReposFromLinked'), async (node: RepositoriesNode) => {
await this.container.workspaces.addMissingCurrentWorkspaceRepos({ force: true });
void node.getParent()?.triggerChange(true);
}),
registerViewCommand(
this.getQualifiedCommand('convert'),
async (node: RepositoriesNode) => {

Načítá se…
Zrušit
Uložit