fix(web): show machine icons in the environment picker (#9668)

This commit is contained in:
Theo Browne authored and GitHub committed 2026-09-04 06:32:44 -07:00
1 parent cccd7e3c88
commit 082cab2246
1 file changed
+4 -1
+4 -1
View File
@@ -30,6 +30,7 @@ import {
import {
type DesktopWslState,
type EnvironmentId,
type EnvironmentMachineKind,
type FilesystemBrowseResult,
type ProjectId,
type SourceControlDiscoveryResult,
@@ -206,6 +207,7 @@ function getEnvironmentBrowsePlatform(os: string | null | undefined): string {
interface AddProjectEnvironmentOption {
readonly environmentId: EnvironmentId;
readonly label: string;
readonly machine: EnvironmentMachineKind;
readonly isPrimary: boolean;
readonly isConnected: boolean;
readonly status: string;
@@ -833,6 +835,7 @@ function OpenCommandPaletteDialog(props: {
runtimeLabel: environment.label,
}),
isPrimary,
machine: resolveEnvironmentMachineKind(environment.serverConfig),
isConnected: canCreateProjectInEnvironment(environment.connection.phase),
status: connectionStatusText(environment.connection),
};
@@ -1478,7 +1481,7 @@ function OpenCommandPaletteDialog(props: {
: option.environmentId
: option.status,
disabled: !option.isConnected,
icon: <FolderPlusIcon className={ITEM_ICON_CLASS} />,
icon: <EnvironmentMachineIcon kind={option.machine} className={ITEM_ICON_CLASS} />,
keepOpen: true,
run: async () => {
startAddProjectSourceSelection(option.environmentId);