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