@ogulcancelik/pi-minimal-footer 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +7 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -783,7 +783,13 @@ export default function (pi: ExtensionAPI) {
|
|
|
783
783
|
* changed while the fetch was in flight. */
|
|
784
784
|
function fetchUsage(modelProvider: string): void {
|
|
785
785
|
const provider = detectProvider(modelProvider);
|
|
786
|
-
if (!provider)
|
|
786
|
+
if (!provider) {
|
|
787
|
+
activeProvider = null;
|
|
788
|
+
latestUsage = null;
|
|
789
|
+
stopRefreshTimer();
|
|
790
|
+
tuiRef?.requestRender();
|
|
791
|
+
return;
|
|
792
|
+
}
|
|
787
793
|
|
|
788
794
|
activeProvider = provider;
|
|
789
795
|
|