Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for VSCode based IDE inside Flatpak #1577

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

acolombier
Copy link
Contributor

This adds support for VSCode based IDE installed via Flatpak on Linux. Note that this depends on a limitation in open-remote-ssh

Note: this is also adding support for Codium Insiders. Let me know if you want me to split the commit or PR

@acolombier acolombier force-pushed the feat/flatpak-ide-support branch from a442ad7 to 59cb805 Compare January 19, 2025 16:46
@acolombier acolombier force-pushed the feat/flatpak-ide-support branch from 59cb805 to cd4654f Compare January 19, 2025 16:48
Copy link
Member

@pascalbreuninger pascalbreuninger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, couple of small comments. Thanks for the contribution again!

Just as a reminder, we'll need to create a follow up PR to display VSCodium Insiders in DevPod Desktop.

Edit: linting failed

Name: config.IDECodiumInsiders,
DisplayName: "Codium Insiders",
Options: vscode.Options,
Icon: "https://devpod.sh/assets/codium_insiders.svg", // TODO to be uploaded
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is available now, you can remove the TODO :)

@@ -24,5 +24,6 @@ const (
IDEPositron IDE = "positron"
IDEMarimo IDE = "marimo"
IDECodium IDE = "codium"
IDECodiumInsiders IDE = "codium-insiders"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll have to expose this in DevPod Desktop as well, will create a follow up PR

return fmt.Errorf("couldn't find the %s binary", flavor)
}

if codePath[0] == "flatpak" {
log.Debugf("Running with Flatpak suing the package %s.", codePath[2])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick:

Suggested change
log.Debugf("Running with Flatpak suing the package %s.", codePath[2])
log.Debugf("Running with Flatpak using the package %s.", codePath[2])

log.Warnf("The IDE is already running via Flatpak. If you are encountering SSH connectivity issues, make sure to give read access to your SSH config file (e.g flatpak override %s --filesystem=%s) and restart your IDE.", codePath[2], sshConfigPath)
}

codePath = slices.Insert(codePath, 2, fmt.Sprintf("--filesystem=%s:ro", sshConfigPath))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see. Nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants