Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: vitaliy-guliy <[email protected]>
  • Loading branch information
vitaliy-guliy committed Dec 19, 2024
1 parent a04b62d commit ede7683
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/extensions/che-remote/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ async function updateDevfile(cheApi: any): Promise<boolean> {
} = cheApi.getDevfileService();
const devWorkspaceGenerator = new DevWorkspaceGenerator();

await new Promise(resolve => setTimeout(resolve, 500));

let devfilePath = await selectDevfile();
await new Promise(resolve => setTimeout(resolve, 500));

if (`${process.env.PROJECTS_ROOT!}/*` === devfilePath) {
const uri = await vscode.window.showOpenDialog({
canSelectFolders: false
Expand All @@ -176,6 +180,8 @@ async function updateDevfile(cheApi: any): Promise<boolean> {
return false;
}

await new Promise(resolve => setTimeout(resolve, 500));

const action = await vscode.window.showInformationMessage(
'Workspace restart', {
modal: true, detail: `Your workspace will be restarted from ${devfilePath}. This action is not revertable.`
Expand Down

0 comments on commit ede7683

Please sign in to comment.