Skip to content

Commit ac9a420

Browse files
committed
fix: fix index warmup check
1 parent b62d4c1 commit ac9a420

File tree

1 file changed

+3
-0
lines changed
  • web/src/components/features/workspace/CodeEditor/autocomplete

1 file changed

+3
-0
lines changed

web/src/components/features/workspace/CodeEditor/autocomplete/base.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export abstract class CacheBasedCompletionProvider<TQuery> implements monaco.lan
5656
if (this.isWarmUp) {
5757
return true
5858
}
59+
60+
return await this.langWorker.isWarmUp()
5961
}
6062

6163
async provideCompletionItems(
@@ -78,6 +80,7 @@ export abstract class CacheBasedCompletionProvider<TQuery> implements monaco.lan
7880
const suggestions = await this.querySuggestions(query)
7981

8082
if (!isCacheReady) {
83+
this.isWarmUp = true
8184
this.dispatch(newRemoveNotificationAction(notificationId))
8285
}
8386

0 commit comments

Comments
 (0)