@@ -162,16 +162,28 @@ export class DocumentConnectionManager {
162162 }
163163
164164 /**
165- * Currently only supports the settings that the language servers
166- * accept using onDidChangeConfiguration messages, under the
167- * "serverSettings" keyword in the setting registry. New keywords can
168- * be added and extra functionality implemented here when needed.
165+ * Handles the settings that do not require an existing connection
166+ * with a language server (or can influence to which server the
167+ * connection will be created, e.g. `priority`).
168+ *
169+ * This function should be called **before** initialization of servers.
170+ */
171+ public updateConfiguration ( allServerSettings : TLanguageServerConfigurations ) {
172+ this . language_server_manager . setConfiguration ( allServerSettings ) ;
173+ }
174+
175+ /**
176+ * Handles the settings that the language servers accept using
177+ * `onDidChangeConfiguration` messages, which should be passed under
178+ * the "serverSettings" keyword in the setting registry.
179+ * Other configuration options are handled by `updateConfiguration` instead.
180+ *
181+ * This function should be called **after** initialization of servers.
169182 */
170183 public updateServerConfigurations (
171184 allServerSettings : TLanguageServerConfigurations
172185 ) {
173186 let language_server_id : TServerKeys ;
174- this . language_server_manager . setConfiguration ( allServerSettings ) ;
175187
176188 for ( language_server_id in allServerSettings ) {
177189 if ( ! allServerSettings . hasOwnProperty ( language_server_id ) ) {
0 commit comments