Skip to content

Commit 3e06679

Browse files
sergeibbbd13
authored andcommitted
Cancels execution of Walkthrough DeepLink
(#3837, #4390)
1 parent 3b1d246 commit 3e06679

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/uris/deepLinks/deepLinkService.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ import { once } from '../../system/event';
3030
import { Logger } from '../../system/logger';
3131
import { maybeUri, normalizePath } from '../../system/path';
3232
import { fromBase64 } from '../../system/string';
33+
import { isWalkthroughSupported } from '../../telemetry/walkthroughStateProvider';
3334
import { showInspectView } from '../../webviews/commitDetails/actions';
3435
import type { ShowWipArgs } from '../../webviews/commitDetails/protocol';
3536
import type { ShowInCommitGraphCommandArgs } from '../../webviews/plus/graph/registration';
3637
import type { DeepLink, DeepLinkProgress, DeepLinkRepoOpenType, DeepLinkServiceContext, UriTypes } from './deepLink';
3738
import {
3839
AccountDeepLinkTypes,
3940
DeepLinkActionType,
41+
DeepLinkCommandType,
4042
DeepLinkCommandTypeToCommand,
4143
DeepLinkServiceAction,
4244
DeepLinkServiceState,
@@ -1510,6 +1512,12 @@ export class DeepLinkService implements Disposable {
15101512
break;
15111513
}
15121514

1515+
if (mainId === DeepLinkCommandType.Walkthrough && !isWalkthroughSupported()) {
1516+
action = DeepLinkServiceAction.DeepLinkErrored;
1517+
message = 'Invalid command type.';
1518+
break;
1519+
}
1520+
15131521
const command = DeepLinkCommandTypeToCommand.get(mainId);
15141522
if (command == null) {
15151523
action = DeepLinkServiceAction.DeepLinkErrored;

0 commit comments

Comments
 (0)