@@ -28,6 +28,7 @@ import { watchHeadlessLogs } from "../components/PrebuildLogs";
2828import { getGitpodService , gitpodHostUrl } from "../service/service" ;
2929import { StartPage , StartPhase , StartWorkspaceError } from "./StartPage" ;
3030import ConnectToSSHModal from "../workspaces/ConnectToSSHModal" ;
31+ import Alert from "../components/Alert" ;
3132const sessionId = v4 ( ) ;
3233
3334const WorkspaceLogs = React . lazy ( ( ) => import ( "../components/WorkspaceLogs" ) ) ;
@@ -391,6 +392,7 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
391392 let title = undefined ;
392393 let statusMessage = ! ! error ? undefined : < p className = "text-base text-gray-400" > Preparing workspace …</ p > ;
393394 const contextURL = ContextURL . getNormalizedURL ( this . state . workspace ) ?. toString ( ) ;
395+ const useLatest = ! ! this . state . workspaceInstance ?. configuration ?. ideConfig ?. useLatest ;
394396
395397 switch ( this . state ?. workspaceInstance ?. status . phase ) {
396398 // 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,
524526 { openLinkLabel }
525527 </ button >
526528 </ 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+ ) }
527542 { this . state . isSSHModalVisible === true && this . state . ownerToken && (
528543 < ConnectToSSHModal
529544 workspaceId = { this . props . workspaceId }
@@ -626,7 +641,6 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
626641 ) ;
627642 break ;
628643 }
629- const useLatest = ! ! this . state . workspaceInstance ?. configuration ?. ideConfig ?. useLatest ;
630644 return (
631645 < StartPage phase = { phase } error = { error } title = { title } showLatestIdeWarning = { useLatest } >
632646 { statusMessage }
0 commit comments