File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import * as util from '../common';
99import * as telemetry from '../telemetry' ;
1010import * as cpptools from './client' ;
1111import * as path from 'path' ;
12+ import { getCustomConfigProviders } from './customProviders' ;
1213
1314const defaultClientKey : string = "@@default@@" ;
1415export 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 }
You can’t perform that action at this time.
0 commit comments