Skip to content

Commit 99bd382

Browse files
sean-mcmanusbobbrow
authored andcommitted
Register the config provider for new clients. (#2416)
1 parent b0fc942 commit 99bd382

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Extension/src/LanguageServer/clientCollection.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import * as util from '../common';
99
import * as telemetry from '../telemetry';
1010
import * as cpptools from './client';
1111
import * as path from 'path';
12+
import { getCustomConfigProviders } from './customProviders';
1213

1314
const defaultClientKey: string = "@@default@@";
1415
export interface ClientKey {
@@ -187,7 +188,9 @@ export class ClientCollection {
187188
} else {
188189
let key: string = util.asFolder(folder.uri);
189190
if (!this.languageClients.has(key)) {
190-
this.languageClients.set(key, cpptools.createClient(this, folder));
191+
let newClient: cpptools.Client = cpptools.createClient(this, folder);
192+
this.languageClients.set(key, newClient);
193+
getCustomConfigProviders().forEach(provider => newClient.onRegisterCustomConfigurationProvider(provider));
191194
}
192195
return this.languageClients.get(key);
193196
}

0 commit comments

Comments
 (0)