@@ -340,17 +340,16 @@ class LSPPopup extends VDomRenderer<LSPStatus.Model> {
340
340
) ;
341
341
}
342
342
) ;
343
+ const trans = this . model . trans ;
343
344
return (
344
345
< div className = { 'lsp-popover-content' } >
345
346
< div className = { 'lsp-servers-menu' } >
346
- < h3 className = { 'lsp-servers-title' } >
347
- { this . model . trans . __ ( 'LSP servers' ) }
348
- </ h3 >
347
+ < h3 className = { 'lsp-servers-title' } > { trans . __ ( 'LSP servers' ) } </ h3 >
349
348
< div className = { 'lsp-servers-lists' } >
350
349
{ servers_available . length ? (
351
350
< CollapsibleList
352
351
key = { 'available' }
353
- title = { this . model . trans . __ ( 'Available' ) }
352
+ title = { trans . __ ( 'Available' ) }
354
353
list = { servers_available }
355
354
startCollapsed = { true }
356
355
/>
@@ -360,7 +359,7 @@ class LSPPopup extends VDomRenderer<LSPStatus.Model> {
360
359
{ running_servers . length ? (
361
360
< CollapsibleList
362
361
key = { 'running' }
363
- title = { this . model . trans . __ ( 'Running' ) }
362
+ title = { trans . __ ( 'Running' ) }
364
363
list = { running_servers }
365
364
/>
366
365
) : (
@@ -369,7 +368,7 @@ class LSPPopup extends VDomRenderer<LSPStatus.Model> {
369
368
{ missing_languages . length ? (
370
369
< CollapsibleList
371
370
key = { 'missing' }
372
- title = { this . model . trans . __ ( 'Missing' ) }
371
+ title = { trans . __ ( 'Missing' ) }
373
372
list = { missing_languages }
374
373
/>
375
374
) : (
@@ -378,15 +377,15 @@ class LSPPopup extends VDomRenderer<LSPStatus.Model> {
378
377
</ div >
379
378
</ div >
380
379
< div className = { 'lsp-popover-status' } >
381
- { this . model . trans . __ ( 'Documentation:' ) } { ' ' }
380
+ { trans . __ ( 'Documentation:' ) } { ' ' }
382
381
< a
383
382
href = {
384
383
'https://jupyterlab-lsp.readthedocs.io/en/latest/Language%20Servers.html'
385
384
}
386
385
target = "_blank"
387
386
rel = "noreferrer"
388
387
>
389
- { this . model . trans . __ ( 'Language Servers' ) }
388
+ { trans . __ ( 'Language Servers' ) }
390
389
</ a >
391
390
</ div >
392
391
</ div >
0 commit comments