File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
packages/jupyterlab-lsp/src/components Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -142,17 +142,14 @@ class LSPPopup extends VDomRenderer<LSPStatus.Model> {
142
142
143
143
let status = '' ;
144
144
if ( connection ?. isInitialized ) {
145
- status = this . model . trans . __ ( 'initialized' ) ;
145
+ status = 'initialized' ;
146
146
} else if ( connection ?. isConnected ) {
147
- status = this . model . trans . __ ( 'connected' ) ;
147
+ status = 'connected' ;
148
148
} else {
149
- status = this . model . trans . __ ( 'not connected' ) ;
149
+ status = 'not connected' ;
150
150
}
151
151
152
- const icon =
153
- status === this . model . trans . __ ( 'initialized' )
154
- ? circleIcon
155
- : circleEmptyIcon ;
152
+ const icon = status === 'initialized' ? circleIcon : circleEmptyIcon ;
156
153
157
154
return (
158
155
< li key = { i } >
@@ -161,7 +158,7 @@ class LSPPopup extends VDomRenderer<LSPStatus.Model> {
161
158
adapter = { this . model . adapter }
162
159
/>
163
160
< span className = { 'lsp-document-status' } >
164
- { status }
161
+ { this . model . trans . __ ( status ) }
165
162
< icon . react
166
163
tag = "span"
167
164
className = "lsp-document-status-icon"
You can’t perform that action at this time.
0 commit comments