Fix vscode it not opening in containers

This commit is contained in:
crschnick 2024-09-15 07:22:11 +00:00
parent b8a2d80b60
commit c430d9857c

View file

@ -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"); LinuxPathType ZED_LINUX = new LinuxPathType("app.zed", "zed");