Skip to content

Commit b627e52

Browse files
committed
refactor(compiler): rename FileInsCommand to FileAutoCommand
Update class name and add logger for better
1 parent c225e03 commit b627e52

File tree

1 file changed

+1
-4
lines changed
  • exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/compiler/exec

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,18 @@ import cc.unitmesh.devti.devin.InsCommandStatus
77
import cc.unitmesh.devti.devin.dataprovider.BuiltinCommand
88
import cc.unitmesh.devti.language.compiler.model.LineInfo
99
import cc.unitmesh.devti.language.utils.lookupFile
10-
import com.intellij.openapi.diagnostic.logger
1110
import com.intellij.openapi.project.Project
1211
import com.intellij.psi.PsiManager
1312

1413
/**
15-
* FileAutoCommand is responsible for reading a file and returning its contents.
14+
* FileInsCommand is responsible for reading a file and returning its contents.
1615
*
1716
* @param myProject the Project in which the file operations are performed
1817
* @param prop the property string containing the file name and optional line range
1918
*
2019
*/
2120
class FileInsCommand(private val myProject: Project, private val prop: String) : InsCommand {
2221
override val commandName: BuiltinCommand = BuiltinCommand.FILE
23-
24-
private val logger = logger<FileInsCommand>()
2522
private val output = StringBuilder()
2623

2724
override suspend fun execute(): String? {

0 commit comments

Comments
 (0)