Skip to content

Commit

Permalink
fix: try add csharp framework context
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Aug 7, 2023
1 parent 4968c33 commit d2e7bfe
Showing 1 changed file with 18 additions and 0 deletions.
@@ -0,0 +1,18 @@
package cc.unitmesh.csharp.provider

import cc.unitmesh.devti.gui.chat.ChatActionType
import cc.unitmesh.devti.provider.context.ChatContextItem
import cc.unitmesh.devti.provider.context.ChatContextProvider
import cc.unitmesh.devti.provider.context.ChatCreationContext
import com.intellij.openapi.project.Project

class CsharpFrameworkContextProvider: ChatContextProvider {
override fun isApplicable(project: Project, creationContext: ChatCreationContext): Boolean {
return creationContext.action != ChatActionType.CODE_COMPLETE &&
creationContext.action != ChatActionType.EXPLAIN_BUSINESS
}

override suspend fun collect(project: Project, creationContext: ChatCreationContext): List<ChatContextItem> {
return listOf()
}
}

0 comments on commit d2e7bfe

Please sign in to comment.