mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix container cleanup message disappearing - causing apparent hang (#19910)
* Fix container cleanup message causing apparent hang * remove comment
This commit is contained in:
@@ -181,7 +181,11 @@ export class DeployService {
|
|||||||
// Clean up existing docker image
|
// Clean up existing docker image
|
||||||
const containerIds = await this.getCurrentDockerContainer(imageLabel);
|
const containerIds = await this.getCurrentDockerContainer(imageLabel);
|
||||||
if (containerIds.length > 0) {
|
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) {
|
if (result === constants.yesString) {
|
||||||
this.logToOutput(constants.cleaningDockerImagesMessage);
|
this.logToOutput(constants.cleaningDockerImagesMessage);
|
||||||
await this.cleanDockerObjects(containerIds, ['docker stop', 'docker rm']);
|
await this.cleanDockerObjects(containerIds, ['docker stop', 'docker rm']);
|
||||||
|
|||||||
Reference in New Issue
Block a user