Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

feat(welcome): add Remote Development to the empty welcome page (#460)

l0ng-ai33d8d87ca2c2
diff --git a/src/features/welcome/ProjectsPage.tsx b/src/features/welcome/ProjectsPage.tsx
index 5e29e9e9d..b879aab65 100644
--- a/src/features/welcome/ProjectsPage.tsx
+++ b/src/features/welcome/ProjectsPage.tsx
@@ -54,6 +54,7 @@ function HeaderButtons() {
/** Shown when there are no recent projects (IntelliJ's empty welcome). */
function Landing() {
const canClone = useActions((s) => s.actions.has("vcs.clone"));
+ const canRemote = useActions((s) => s.actions.has("remote.connect"));
const opening = useProject((s) => s.opening);
const shortcut = shortcutLabel("file.openProject");
return (
@@ -88,6 +89,19 @@ function Landing() {
<T>Clone Repository</T>
</button>
)}
+ {canRemote && (
+ <button
+ type="button"
+ className={styles.landingAction}
+ disabled={opening}
+ onClick={() => void executeAction("remote.connect")}
+ >
+ <span className={styles.landingIcon}>
+ <Icon name="terminal" size={20} />
+ </span>
+ <T>Remote Development</T>
+ </button>
+ )}
</div>
{shortcut && (
<div className={styles.landingHint}>