File tree 3 files changed +10
-2
lines changed 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export abstract class LanguageServerAnalysisOptionsBase implements ILanguageServ
42
42
documentSelector,
43
43
workspaceFolder,
44
44
synchronize : {
45
- configurationSection : PYTHON_LANGUAGE ,
45
+ configurationSection : this . getConfigSectionsToSynchronize ( ) ,
46
46
} ,
47
47
outputChannel : this . output ,
48
48
revealOutputChannelOn : RevealOutputChannelOn . Never ,
@@ -58,6 +58,10 @@ export abstract class LanguageServerAnalysisOptionsBase implements ILanguageServ
58
58
return this . workspace . isVirtualWorkspace ? [ { language : PYTHON_LANGUAGE } ] : PYTHON ;
59
59
}
60
60
61
+ protected getConfigSectionsToSynchronize ( ) : string [ ] {
62
+ return [ PYTHON_LANGUAGE ] ;
63
+ }
64
+
61
65
protected async getInitializationOptions ( ) : Promise < any > {
62
66
return undefined ;
63
67
}
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ export class NodeLanguageServerAnalysisOptions extends LanguageServerAnalysisOpt
26
26
super ( lsOutputChannel , workspace ) ;
27
27
}
28
28
29
+ protected getConfigSectionsToSynchronize ( ) : string [ ] {
30
+ return [ ...super . getConfigSectionsToSynchronize ( ) , 'jupyter.runStartupCommands' ] ;
31
+ }
32
+
29
33
// eslint-disable-next-line class-methods-use-this
30
34
protected async getInitializationOptions ( ) : Promise < LanguageClientOptions > {
31
35
return ( {
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ async function runPylance(
77
77
] ,
78
78
synchronize : {
79
79
// Synchronize the setting section to the server.
80
- configurationSection : [ 'python' ] ,
80
+ configurationSection : [ 'python' , 'jupyter.runStartupCommands' ] ,
81
81
} ,
82
82
middleware,
83
83
} ;
You can’t perform that action at this time.
0 commit comments