Skip to content

Commit 5580f44

Browse files
committed
Exit Debug workflow if target port selection canceled
This PR fixes #2608. Signed-off-by: Denis Golovin [email protected]
1 parent eb68847 commit 5580f44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/openshift/component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,8 @@ export class Component extends OpenShiftItem {
682682
}));
683683
const port = await window.showQuickPick(ports, {placeHolder: 'Select a URL to open in default browser'});
684684

685+
if (!port) return null;
686+
685687
config.contextPath = component.contextPath;
686688
if (config.type === 'python') {
687689
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access

0 commit comments

Comments
 (0)