Skip to content

Commit 2fdc9b2

Browse files
Adds info button to Workspaces View title with link to help page (#2737)
Adds info button to Workspaces View title with link to help page
1 parent 168b9e2 commit 2fdc9b2

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6902,6 +6902,12 @@
69026902
"category": "GitLens",
69036903
"icon": "$(add)"
69046904
},
6905+
{
6906+
"command": "gitlens.views.workspaces.info",
6907+
"title": "Learn more about GitKraken Workspaces...",
6908+
"category": "GitLens",
6909+
"icon": "$(info)"
6910+
},
69056911
{
69066912
"command": "gitlens.views.workspaces.convert",
69076913
"title": "Convert to Cloud Workspace...",
@@ -9450,6 +9456,10 @@
94509456
"command": "gitlens.views.timeline.refresh",
94519457
"when": "false"
94529458
},
9459+
{
9460+
"command": "gitlens.views.workspaces.info",
9461+
"when": "false"
9462+
},
94539463
{
94549464
"command": "gitlens.views.workspaces.convert",
94559465
"when": "false"
@@ -10929,6 +10939,11 @@
1092910939
"when": "view =~ /^gitlens\\.views\\.timeline/",
1093010940
"group": "navigation@99"
1093110941
},
10942+
{
10943+
"command": "gitlens.views.workspaces.info",
10944+
"when": "view =~ /^gitlens\\.views\\.workspaces/",
10945+
"group": "8_info@1"
10946+
},
1093210947
{
1093310948
"command": "gitlens.views.workspaces.create",
1093410949
"when": "view =~ /^gitlens\\.views\\.workspaces/ && gitlens:plus",

src/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ export type TreeViewCommands = `gitlens.views.${
399399
| `setFilesLayoutTo${'Auto' | 'List' | 'Tree'}`
400400
| `setShowAvatars${'On' | 'Off'}`}`
401401
| `workspaces.${
402+
| 'info'
402403
| 'copy'
403404
| 'refresh'
404405
| 'addRepos'

src/views/workspacesView.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Disposable } from 'vscode';
2-
import { ProgressLocation, window } from 'vscode';
2+
import { env, ProgressLocation, Uri, window } from 'vscode';
33
import type { WorkspacesViewConfig } from '../config';
44
import { Commands } from '../constants';
55
import type { Container } from '../container';
@@ -56,6 +56,11 @@ export class WorkspacesView extends ViewBase<'workspaces', WorkspacesViewNode, W
5656
void this.container.viewCommands;
5757

5858
return [
59+
registerViewCommand(
60+
this.getQualifiedCommand('info'),
61+
() => env.openExternal(Uri.parse('https://help.gitkraken.com/gitlens/side-bar/#workspaces-☁%ef%b8%8f')),
62+
this,
63+
),
5964
registerViewCommand(
6065
this.getQualifiedCommand('copy'),
6166
() => executeCommand(Commands.ViewsCopy, this.activeSelection, this.selection),

0 commit comments

Comments
 (0)