(provider: CustomConfigurationProvider)
| 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(); |
no test coverage detected