@@ -314,6 +314,7 @@ export class MainPanel extends React.Component<IMainPanelProps, IMainPanelState>
314314 onCodeCreated = { this . editableCodeCreated }
315315 onCodeChange = { this . codeChange }
316316 monacoTheme = { this . state . monacoTheme }
317+ openLink = { this . openLink }
317318 />
318319 </ ErrorBoundary >
319320 </ div >
@@ -400,7 +401,8 @@ export class MainPanel extends React.Component<IMainPanelProps, IMainPanelState>
400401 skipNextScroll : this . state . skipNextScroll ? true : false ,
401402 monacoTheme : this . state . monacoTheme ,
402403 onCodeCreated : this . readOnlyCodeCreated ,
403- onCodeChange : this . codeChange
404+ onCodeChange : this . codeChange ,
405+ openLink : this . openLink
404406 } ;
405407 }
406408 private getToolbarProps = ( baseTheme : string ) : IToolbarPanelProps => {
@@ -481,6 +483,10 @@ export class MainPanel extends React.Component<IMainPanelProps, IMainPanelState>
481483 this . postOffice . sendMessage < M , T > ( type , payload ) ;
482484 }
483485
486+ private openLink = ( uri : monacoEditor . Uri ) => {
487+ this . sendMessage ( HistoryMessages . OpenLink , uri . toString ( ) ) ;
488+ }
489+
484490 private getAllCells = ( ) => {
485491 // Send all of our cells back to the other side
486492 const cells = this . state . cellVMs . map ( ( cellVM : ICellViewModel ) => {
0 commit comments