Skip to content

Commit fb79ad5

Browse files
committed
Don't show Start Localstack when a user cancels docker pull
1 parent 329bad9 commit fb79ad5

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

src/plugins/setup.ts

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -237,23 +237,26 @@ export default createPlugin(
237237
}
238238

239239
/////////////////////////////////////////////////////////////////////
240-
window
241-
.showInformationMessage("LocalStack is ready to start", {
242-
title: "Start LocalStack",
243-
command: "localstack.start",
244-
})
245-
.then((selection) => {
246-
if (selection) {
247-
commands.executeCommand(selection.command);
248-
}
249-
});
250-
240+
if (!cancellationToken.isCancellationRequested) {
241+
window
242+
.showInformationMessage("LocalStack is ready to start", {
243+
title: "Start LocalStack",
244+
command: "localstack.start",
245+
})
246+
.then((selection) => {
247+
if (selection) {
248+
commands.executeCommand(selection.command);
249+
}
250+
});
251+
}
251252
telemetry.track({
252253
name: "setup_ended",
253254
payload: {
254255
namespace: "onboarding",
255256
steps: [1, 2, 3],
256-
status: "COMPLETED",
257+
status: cancellationToken.isCancellationRequested
258+
? "CANCELLED"
259+
: "COMPLETED",
257260
},
258261
});
259262
},

0 commit comments

Comments
 (0)