confluentinc / vscode

Confluent for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=confluentinc.vscode-confluent
Apache License 2.0
13 stars 3 forks source link

Convert viewproviders/schemas.ts::getSchemas() to consult resourcemanager cache first #214

Closed jlrobins closed 1 month ago

jlrobins commented 1 month ago

Convert viewproviders/schemas.ts::getSchemas() to first look in ResourceManager cache, and only upon cache miss, then fall back to hitting sidecar API and then cache results.

Moreover, to further optimize when being called in bulk from preloadEnvironmentResources(), give it an optional additional parameter of the sidecar reference, so that callpoint can get a sidecar handle just once, passing it in. Likewise getEnvironments().