From 260c13bd66657b9a058a02de2fc0ed05eb085e16 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 15 Nov 2024 12:22:33 -0800 Subject: [PATCH] core -> ide --- core/context/providers/DocsContextProvider.ts | 2 +- core/indexing/docs/DocsCrawler.ts | 2 +- core/indexing/docs/DocsService.ts | 6 +++--- core/indexing/docs/crawlers/ChromiumCrawler.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/context/providers/DocsContextProvider.ts b/core/context/providers/DocsContextProvider.ts index a290589e4..ba2bf29b6 100644 --- a/core/context/providers/DocsContextProvider.ts +++ b/core/context/providers/DocsContextProvider.ts @@ -92,7 +92,7 @@ class DocsContextProvider extends BaseContextProvider { await docsService.isJetBrainsAndPreIndexedDocsProvider(); if (isJetBrainsAndPreIndexedDocsProvider) { - await extras.ide.showToast( + void extras.ide.showToast( "error", `${DocsService.preIndexedDocsEmbeddingsProvider.id} is configured as ` + "the embeddings provider, but it cannot be used with JetBrains. " + diff --git a/core/indexing/docs/DocsCrawler.ts b/core/indexing/docs/DocsCrawler.ts index cb9146ab5..599c4202a 100644 --- a/core/indexing/docs/DocsCrawler.ts +++ b/core/indexing/docs/DocsCrawler.ts @@ -79,7 +79,7 @@ class DocsCrawler { ); if (didInstall) { - await this.ide.showToast( + void this.ide.showToast( "info", `Successfully installed Chromium! Retrying crawl of: ${startUrl.toString()}`, ); diff --git a/core/indexing/docs/DocsService.ts b/core/indexing/docs/DocsService.ts index 46fedf9d0..470dc6289 100644 --- a/core/indexing/docs/DocsService.ts +++ b/core/indexing/docs/DocsService.ts @@ -157,7 +157,7 @@ export default class DocsService { params: {}, }); - await this.ide.showToast( + void this.ide.showToast( "info", "Successfuly added docs context provider", ); @@ -183,7 +183,7 @@ export default class DocsService { while (!(await generator.next()).done) {} } - await this.ide.showToast("info", "Docs indexing completed"); + void this.ide.showToast("info", "Docs indexing completed"); } async list() { @@ -741,7 +741,7 @@ export default class DocsService { if (isJetBrainsAndPreIndexedDocsProvider) { // A bit noisy for teams users whom have no choice if their admin is the one who didn't setup an embeddingsProvider - // this.ide.showToast( + // void this.ide.showToast( // "error", // "The 'transformers.js' embeddings provider currently cannot be used to index " + // "documentation in JetBrains. To enable documentation indexing, you can use " + diff --git a/core/indexing/docs/crawlers/ChromiumCrawler.ts b/core/indexing/docs/crawlers/ChromiumCrawler.ts index ee49270a8..e2feb4c59 100644 --- a/core/indexing/docs/crawlers/ChromiumCrawler.ts +++ b/core/indexing/docs/crawlers/ChromiumCrawler.ts @@ -242,7 +242,7 @@ export class ChromiumInstaller { ChromiumCrawler.setUseChromiumForDocsCrawling(false); - await this.ide.showToast("error", "Failed to install Chromium"); + void this.ide.showToast("error", "Failed to install Chromium"); return false; }