diff options
author | Kirill Osenkov <github@osenkov.com> | 2019-09-04 23:49:04 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2019-09-05 20:52:22 +0300 |
commit | ea9189d8eccb351175b294fbd669be2a0b6db230 (patch) | |
tree | 12f7afc09a72fe1ee46e3fad77a6ac855c5362f6 /main/src/addins/AspNet | |
parent | 0ca92b0b08e39e8dbb218f8473ff11dd9d230822 (diff) |
Add a New JavaScript File template.
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/973620.
Remove the BOM from JsonFileTemplate.
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/893733
Diffstat (limited to 'main/src/addins/AspNet')
3 files changed, 25 insertions, 3 deletions
diff --git a/main/src/addins/AspNet/Properties/MonoDevelop.AspNet.addin.xml b/main/src/addins/AspNet/Properties/MonoDevelop.AspNet.addin.xml index 5a49744b78..1c6a951b10 100644 --- a/main/src/addins/AspNet/Properties/MonoDevelop.AspNet.addin.xml +++ b/main/src/addins/AspNet/Properties/MonoDevelop.AspNet.addin.xml @@ -57,6 +57,7 @@ <Import file = "Templates/EmptyLessFile.xft.xml"/> <Import file = "Templates/EmptyScssFile.xft.xml"/> <Import file = "Templates/EmptyJsonFile.xft.xml"/>
+ <Import file = "Templates/EmptyJavaScriptFile.xft.xml"/> <Import file = "Templates/EmptyTypeScriptFile.xft.xml"/> <Import file = "Templates/GlobalAsax.xft.xml"/> <Import file = "Templates/JsonFileTemplate.json"/>
@@ -172,6 +173,8 @@ file = "Templates/EmptyScssFile.xft.xml"/> <FileTemplate id = "EmptyJSONFile"
file = "Templates/EmptyJsonFile.xft.xml"/>
+ <FileTemplate id = "EmptyJavaScriptFile" + file = "Templates/EmptyJavaScriptFile.xft.xml"/> <FileTemplate id = "EmptyTypeScriptFile" file = "Templates/EmptyTypeScriptFile.xft.xml"/>
diff --git a/main/src/addins/AspNet/Templates/EmptyJavaScriptFile.xft.xml b/main/src/addins/AspNet/Templates/EmptyJavaScriptFile.xft.xml new file mode 100644 index 0000000000..900b8f50f7 --- /dev/null +++ b/main/src/addins/AspNet/Templates/EmptyJavaScriptFile.xft.xml @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<Template + originator="Kirill Osenkov" + language="JavaScript" + created="2019/09/04" + lastModified="2019/09/04"> + + <TemplateConfiguration> + <_Name>JavaScript file</_Name> + <Icon>md-file-js</Icon> + <_Category>Web</_Category> + <_Description>A blank JavaScript source file.</_Description> + <DefaultFilename>EmptyJSFile</DefaultFilename> + </TemplateConfiguration> + + <TemplateFiles> + <File DefaultExtension=".js"><![CDATA[]]></File> + </TemplateFiles> +</Template> diff --git a/main/src/addins/AspNet/Templates/JsonFileTemplate.json b/main/src/addins/AspNet/Templates/JsonFileTemplate.json index 471169beec..0db3279e44 100755 --- a/main/src/addins/AspNet/Templates/JsonFileTemplate.json +++ b/main/src/addins/AspNet/Templates/JsonFileTemplate.json @@ -1,3 +1,3 @@ -{
-
-}
+{ + +} |