Skip to content

Commit eb09670

Browse files
committed
refactor(FileInsCommand, DevInCompletionContributor): improve file reading and clean up command completions
1 parent 9591432 commit eb09670

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec/file/FileInsCommand.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ class FileInsCommand(private val myProject: Project, private val prop: String) :
7070
}
7171

7272
else -> {
73-
try {
74-
virtualFile.readText()
75-
} catch (e: Exception) {
76-
null
77-
}
73+
runReadAction { virtualFile.readText() }
7874
}
7975
}
8076

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/completion/DevInCompletionContributor.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ class DevInCompletionContributor : CompletionContributor() {
3333
extend(CompletionType.BASIC, identifierAfter(DevInTypes.VARIABLE_START), VariableCompletionProvider())
3434
extend(CompletionType.BASIC, identifierAfter(DevInTypes.VARIABLE_START), AgentToolOverviewCompletion())
3535
extend(CompletionType.BASIC, identifierAfter(DevInTypes.COMMAND_START), BuiltinCommandCompletion())
36-
extend(CompletionType.BASIC, identifierAfter(DevInTypes.COMMAND_START), SpecKitCommandCompletion())
37-
extend(CompletionType.BASIC, identifierAfter(DevInTypes.COMMAND_START), ClaudeSkillCommandCompletion())
3836

3937
extend(CompletionType.BASIC, hobbitHoleKey(), HobbitHoleKeyCompletion())
4038
extend(CompletionType.BASIC, hobbitHolePattern(), HobbitHoleValueCompletion())

0 commit comments

Comments
 (0)