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.
2 parents 7bb3d77 + de077aa commit b6b2846Copy full SHA for b6b2846
src/main/kotlin/cc/unitmesh/devti/custom/variable/SpecResolverService.kt
@@ -9,9 +9,7 @@ import com.intellij.openapi.components.Service
9
*/
10
@Service(Service.Level.APP)
11
class SpecResolverService {
12
- private val specs = CustomPromptConfig.load().spec
13
-
14
- fun resolvers(): List<SpecVariableResolver> = specs.map { (key, value) ->
+ fun resolvers(): List<SpecVariableResolver> = CustomPromptConfig.load().spec.map { (key, value) ->
15
SpecVariableResolver("SPEC_$key", value)
16
}
17
0 commit comments