@@ -162,16 +162,28 @@ export class DocumentConnectionManager {
162
162
}
163
163
164
164
/**
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.
169
182
*/
170
183
public updateServerConfigurations (
171
184
allServerSettings : TLanguageServerConfigurations
172
185
) {
173
186
let language_server_id : TServerKeys ;
174
- this . language_server_manager . setConfiguration ( allServerSettings ) ;
175
187
176
188
for ( language_server_id in allServerSettings ) {
177
189
if ( ! allServerSettings . hasOwnProperty ( language_server_id ) ) {
0 commit comments