Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
feat: add default content for creating a file when fix missing local …
Browse files Browse the repository at this point in the history
…module
  • Loading branch information
axetroy committed Feb 5, 2020
1 parent a3c1828 commit 1404f2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1404f2f

Please sign in to comment.