Skip to content

Commit 07821af

Browse files
committed
Removes "more about start work" section from "connect integrations" step
(#3621)
1 parent b62f1f4 commit 07821af

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

src/plus/startWork/startWork.ts

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ import {
1919
} from '../../commands/quickCommand';
2020
import { ensureAccessStep } from '../../commands/quickCommand.steps';
2121
import { getSteps } from '../../commands/quickWizard.utils';
22-
import type { OpenWalkthroughCommandArgs } from '../../commands/walkthroughs';
2322
import { proBadge } from '../../constants';
24-
import { Commands } from '../../constants.commands';
2523
import type { IntegrationId } from '../../constants.integrations';
2624
import { HostingIntegrationId } from '../../constants.integrations';
2725
import type { Source, Sources, StartWorkTelemetryContext } from '../../constants.telemetry';
@@ -35,7 +33,6 @@ import { createDirectiveQuickPickItem, Directive, isDirectiveQuickPickItem } fro
3533
import { getScopedCounter } from '../../system/counter';
3634
import { fromNow } from '../../system/date';
3735
import { some } from '../../system/iterable';
38-
import { executeCommand } from '../../system/vscode/command';
3936
import { configuration } from '../../system/vscode/configuration';
4037

4138
export type StartWorkItem = {
@@ -189,21 +186,7 @@ export class StartWorkCommand extends QuickCommand<State> {
189186
state: StepState<State>,
190187
context: Context,
191188
): AsyncStepResultGenerator<{ connected: boolean | IntegrationId; resume: () => void }> {
192-
const confirmations: (QuickPickItemOfT<IntegrationId> | DirectiveQuickPickItem)[] = [
193-
createDirectiveQuickPickItem(Directive.Cancel, undefined, {
194-
label: 'Start Work lets you start work on an issue',
195-
detail: 'Click to learn more about Start Work',
196-
iconPath: new ThemeIcon('rocket'),
197-
onDidSelect: () =>
198-
// TODO: navigate to "start-work" related place
199-
void executeCommand<OpenWalkthroughCommandArgs>(Commands.OpenWalkthrough, {
200-
step: 'launchpad',
201-
source: 'launchpad',
202-
detail: 'info',
203-
}),
204-
}),
205-
createQuickPickSeparator(),
206-
];
189+
const confirmations: (QuickPickItemOfT<IntegrationId> | DirectiveQuickPickItem)[] = [];
207190

208191
for (const integration of supportedStartWorkIntegrations) {
209192
if (context.connectedIntegrations.get(integration)) {
@@ -274,19 +257,6 @@ export class StartWorkCommand extends QuickCommand<State> {
274257
const step = this.createConfirmStep(
275258
`${this.title} \u00a0\u2022\u00a0 Connect an ${hasConnectedIntegration ? 'Additional ' : ''}Integration`,
276259
[
277-
createDirectiveQuickPickItem(Directive.Cancel, undefined, {
278-
label: 'Start Work lets you start work on an issue',
279-
detail: 'Click to learn more about Start Work',
280-
iconPath: new ThemeIcon('rocket'),
281-
onDidSelect: () =>
282-
// TODO: navigate to "start-work" related place
283-
void executeCommand<OpenWalkthroughCommandArgs>(Commands.OpenWalkthrough, {
284-
step: 'launchpad',
285-
source: 'launchpad',
286-
detail: 'info',
287-
}),
288-
}),
289-
createQuickPickSeparator(),
290260
createQuickPickItemOfT(
291261
{
292262
label: `Connect an ${hasConnectedIntegration ? 'Additional ' : ''}Integration...`,

0 commit comments

Comments
 (0)