| ... | ... | @@ -30,6 +30,7 @@ import { |
| 30 | 30 | import { |
| 31 | 31 | type DesktopWslState, |
| 32 | 32 | type EnvironmentId, |
| 33 | type EnvironmentMachineKind, |
| 33 | 34 | type FilesystemBrowseResult, |
| 34 | 35 | type ProjectId, |
| 35 | 36 | type SourceControlDiscoveryResult, |
| ... | ... | @@ -206,6 +207,7 @@ function getEnvironmentBrowsePlatform(os: string | null | undefined): string { |
| 206 | 207 | interface AddProjectEnvironmentOption { |
| 207 | 208 | readonly environmentId: EnvironmentId; |
| 208 | 209 | readonly label: string; |
| 210 | readonly machine: EnvironmentMachineKind; |
| 209 | 211 | readonly isPrimary: boolean; |
| 210 | 212 | readonly isConnected: boolean; |
| 211 | 213 | readonly status: string; |
| ... | ... | @@ -833,6 +835,7 @@ function OpenCommandPaletteDialog(props: { |
| 833 | 835 | runtimeLabel: environment.label, |
| 834 | 836 | }), |
| 835 | 837 | isPrimary, |
| 838 | machine: resolveEnvironmentMachineKind(environment.serverConfig), |
| 836 | 839 | isConnected: canCreateProjectInEnvironment(environment.connection.phase), |
| 837 | 840 | status: connectionStatusText(environment.connection), |
| 838 | 841 | }; |
| ... | ... | @@ -1478,7 +1481,7 @@ function OpenCommandPaletteDialog(props: { |
| 1478 | 1481 | : option.environmentId |
| 1479 | 1482 | : option.status, |
| 1480 | 1483 | disabled: !option.isConnected, |
| 1481 | | icon: <FolderPlusIcon className={ITEM_ICON_CLASS} />, |
| 1484 | icon: <EnvironmentMachineIcon kind={option.machine} className={ITEM_ICON_CLASS} />, |
| 1482 | 1485 | keepOpen: true, |
| 1483 | 1486 | run: async () => { |
| 1484 | 1487 | startAddProjectSourceSelection(option.environmentId); |