File tree Expand file tree Collapse file tree 4 files changed +56
-18
lines changed
ui-components/style/icons/lsp Expand file tree Collapse file tree 4 files changed +56
-18
lines changed Original file line number Diff line number Diff line change 4
4
import { defaultSanitizer } from '@jupyterlab/apputils' ;
5
5
import { CodeEditor } from '@jupyterlab/codeeditor' ;
6
6
import { renderText } from '@jupyterlab/rendermime' ;
7
- import { HoverBox , LabIcon } from '@jupyterlab/ui-components' ;
7
+ import { codeCheckIcon , HoverBox , LabIcon } from '@jupyterlab/ui-components' ;
8
8
import { IIterator , IterableOrArrayLike , toArray } from '@lumino/algorithm' ;
9
9
import { JSONExt , JSONObject } from '@lumino/coreutils' ;
10
10
import { IDisposable } from '@lumino/disposable' ;
@@ -324,6 +324,17 @@ export class Completer extends Widget {
324
324
ul . appendChild ( li ) ;
325
325
}
326
326
node . appendChild ( ul ) ;
327
+
328
+ // Add elixir-lsp logo & tip
329
+ let logoDiv = document . createElement ( 'div' ) ;
330
+ logoDiv . className = 'jp-Completer-footer' ;
331
+ logoDiv . innerHTML = codeCheckIcon . svgstr ;
332
+ let logoTip = document . createElement ( 'span' ) ;
333
+ logoTip . innerText = 'Powered by ElixirLsp' ;
334
+ logoTip . className = 'jp-Completer-footer-tip' ;
335
+ logoDiv . appendChild ( logoTip ) ;
336
+ node . appendChild ( logoDiv ) ;
337
+
327
338
return node ;
328
339
}
329
340
Original file line number Diff line number Diff line change 15
15
box-shadow : var (--jp-elevation-z6 );
16
16
background : var (--jp-layout-color1 );
17
17
color : var (--jp-content-font-color1 );
18
+
18
19
/*border: var(--jp-border-width) solid var(--jp-border-color1);*/
19
20
padding : 4px ;
20
21
display : flex;
41
42
white-space : pre-wrap;
42
43
}
43
44
45
+ .jp-Completer-footer {
46
+ position : absolute;
47
+ bottom : 4px ;
48
+ padding-left : 12px ;
49
+ }
50
+
51
+ .jp-Completer-footer-tip {
52
+ color : # bcbcbc ;
53
+ font-size : 10px ;
54
+ margin-left : 4px ;
55
+ }
56
+
44
57
.jp-Completer-list {
45
- margin : 0 ;
58
+ margin : 0 0 24 px ;
46
59
padding : 0 ;
47
60
list-style-type : none;
48
61
overflow-y : scroll;
127
140
}
128
141
129
142
.jp-Completer-item .jp-mod-active {
130
- background : var (--jp-brand-color1 );
131
- color : white;
143
+ color : var (--jp-brand-color1 );
144
+ font-weight : bold;
145
+
146
+ /*color: white;*/
132
147
}
133
148
134
149
.jp-Completer-item .jp-Completer-match mark {
142
157
}
143
158
144
159
.jp-Completer-type [data-color-index = '1' ] {
145
- background : # 1f77b4 ;
160
+ color : # 1f77b4 ;
146
161
}
147
162
148
163
.jp-Completer-type [data-color-index = '2' ] {
149
- background : # ff7f0e ;
164
+ color : # ff7f0e ;
150
165
}
151
166
152
167
.jp-Completer-type [data-color-index = '3' ] {
153
- background : # 2ca02c ;
168
+ color : # 2ca02c ;
154
169
}
155
170
156
171
.jp-Completer-type [data-color-index = '4' ] {
157
- background : # d62728 ;
172
+ color : # d62728 ;
158
173
}
159
174
160
175
.jp-Completer-type [data-color-index = '5' ] {
161
- background : # 9467bd ;
176
+ color : # 9467bd ;
162
177
}
163
178
164
179
.jp-Completer-type [data-color-index = '6' ] {
165
- background : # 8c564b ;
180
+ color : # 8c564b ;
166
181
}
167
182
168
183
.jp-Completer-type [data-color-index = '7' ] {
169
- background : # e377c2 ;
184
+ color : # e377c2 ;
170
185
}
171
186
172
187
.jp-Completer-type [data-color-index = '8' ] {
173
- background : # 7f7f7f ;
188
+ color : # 7f7f7f ;
174
189
}
175
190
176
191
.jp-Completer-type [data-color-index = '9' ] {
177
- background : # bcbd22 ;
192
+ color : # bcbd22 ;
178
193
}
179
194
180
195
.jp-Completer-type [data-color-index = '10' ] {
181
- background : # 17becf ;
196
+ color : # 17becf ;
182
197
}
183
198
184
199
.jp-Completer-loading-bar-container {
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ dependencies = [
40
40
" ipykernel" ,
41
41
" jinja2>=3.0.3" ,
42
42
" jupyter_core" ,
43
+ " elixir-lsp>=1.5.1" ,
43
44
" jupyter_server_ydoc>=0.1.9,<0.2.0" ,
44
45
" elixirlab-server>=2.16.5" ,
45
46
" elixir-shim>=0.2.2" ,
You can’t perform that action at this time.
0 commit comments