BUGFIX: nano and vim use wrong template for text files (#1770)

This commit is contained in:
catloversg 2024-11-12 22:22:17 +07:00 committed by GitHub
parent 48b25d2223
commit 9013ea935a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -16,7 +16,7 @@ interface EditorParameters {
}
function getScriptTemplate(path: string): string {
if (isLegacyScript(path)) {
if (hasTextExtension(path) || isLegacyScript(path)) {
return "";
}
const fileTypeFeature = getFileTypeFeature(getFileType(path));