Skip to content

Commit 1d7c28a

Browse files
committed
fix(web): show machine icons in the environment picker
1 parent cccd7e3 commit 1d7c28a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/web/src/components/CommandPalette.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import {
3030
import {
3131
type DesktopWslState,
3232
type EnvironmentId,
33+
type EnvironmentMachineKind,
3334
type FilesystemBrowseResult,
3435
type ProjectId,
3536
type SourceControlDiscoveryResult,
@@ -206,6 +207,7 @@ function getEnvironmentBrowsePlatform(os: string | null | undefined): string {
206207
interface AddProjectEnvironmentOption {
207208
readonly environmentId: EnvironmentId;
208209
readonly label: string;
210+
readonly machine: EnvironmentMachineKind;
209211
readonly isPrimary: boolean;
210212
readonly isConnected: boolean;
211213
readonly status: string;
@@ -833,6 +835,7 @@ function OpenCommandPaletteDialog(props: {
833835
runtimeLabel: environment.label,
834836
}),
835837
isPrimary,
838+
machine: resolveEnvironmentMachineKind(environment.serverConfig),
836839
isConnected: canCreateProjectInEnvironment(environment.connection.phase),
837840
status: connectionStatusText(environment.connection),
838841
};
@@ -1478,7 +1481,7 @@ function OpenCommandPaletteDialog(props: {
14781481
: option.environmentId
14791482
: option.status,
14801483
disabled: !option.isConnected,
1481-
icon: <FolderPlusIcon className={ITEM_ICON_CLASS} />,
1484+
icon: <EnvironmentMachineIcon kind={option.machine} className={ITEM_ICON_CLASS} />,
14821485
keepOpen: true,
14831486
run: async () => {
14841487
startAddProjectSourceSelection(option.environmentId);

0 commit comments

Comments
 (0)