Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit99bd382

Browse files
sean-mcmanusbobbrow
authored andcommitted
Register the config provider for new clients. (microsoft#2416)
1 parentb0fc942 commit99bd382

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*astelemetryfrom'../telemetry';
1010
import*ascpptoolsfrom'./client';
1111
import*aspathfrom'path';
12+
import{getCustomConfigProviders}from'./customProviders';
1213

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp