@@ -30,7 +30,7 @@ type DashboardActions = {
3030 scanKeywordIndex ?: ( ) => Promise < void > | void ;
3131 configureManuals ?: ( ) => Promise < void > | void ;
3232 showOutput ?: ( ) => Promise < void > | void ;
33- copyDiagnostics ?: ( ) => Promise < void > | void ;
33+ showDiagnostics ?: ( ) => Promise < void > | void ;
3434 toggleTabNavigation ?: ( ) => Promise < void > | void ;
3535} ;
3636
@@ -56,10 +56,10 @@ type DashboardLabels = {
5656 showOutputLabel : string ;
5757 showOutputDescription : string ;
5858 showOutputDetail : string ;
59- copyDiagnosticsLabel : string ;
59+ showDiagnosticsLabel : string ;
6060 diagnosticsSingularDescription : string ;
6161 diagnosticsPluralDescription : string ;
62- copyDiagnosticsDetail : string ;
62+ showDiagnosticsDetail : string ;
6363 toggleTabNavigationLabel : string ;
6464 tabNavigationOnDescription : string ;
6565 tabNavigationOffDescription : string ;
@@ -86,14 +86,14 @@ const DEFAULT_DASHBOARD_LABELS: DashboardLabels = {
8686 showOutputLabel : '$(output) Open Log' ,
8787 showOutputDescription : 'DynaSense output' ,
8888 showOutputDetail : 'Open the extension output channel for recent scan and indexing messages.' ,
89- copyDiagnosticsLabel : '$(copy) Copy Diagnostics ' ,
89+ showDiagnosticsLabel : '$(pulse) Diagnostic Details ' ,
9090 diagnosticsSingularDescription : '1 warning' ,
9191 diagnosticsPluralDescription : '{0} warnings' ,
92- copyDiagnosticsDetail : 'Copy active -file diagnostics and DynaSense context to the clipboard .' ,
93- toggleTabNavigationLabel : '$(keyboard) Toggle Tab Navigation ' ,
92+ showDiagnosticsDetail : 'View current -file diagnostics, jump to a problem, or copy the full report .' ,
93+ toggleTabNavigationLabel : '$(keyboard) Field Tab Jump ' ,
9494 tabNavigationOnDescription : 'On' ,
9595 tabNavigationOffDescription : 'Off' ,
96- toggleTabNavigationDetail : 'Switch fixed-width LS-DYNA field navigation for the Tab key .' ,
96+ toggleTabNavigationDetail : 'Switch Tab-key jumps between fixed-width LS-DYNA fields .' ,
9797} ;
9898
9999function resolveDashboardLabels ( overrides : Partial < DashboardLabels > = { } ) : DashboardLabels {
@@ -168,15 +168,15 @@ function buildDashboardItems(context: DashboardContext = {}): DashboardItem[] {
168168 ? labels . diagnosticsSingularDescription
169169 : formatLabelTemplate ( labels . diagnosticsPluralDescription , warningCount ) ;
170170
171- return [
172- {
173- id : 'showHealth' ,
174- label : labels . showHealthLabel ,
175- description : healthIssueCount > 0
176- ? formatLabelTemplate ( labels . healthIssuesDescription , healthIssueCount )
177- : labels . healthReadyDescription ,
178- detail : labels . showHealthDetail ,
179- } ,
171+ const healthItem = {
172+ id : 'showHealth' ,
173+ label : labels . showHealthLabel ,
174+ description : healthIssueCount > 0
175+ ? formatLabelTemplate ( labels . healthIssuesDescription , healthIssueCount )
176+ : labels . healthReadyDescription ,
177+ detail : labels . showHealthDetail ,
178+ } ;
179+ const items = [
180180 {
181181 id : 'scanIncludes' ,
182182 label : labels . scanIncludesLabel ,
@@ -189,31 +189,39 @@ function buildDashboardItems(context: DashboardContext = {}): DashboardItem[] {
189189 description : labels . scanKeywordIndexDescription ,
190190 detail : labels . scanKeywordIndexDetail ,
191191 } ,
192+ {
193+ id : 'toggleTabNavigation' ,
194+ label : labels . toggleTabNavigationLabel ,
195+ description : tabNavigationEnabled ? labels . tabNavigationOnDescription : labels . tabNavigationOffDescription ,
196+ detail : labels . toggleTabNavigationDetail ,
197+ } ,
192198 {
193199 id : 'configureManuals' ,
194200 label : labels . configureManualsLabel ,
195201 description : manualReady ? labels . manualReadyDescription : labels . manualSetupDescription ,
196202 detail : labels . configureManualsDetail ,
197203 } ,
204+ {
205+ id : 'showDiagnostics' ,
206+ label : labels . showDiagnosticsLabel ,
207+ description : diagnosticsDescription ,
208+ detail : labels . showDiagnosticsDetail ,
209+ } ,
198210 {
199211 id : 'showOutput' ,
200212 label : labels . showOutputLabel ,
201213 description : labels . showOutputDescription ,
202214 detail : labels . showOutputDetail ,
203215 } ,
204- {
205- id : 'copyDiagnostics' ,
206- label : labels . copyDiagnosticsLabel ,
207- description : diagnosticsDescription ,
208- detail : labels . copyDiagnosticsDetail ,
209- } ,
210- {
211- id : 'toggleTabNavigation' ,
212- label : labels . toggleTabNavigationLabel ,
213- description : tabNavigationEnabled ? labels . tabNavigationOnDescription : labels . tabNavigationOffDescription ,
214- detail : labels . toggleTabNavigationDetail ,
215- } ,
216216 ] ;
217+
218+ if ( healthIssueCount > 0 ) {
219+ items . unshift ( healthItem ) ;
220+ } else {
221+ items . push ( healthItem ) ;
222+ }
223+
224+ return items ;
217225}
218226
219227class LsdynaStatusBarDashboard {
0 commit comments