Skip to content

Commit b6b2846

Browse files
authored
Merge pull request #173 from c913168497/bug-fix-spec
bugfix:修复解决需要重启才能刷新Custom Engine Prompt(Json) 配置问题
2 parents 7bb3d77 + de077aa commit b6b2846

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/kotlin/cc/unitmesh/devti/custom/variable/SpecResolverService.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ import com.intellij.openapi.components.Service
99
*/
1010
@Service(Service.Level.APP)
1111
class SpecResolverService {
12-
private val specs = CustomPromptConfig.load().spec
13-
14-
fun resolvers(): List<SpecVariableResolver> = specs.map { (key, value) ->
12+
fun resolvers(): List<SpecVariableResolver> = CustomPromptConfig.load().spec.map { (key, value) ->
1513
SpecVariableResolver("SPEC_$key", value)
1614
}
1715

0 commit comments

Comments
 (0)