From c430d9857cd17984aed549b339fd593ad39f2f3c Mon Sep 17 00:00:00 2001 From: crschnick Date: Sun, 15 Sep 2024 07:22:11 +0000 Subject: [PATCH] Fix vscode it not opening in containers --- .../main/java/io/xpipe/app/prefs/ExternalEditorType.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/xpipe/app/prefs/ExternalEditorType.java b/app/src/main/java/io/xpipe/app/prefs/ExternalEditorType.java index c5a3d5b74..24fa44ba8 100644 --- a/app/src/main/java/io/xpipe/app/prefs/ExternalEditorType.java +++ b/app/src/main/java/io/xpipe/app/prefs/ExternalEditorType.java @@ -76,7 +76,13 @@ public interface ExternalEditorType extends PrefsChoiceValue { } }; - LinuxPathType VSCODE_LINUX = new LinuxPathType("app.vscode", "code"); + LinuxPathType VSCODE_LINUX = new LinuxPathType("app.vscode", "code") { + @Override + public void launch(Path file) throws Exception { + var builder = CommandBuilder.of().fixedEnvrironment("DONT_PROMPT_WSL_INSTALL", "No_Prompt_please").addFile(executable).addFile(file.toString()); + ExternalApplicationHelper.startAsync(builder); + } + }; LinuxPathType ZED_LINUX = new LinuxPathType("app.zed", "zed");