From 1404f2f712867116801cd09a0f1122298218fd42 Mon Sep 17 00:00:00 2001 From: axetroy Date: Wed, 5 Feb 2020 22:14:00 +0800 Subject: [PATCH] feat: add default content for creating a file when fix missing local module --- client/src/extension.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/extension.ts b/client/src/extension.ts index 5b1c374..75b7852 100644 --- a/client/src/extension.ts +++ b/client/src/extension.ts @@ -538,6 +538,11 @@ Executable ${this.denoInfo.executablePath} switch (extName) { case ".json": defaultTextContent = "{}"; + case ".js": + case ".jsx": + case ".ts": + case ".tsx": + defaultTextContent = "export function example () {}"; break; }