File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,15 @@ export interface ISocketConnectionOptions {
26
26
document_path : string ;
27
27
}
28
28
29
+ export interface IServerConfigurationSettings {
30
+ /**
31
+ * The config params must be nested inside the settings keyword
32
+ */
33
+ settings : {
34
+ [ k : string ] : any ;
35
+ } ;
36
+ }
37
+
29
38
/**
30
39
* Each Widget with a document (whether file or a notebook) has its own DocumentConnectionManager
31
40
* (see JupyterLabWidgetAdapter), keeping the virtual document spaces separate if a file is opened twice.
@@ -386,8 +395,8 @@ namespace Private {
386
395
}
387
396
388
397
export function updateServerConfiguration (
389
- language_server_id : any ,
390
- settings : any
398
+ language_server_id : TLanguageServerId ,
399
+ settings : IServerConfigurationSettings
391
400
) : void {
392
401
const connection = _connections . get ( language_server_id ) ;
393
402
if ( connection ) {
Original file line number Diff line number Diff line change @@ -269,8 +269,7 @@ export class LspWsConnection extends events.EventEmitter
269
269
}
270
270
271
271
public sendConfigurationChange (
272
- // TODO: define types for server configurations
273
- settings : any
272
+ settings : protocol . DidChangeConfigurationParams
274
273
) {
275
274
console . log ( `Updated server configuration: ${ JSON . stringify ( settings ) } ` ) ;
276
275
if ( ! this . isReady ) {
You can’t perform that action at this time.
0 commit comments