File tree Expand file tree Collapse file tree 5 files changed +26
-16
lines changed Expand file tree Collapse file tree 5 files changed +26
-16
lines changed Original file line number Diff line number Diff line change 9
9
** /lib
10
10
** /node_modules
11
11
** /package.json
12
+ ** /plugin.json
12
13
** /static
13
14
atest
14
15
coverage
Original file line number Diff line number Diff line change 25
25
"type" : " object" ,
26
26
"default" : {},
27
27
"properties" : {
28
- "config " : {
29
- "title" : " Language Server Configuration " ,
28
+ "settings " : {
29
+ "title" : " Language Server Settings " ,
30
30
"description" : " Configuration to be sent to language server over LSP when initialized: see the specific language server's documentation for more" ,
31
31
"type" : " object" ,
32
32
"default" : {}
37
37
"jupyter.lab.shortcuts" : [
38
38
{
39
39
"command" : " lsp:jump-to-definition-notebook" ,
40
- "keys" : [" Accel B" ],
40
+ "keys" : [
41
+ " Accel B"
42
+ ],
41
43
"selector" : " .jp-Notebook .jp-CodeCell"
42
44
},
43
45
{
44
46
"command" : " lsp:jump-to-definition-file_editor" ,
45
- "keys" : [" Accel B" ],
47
+ "keys" : [
48
+ " Accel B"
49
+ ],
46
50
"selector" : " .jp-FileEditor"
47
51
},
48
52
{
49
53
"command" : " lsp:rename-symbol-notebook" ,
50
- "keys" : [" F2" ],
54
+ "keys" : [
55
+ " F2"
56
+ ],
51
57
"selector" : " .jp-Notebook .jp-CodeCell"
52
58
},
53
59
{
54
60
"command" : " lsp:rename-symbol-file_editor'" ,
55
- "keys" : [" F2" ],
61
+ "keys" : [
62
+ " F2"
63
+ ],
56
64
"selector" : " .jp-FileEditor"
57
65
}
58
66
]
59
- }
67
+ }
Original file line number Diff line number Diff line change @@ -150,12 +150,12 @@ export class DocumentConnectionManager {
150
150
151
151
public async updateServerConfigurations (
152
152
//TODO: define types for server configurations
153
- settings : any
153
+ allSettings : any
154
154
) {
155
155
console . log ( this . language_server_manager )
156
- for ( let language_server_id in settings ) {
157
- const config = settings [ language_server_id ] . config
158
- await Private . updateServerConfiguration ( language_server_id , config )
156
+ for ( let language_server_id in allSettings ) {
157
+ const serverSettings = allSettings [ language_server_id ]
158
+ await Private . updateServerConfiguration ( language_server_id , serverSettings )
159
159
}
160
160
}
161
161
Original file line number Diff line number Diff line change @@ -244,7 +244,6 @@ const plugin: JupyterFrontEndPlugin<void> = {
244
244
// CodeMirrorExtension.modifierKey = modifier;
245
245
// }
246
246
// });
247
-
248
247
const languageServerSettings = options . language_servers || { } ;
249
248
connection_manager . updateServerConfigurations ( languageServerSettings ) ;
250
249
}
Original file line number Diff line number Diff line change @@ -270,17 +270,19 @@ export class LspWsConnection extends events.EventEmitter
270
270
271
271
public sendConfigurationChange (
272
272
//TODO: define types for server configurations
273
- options : any
273
+ settings : any
274
274
) {
275
- console . log ( `Updated server configuration: ${ JSON . stringify ( options ) } ` )
275
+ console . log (
276
+ `Updated server configuration: ${ JSON . stringify ( settings ) } `
277
+ ) ;
276
278
if ( ! this . isReady ) {
277
279
return ;
278
280
}
279
281
280
282
this . connection . sendNotification (
281
283
'workspace/didChangeConfiguration' ,
282
- options
283
- )
284
+ settings
285
+ ) ;
284
286
}
285
287
286
288
public async getHoverTooltip (
You can’t perform that action at this time.
0 commit comments