@@ -28,7 +28,7 @@ interface extensionConfiguration {
28
28
let extensionConfiguration : extensionConfiguration = {
29
29
askToStartBuild : true ,
30
30
} ;
31
- let pullConfigurationInterval : NodeJS . Timeout | null = null ;
31
+ let pullConfigurationPeriodically : NodeJS . Timeout | null = null ;
32
32
33
33
// https://microsoft.github.io/language-server-protocol/specification#initialize
34
34
// According to the spec, there could be requests before the 'initialize' request. Link in comment tells how to handle them.
@@ -855,9 +855,9 @@ function onMessage(msg: m.Message) {
855
855
initialized = true ;
856
856
857
857
// Periodically pull configuration from the client.
858
- pullConfigurationInterval = setInterval ( ( ) => {
858
+ pullConfigurationPeriodically = setInterval ( ( ) => {
859
859
askForAllCurrentConfiguration ( ) ;
860
- } , 10_000 ) ;
860
+ } , c . pullConfigurationInterval ) ;
861
861
862
862
// Save initial configuration, if present
863
863
let initParams = msg . params as InitializeParams ;
@@ -895,8 +895,8 @@ function onMessage(msg: m.Message) {
895
895
stopWatchingCompilerLog ( ) ;
896
896
// TODO: delete bsb watchers
897
897
898
- if ( pullConfigurationInterval != null ) {
899
- clearInterval ( pullConfigurationInterval ) ;
898
+ if ( pullConfigurationPeriodically != null ) {
899
+ clearInterval ( pullConfigurationPeriodically ) ;
900
900
}
901
901
902
902
let response : m . ResponseMessage = {
0 commit comments