core -> ide

This commit is contained in:
Dallin Romney 2024-11-15 12:22:33 -08:00
parent 5bb95f5a56
commit 260c13bd66
4 changed files with 6 additions and 6 deletions

View file

@ -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. " +

View file

@ -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()}`,
);

View file

@ -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 " +

View file

@ -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;
}