Browse Source

Adds show workspaces command and cloud icons

main
Keith Daulton 1 year ago
parent
commit
26ad1185e6
6 changed files with 32 additions and 3 deletions
  1. +9
    -0
      package.json
  2. +3
    -0
      src/commands/showView.ts
  3. +1
    -0
      src/constants.ts
  4. +1
    -1
      src/views/workspacesView.ts
  5. +10
    -1
      src/webviews/apps/home/home.html
  6. +8
    -1
      src/webviews/apps/welcome/welcome.html

+ 9
- 0
package.json View File

@ -4788,6 +4788,11 @@
"category": "GitLens+"
},
{
"command": "gitlens.showWorkspacesView",
"title": "Show GitKraken Worktrees View",
"category": "GitLens+"
},
{
"command": "gitlens.compareWith",
"title": "Compare References...",
"category": "GitLens",
@ -7989,6 +7994,10 @@
"when": "gitlens:enabled && !gitlens:hasVirtualFolders"
},
{
"command": "gitlens.showWorkspacesView",
"when": "gitlens:enabled && !gitlens:hasVirtualFolders"
},
{
"command": "gitlens.compareWith",
"when": "gitlens:enabled && !gitlens:hasVirtualFolders"
},

+ 3
- 0
src/commands/showView.ts View File

@ -23,6 +23,7 @@ export class ShowViewCommand extends Command {
Commands.ShowTagsView,
Commands.ShowTimelineView,
Commands.ShowWorktreesView,
Commands.ShowWorkspacesView,
]);
}
@ -64,6 +65,8 @@ export class ShowViewCommand extends Command {
return this.container.timelineView.show();
case Commands.ShowWorktreesView:
return this.container.worktreesView.show();
case Commands.ShowWorkspacesView:
return this.container.workspacesView.show();
}
return Promise.resolve(undefined);

+ 1
- 0
src/constants.ts View File

@ -279,6 +279,7 @@ export const enum Commands {
ShowTimelineView = 'gitlens.showTimelineView',
ShowWelcomePage = 'gitlens.showWelcomePage',
ShowWorktreesView = 'gitlens.showWorktreesView',
ShowWorkspacesView = 'gitlens.showWorkspacesView',
StashApply = 'gitlens.stashApply',
StashSave = 'gitlens.stashSave',
StashSaveFiles = 'gitlens.stashSaveFiles',

+ 1
- 1
src/views/workspacesView.ts View File

@ -62,7 +62,7 @@ export class WorkspacesView extends ViewBase
private async updateDescription() {
const subscription = await this.container.subscription.getSubscription();
this.description = subscription.state === SubscriptionState.Paid ? undefined : '';
this.description = subscription.state === SubscriptionState.Paid ? undefined : '☁️';
}
override get canReveal(): boolean {

+ 10
- 1
src/webviews/apps/home/home.html View File

@ -154,7 +154,7 @@
aria-label="Open Focus"
data-requires="repo"
><code-icon class="nav-list__icon" icon="target"></code-icon
><span class="nav-list__label">Focus </span></a
><span class="nav-list__label">Focus ☁️</span></a
>
<a
class="nav-list__item"
@ -185,6 +185,15 @@
>
<a
class="nav-list__item"
href="command:gitlens.showWorkspacesView"
title="Show Workspaces view"
aria-label="Show Workspaces view"
data-requires="repo"
><code-icon class="nav-list__icon" icon="gl-worktrees-view"></code-icon
><span class="nav-list__label">Workspaces ☁️</span></a
>
<a
class="nav-list__item"
href="command:gitlens.showWorktreesView"
title="Show Worktrees view"
aria-label="Show Worktrees view"

+ 8
- 1
src/webviews/apps/welcome/welcome.html View File

@ -305,7 +305,7 @@
data-requires="repo"
title="Open Focus"
aria-label="Open Focus"
><code-icon icon="target"></code-icon><span>Focus </span></a
><code-icon icon="target"></code-icon><span>Focus ☁️</span></a
>
<a
href="command:gitlens.showCommitsView"
@ -343,6 +343,13 @@
><code-icon icon="gl-search-view"></code-icon>Search &amp; Compare</a
>
<a
href="command:gitlens.showWorkspacesView"
data-requires="repo"
title="Show Workspaces view"
aria-label="Show Workspaces view"
><code-icon icon="gl-worktrees-view" size="20"></code-icon>Workspaces ☁️</a
>
<a
href="command:gitlens.showWorktreesView"
data-requires="repo"
title="Show Worktrees view"

Loading…
Cancel
Save