Fix container cleanup message disappearing - causing apparent hang (#19910)

* Fix container cleanup message causing apparent hang

* remove comment
This commit is contained in:
Charles Gagnon
2022-07-05 08:27:45 -07:00
committed by GitHub
parent 416e607f32
commit 8954b17c07

View File

@@ -181,7 +181,11 @@ export class DeployService {
// Clean up existing docker image
const containerIds = await this.getCurrentDockerContainer(imageLabel);
if (containerIds.length > 0) {
const result = await vscode.window.showWarningMessage(constants.containerAlreadyExistForProject, constants.yesString, constants.noString);
const result = await vscode.window.showQuickPick([constants.yesString, constants.noString],
{
title: constants.containerAlreadyExistForProject,
ignoreFocusOut: true
});
if (result === constants.yesString) {
this.logToOutput(constants.cleaningDockerImagesMessage);
await this.cleanDockerObjects(containerIds, ['docker stop', 'docker rm']);