core -> ide
This commit is contained in:
parent
5bb95f5a56
commit
260c13bd66
4 changed files with 6 additions and 6 deletions
|
|
@ -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. " +
|
||||
|
|
|
|||
|
|
@ -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()}`,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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 " +
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue