@@ -28,6 +28,7 @@ import { watchHeadlessLogs } from "../components/PrebuildLogs";
28
28
import { getGitpodService , gitpodHostUrl } from "../service/service" ;
29
29
import { StartPage , StartPhase , StartWorkspaceError } from "./StartPage" ;
30
30
import ConnectToSSHModal from "../workspaces/ConnectToSSHModal" ;
31
+ import Alert from "../components/Alert" ;
31
32
const sessionId = v4 ( ) ;
32
33
33
34
const WorkspaceLogs = React . lazy ( ( ) => import ( "../components/WorkspaceLogs" ) ) ;
@@ -391,6 +392,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
391
392
let title = undefined ;
392
393
let statusMessage = ! ! error ? undefined : < p className = "text-base text-gray-400" > Preparing workspace …</ p > ;
393
394
const contextURL = ContextURL . getNormalizedURL ( this . state . workspace ) ?. toString ( ) ;
395
+ const useLatest = ! ! this . state . workspaceInstance ?. configuration ?. ideConfig ?. useLatest ;
394
396
395
397
switch ( this . state ?. workspaceInstance ?. status . phase ) {
396
398
// unknown indicates an issue within the system in that it cannot determine the actual phase of
@@ -524,6 +526,19 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
524
526
{ openLinkLabel }
525
527
</ button >
526
528
</ div >
529
+ { ! useLatest && (
530
+ < Alert type = "info" className = "mt-4 w-96" >
531
+ You can change the default editor for opening workspaces in{ " " }
532
+ < a
533
+ className = "gp-link"
534
+ target = "_blank"
535
+ href = { gitpodHostUrl . asPreferences ( ) . toString ( ) }
536
+ >
537
+ user preferences
538
+ </ a >
539
+ .
540
+ </ Alert >
541
+ ) }
527
542
{ this . state . isSSHModalVisible === true && this . state . ownerToken && (
528
543
< ConnectToSSHModal
529
544
workspaceId = { this . props . workspaceId }
@@ -626,7 +641,6 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
626
641
) ;
627
642
break ;
628
643
}
629
- const useLatest = ! ! this . state . workspaceInstance ?. configuration ?. ideConfig ?. useLatest ;
630
644
return (
631
645
< StartPage phase = { phase } error = { error } title = { title } showLatestIdeWarning = { useLatest } >
632
646
{ statusMessage }
0 commit comments