MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / notifyReady

Method notifyReady

Extension/src/cppTools.ts:72–88  ·  view source on GitHub ↗
(provider: CustomConfigurationProvider)

Source from the content-addressed store, hash-verified

70 }
71
72 public notifyReady(provider: CustomConfigurationProvider): void {
73 const providers: CustomConfigurationProviderCollection = getCustomConfigProviders();
74 const p: CustomConfigurationProvider1 | undefined = providers.get(provider);
75
76 if (p) {
77 this.removeNotifyReadyTimer(p);
78 p.isReady = true;
79 LanguageServer.getClients().forEach(client => {
80 void client.updateCustomBrowseConfiguration(p);
81 void client.updateCustomConfigurations(p);
82 });
83 } else if (this.failedRegistrations.find(p => p === provider)) {
84 console.warn("provider not successfully registered; 'notifyReady' ignored");
85 } else {
86 console.warn("provider should be registered before signaling it's ready to provide configurations");
87 }
88 }
89
90 public didChangeCustomConfiguration(provider: CustomConfigurationProvider): void {
91 const providers: CustomConfigurationProviderCollection = getCustomConfigProviders();

Calls 6

getCustomConfigProvidersFunction · 0.90
getMethod · 0.45
forEachMethod · 0.45

Tested by

no test coverage detected