Skip to content

Commit 0c49c30

Browse files
sergeibbbd13
authored andcommitted
Removes the link from the Launchpad indicator
(#3837, #4390)
1 parent a7b2b45 commit 0c49c30

File tree

3 files changed

+35
-6
lines changed

3 files changed

+35
-6
lines changed

contributions.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16781,7 +16781,12 @@
1678116781
"order": 1,
1678216782
"welcomeContent": [
1678316783
{
16784-
"contents": "[Launchpad](command:gitlens.views.launchpad.info \"Learn about Launchpad\") — organizes your pull requests into actionable groups to help you focus and keep your team unblocked."
16784+
"contents": "[Launchpad](command:gitlens.views.launchpad.info \"Learn about Launchpad\") — organizes your pull requests into actionable groups to help you focus and keep your team unblocked.",
16785+
"when": "gitlens:walkthroughSupported"
16786+
},
16787+
{
16788+
"contents": "Launchpad — organizes your pull requests into actionable groups to help you focus and keep your team unblocked.",
16789+
"when": "!gitlens:walkthroughSupported"
1678516790
},
1678616791
{
1678716792
"contents": "[Connect an Integration...](command:gitlens.showLaunchpad?%7B%22source%22%3A%22launchpad-view%22%7D)\n\nAllows Launchpad to organize your pull requests into actionable groups and keep your team unblocked.",
@@ -16888,7 +16893,11 @@
1688816893
},
1688916894
{
1689016895
"contents": "[Launchpad](command:gitlens.views.launchpad.info \"Learn about Launchpad\") — organizes your pull requests into actionable groups to help you focus and keep your team unblocked.",
16891-
"when": "!gitlens:views:scm:grouped:loading && gitlens:views:scm:grouped:view == launchpad"
16896+
"when": "!gitlens:views:scm:grouped:loading && gitlens:views:scm:grouped:view == launchpad && gitlens:walkthroughSupported"
16897+
},
16898+
{
16899+
"contents": "Launchpad — organizes your pull requests into actionable groups to help you focus and keep your team unblocked.",
16900+
"when": "!gitlens:views:scm:grouped:loading && gitlens:views:scm:grouped:view == launchpad && !gitlens:walkthroughSupported"
1689216901
},
1689316902
{
1689416903
"contents": "[Connect an Integration...](command:gitlens.showLaunchpad?%7B%22source%22%3A%22launchpad-view%22%7D)\n\nAllows Launchpad to organize your pull requests into actionable groups and keep your team unblocked.",

package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23631,7 +23631,13 @@
2363123631
},
2363223632
{
2363323633
"view": "gitlens.views.launchpad",
23634-
"contents": "[Launchpad](command:gitlens.views.launchpad.info \"Learn about Launchpad\") — organizes your pull requests into actionable groups to help you focus and keep your team unblocked."
23634+
"contents": "[Launchpad](command:gitlens.views.launchpad.info \"Learn about Launchpad\") — organizes your pull requests into actionable groups to help you focus and keep your team unblocked.",
23635+
"when": "gitlens:walkthroughSupported"
23636+
},
23637+
{
23638+
"view": "gitlens.views.launchpad",
23639+
"contents": "Launchpad — organizes your pull requests into actionable groups to help you focus and keep your team unblocked.",
23640+
"when": "!gitlens:walkthroughSupported"
2363523641
},
2363623642
{
2363723643
"view": "gitlens.views.launchpad",
@@ -23691,7 +23697,12 @@
2369123697
{
2369223698
"view": "gitlens.views.scm.grouped",
2369323699
"contents": "[Launchpad](command:gitlens.views.launchpad.info \"Learn about Launchpad\") — organizes your pull requests into actionable groups to help you focus and keep your team unblocked.",
23694-
"when": "!gitlens:views:scm:grouped:loading && gitlens:views:scm:grouped:view == launchpad"
23700+
"when": "!gitlens:views:scm:grouped:loading && gitlens:views:scm:grouped:view == launchpad && gitlens:walkthroughSupported"
23701+
},
23702+
{
23703+
"view": "gitlens.views.scm.grouped",
23704+
"contents": "Launchpad — organizes your pull requests into actionable groups to help you focus and keep your team unblocked.",
23705+
"when": "!gitlens:views:scm:grouped:loading && gitlens:views:scm:grouped:view == launchpad && !gitlens:walkthroughSupported"
2369523706
},
2369623707
{
2369723708
"view": "gitlens.views.scm.grouped",

src/plus/launchpad/launchpadIndicator.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { once } from '../../system/event';
1111
import { groupByMap } from '../../system/iterable';
1212
import { wait } from '../../system/promise';
1313
import { pluralize } from '../../system/string';
14+
import { isWalkthroughSupported } from '../../telemetry/walkthroughStateProvider';
1415
import type { ConnectionStateChangeEvent } from '../integrations/integrationService';
1516
import type { LaunchpadCommandArgs } from './launchpad';
1617
import type { LaunchpadItem, LaunchpadProvider, LaunchpadRefreshEvent } from './launchpadProvider';
@@ -252,12 +253,20 @@ export class LaunchpadIndicator implements Disposable {
252253
tooltip.isTrusted = true;
253254

254255
tooltip.appendMarkdown(`GitLens Launchpad ${proBadge}\u00a0\u00a0\u00a0\u00a0—\u00a0\u00a0\u00a0\u00a0`);
255-
tooltip.appendMarkdown(`[$(question)](command:gitlens.launchpad.indicator.action?%22info%22 "What is this?")`);
256+
if (isWalkthroughSupported()) {
257+
tooltip.appendMarkdown(
258+
`[$(question)](command:gitlens.launchpad.indicator.action?%22info%22 "What is this?")`,
259+
);
260+
}
256261
tooltip.appendMarkdown('\u00a0');
257262
tooltip.appendMarkdown(`[$(gear)](command:workbench.action.openSettings?%22gitlens.launchpad%22 "Settings")`);
258263
tooltip.appendMarkdown('\u00a0\u00a0|\u00a0\u00a0');
259264
tooltip.appendMarkdown(`[$(circle-slash) Hide](command:gitlens.launchpad.indicator.action?%22hide%22 "Hide")`);
260265

266+
const launchpadLink = isWalkthroughSupported()
267+
? '[Launchpad](command:gitlens.launchpad.indicator.action?%22info%22 "Learn about Launchpad")'
268+
: 'Launchpad';
269+
261270
if (
262271
state === 'idle' ||
263272
state === 'disconnected' ||
@@ -266,7 +275,7 @@ export class LaunchpadIndicator implements Disposable {
266275
) {
267276
tooltip.appendMarkdown('\n\n---\n\n');
268277
tooltip.appendMarkdown(
269-
'[Launchpad](command:gitlens.launchpad.indicator.action?%22info%22 "Learn about Launchpad") organizes your pull requests into actionable groups to help you focus and keep your team unblocked.',
278+
`${launchpadLink} organizes your pull requests into actionable groups to help you focus and keep your team unblocked.`,
270279
);
271280
tooltip.appendMarkdown(
272281
"\n\nIt's always accessible using the `GitLens: Open Launchpad` command from the Command Palette.",

0 commit comments

Comments
 (0)