Skip to content

Commit 403af48

Browse files
sergeibbbd13
authored andcommitted
Removes "Get Started" from menus
(#3837, #4390)
1 parent f8830f1 commit 403af48

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

contributions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,11 +1465,11 @@
14651465
},
14661466
"gitlens.getStarted": {
14671467
"label": "Get Started",
1468-
"commandPalette": true,
1468+
"commandPalette": "gitlens:walkthroughSupported",
14691469
"menus": {
14701470
"extension/context": [
14711471
{
1472-
"when": "extension =~ /^eamodio.gitlens?$/ && extensionStatus == installed",
1472+
"when": "extension =~ /^eamodio.gitlens?$/ && extensionStatus == installed && gitlens:walkthroughSupported",
14731473
"group": "9_gitlens",
14741474
"order": 1
14751475
}

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11033,6 +11033,10 @@
1103311033
"command": "gitlens.fetchRepositories",
1103411034
"when": "gitlens:repos:withRemotes && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders"
1103511035
},
11036+
{
11037+
"command": "gitlens.getStarted",
11038+
"when": "gitlens:walkthroughSupported"
11039+
},
1103611040
{
1103711041
"command": "gitlens.ghpr.views.openOrCreateWorktree",
1103811042
"when": "false"
@@ -14200,7 +14204,7 @@
1420014204
"extension/context": [
1420114205
{
1420214206
"command": "gitlens.getStarted",
14203-
"when": "extension =~ /^eamodio.gitlens?$/ && extensionStatus == installed",
14207+
"when": "extension =~ /^eamodio.gitlens?$/ && extensionStatus == installed && gitlens:walkthroughSupported",
1420414208
"group": "9_gitlens@1"
1420514209
},
1420614210
{

src/constants.context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export type ContextKeys = {
6060
'gitlens:views:scm:grouped:welcome': boolean;
6161
'gitlens:vsls': boolean | 'host' | 'guest';
6262
'gitlens:window:annotated': AnnotationStatus;
63+
'gitlens:walkthroughSupported': boolean;
6364
} & Record<`gitlens:action:${string}`, number> &
6465
Record<`gitlens:feature:unsupported:${Features}`, boolean> &
6566
Record<`gitlens:key:${Keys}`, boolean> &

src/telemetry/walkthroughStateProvider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ export class WalkthroughStateProvider implements Disposable {
162162
private subscriptionState: SubscriptionState | undefined;
163163

164164
constructor(private readonly container: Container) {
165+
void setContext('gitlens:walkthroughSupported', true);
166+
165167
this.disposables.push(
166168
this._onDidChangeProgress,
167169
this.container.usage.onDidChange(this.onUsageChanged, this),

0 commit comments

Comments
 (0)