We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91bb330 commit 638c73cCopy full SHA for 638c73c
exts/ext-endpoints/src/233/main/kotlin/cc/unitmesh/endpoints/provider/EndpointsContextProvider.kt
@@ -13,7 +13,7 @@ import com.intellij.spring.mvc.mapping.UrlMappingElement
13
14
class EndpointsContextProvider : ChatContextProvider {
15
override fun isApplicable(project: Project, creationContext: ChatCreationContext): Boolean {
16
- return runReadAction { EndpointsProvider.getAvailableProviders(project).toList() }.isNotEmpty()
+ return EndpointsProvider.hasAnyProviders()
17
}
18
19
override suspend fun collect(
0 commit comments