44
55import * as Host from '../../core/host/host.js' ;
66import * as i18n from '../../core/i18n/i18n.js' ;
7+ import * as Root from '../../core/root/root.js' ;
78import type * as Platform from '../../core/platform/platform.js' ;
89import * as LitHtml from '../../ui/lit-html/lit-html.js' ;
910
@@ -50,6 +51,11 @@ const UIStrings = {
5051 * @description Text in a dialog box to prompt for feedback if the disconnection is unexpected.
5152 */
5253 sendFeedbackMessage : '[FB-only] Please send feedback if this disconnection is unexpected.' ,
54+ /**
55+ * @description Text in a dialog box to prompt for feedback if the disconnection is unexpected,
56+ * telling the user what's their session ID for easier debugging
57+ */
58+ sendFeedbackLaunchIdMessage : 'Please share the following session id when filing the feedback:' ,
5359 /**
5460 * @description Label of the FB-only 'send feedback' button.
5561 */
@@ -76,8 +82,10 @@ export class RemoteDebuggingTerminatedScreen extends VBox {
7682 < h1 class ="remote-debugging-terminated-title "> ${ i18nString ( UIStrings . title ) } </ h1 >
7783 < div class ="remote-debugging-terminated-message ">
7884 < span > ${ i18nString ( UIStrings . debuggingConnectionWasClosed ) } </ span >
85+ < br />
7986 < span class ="remote-debugging-terminated-reason "> ${ reason } </ span >
8087 </ div >
88+ ${ feedbackLink !== null && feedbackLink !== undefined ? this . #createFeedbackSection( feedbackLink ) : null }
8189 < div class ="remote-debugging-terminated-options ">
8290 < div class ="remote-debugging-terminated-label ">
8391 ${ i18nString ( UIStrings . reconnectWhenReadyByReopening ) }
@@ -95,7 +103,6 @@ export class RemoteDebuggingTerminatedScreen extends VBox {
95103 jslogContext : 'dismiss' ,
96104 } ) }
97105 </ div >
98- ${ feedbackLink !== null && feedbackLink !== undefined ? this . #createFeedbackSection( feedbackLink ) : null }
99106 ` ,
100107 this . contentElement ,
101108 { host : this } ,
@@ -121,9 +128,22 @@ export class RemoteDebuggingTerminatedScreen extends VBox {
121128 ) ;
122129 } ;
123130
131+ const launchId = Root . Runtime . Runtime . queryParam ( 'launchId' ) ;
132+
124133 return html `
125134 < div class ="remote-debugging-terminated-feedback-container ">
126135 < div class ="remote-debugging-terminated-feedback-label "> ${ i18nString ( UIStrings . sendFeedbackMessage ) } </ div >
136+ ${ launchId ?
137+ html `
138+ < div class ="remote-debugging-terminated-feedback-label ">
139+ ${ i18nString ( UIStrings . sendFeedbackLaunchIdMessage ) }
140+ </ div >
141+ < div class ="remote-debugging-terminated-feedback-launch-id ">
142+ ${ launchId }
143+ </ div >
144+ ` : ''
145+ }
146+ < br />
127147 ${
128148 createTextButton (
129149 i18nString ( UIStrings . sendFeedback ) ,
0 commit comments