From f9e2233d08f5376a64772d1117d5874e58718bfe Mon Sep 17 00:00:00 2001 From: vitaliy-guliy Date: Thu, 2 Jan 2025 11:33:24 +0000 Subject: [PATCH] update Signed-off-by: vitaliy-guliy --- code/extensions/che-remote/src/extension.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/code/extensions/che-remote/src/extension.ts b/code/extensions/che-remote/src/extension.ts index f3344fbd24d..958451ab8c4 100644 --- a/code/extensions/che-remote/src/extension.ts +++ b/code/extensions/che-remote/src/extension.ts @@ -247,25 +247,6 @@ async function updateDevfile(cheApi: any): Promise { } try { - const serialized = jsYaml.dump(devfileContext); - await fs.writeFile('/projects/new-devfile.yaml', serialized); - await vscode.window.showInformationMessage('The new devfile has been written to \'/projects/new-devfile.yaml\'', { - modal: true - }); - } catch (error) { - await vscode.window.showErrorMessage(`Failed to write new devfile context to '/projects/new-devfile.yaml'. ${error}`); - return false; - } - - try { - const action = await vscode.window.showInformationMessage('The new devfile has been written to \'/projects/new-devfile.yaml\'', { - modal: true, - detail: 'Apply changes?' - }, 'Apply'); - if (action !== 'Apply') { - return false; - } - await devfileService.updateDevfile(devfileContext.devWorkspace.spec?.template); } catch (error) { if (error.body && error.body.message) {