diff --git a/src/Terminal/commands/common/editor.ts b/src/Terminal/commands/common/editor.ts index 53190bbb6..fa1bc1ee6 100644 --- a/src/Terminal/commands/common/editor.ts +++ b/src/Terminal/commands/common/editor.ts @@ -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));