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 063463a commit ebacccdCopy full SHA for ebacccd
exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/documentation/DevInsDocumentationProvider.kt
@@ -24,8 +24,11 @@ class DevInsDocumentationProvider : AbstractDocumentationProvider() {
24
}
25
26
DevInTypes.COMMAND_ID -> {
27
- BuiltinCommand.all().find { it.commandName == element.text }?.description
+ val command = BuiltinCommand.all().find { it.commandName == element.text } ?: return null
28
+ val example = BuiltinCommand.example(command)
29
+ "${command.description}\n\nExample:\n```devin\n$example\n```\n"
30
31
+
32
DevInTypes.VARIABLE_ID -> {
33
CustomVariable.all().find { it.variable == element.text }?.description
34
0 commit comments