Skip to content

Commit

Permalink
fix(template): modify template incautious.
Browse files Browse the repository at this point in the history
  • Loading branch information
dengzii committed Jun 28, 2021
1 parent ce7d16b commit b18840b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/com/dengzii/plugin/template/utils/PluginKit.kt
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ class PluginKit private constructor(e: AnActionEvent) {
}
val template = fileTemplateManager.getTemplate(templateName) ?: return null
val psiDirectory = getPsiDirectoryByVirtualFile(directory) ?: return null
template.name = fileName
template.extension = fileName.split(".").last()
return try {
FileTemplateUtil.createFromTemplate(template, fileName, properties, psiDirectory)
} catch (e: Throwable) {
Expand Down

0 comments on commit b18840b

Please sign in to comment.