Etheram68 5 жил өмнө
parent
commit
8c5eeec864
3 өөрчлөгдсөн 4 нэмэгдсэн , 3 устгасан
  1. 2 2
      README.md
  2. 1 1
      package.json
  3. 1 0
      src/template.ts

+ 2 - 2
README.md

@@ -33,7 +33,7 @@ Enter the Class Name
  src="https://raw.githubusercontent.com/Etheram68/Header-Cpp-Class/master/tuto2.gif"
  width=680>
 
- ### Create file Cpp and Hpp with Header
+ ### Create file Template (.tpp)
   Enter on the box "MyTemplateName.tpp"
 
 ## Issues
@@ -42,7 +42,7 @@ To report a bug or ask for a feature, please open a [Github issue](https://githu
 
 ## Release Notes
 
-## 0.3.0
+## 0.3.0 / 0.3.1
 Add canonical Class for template (file extension .tpp)
 
 ### 0.2.8

+ 1 - 1
package.json

@@ -2,7 +2,7 @@
 	"name": "canonicalclasscpp",
 	"displayName": "42 Canonical Class CPP",
 	"description": "This extension is to automatically create a canonical hpp and cpp file",
-	"version": "0.3.0",
+	"version": "0.3.1",
 	"publisher": "frfreyCanonicalClassCPP",
 	"icon": "42.png",
 	"repository": {

+ 1 - 0
src/template.ts

@@ -84,6 +84,7 @@ export const getTemplateTpp = ( name: string | undefined, filePathTpp: vscode.Ur
 						"# define " + name.toUpperCase() + "_TPP\n\n" +
 						"# include <iostream>\n" +
 						"# include <string>\n\n" +
+						"template < typename T >" +
 						"class " + name + "\n{\n" +
 						"\n" +
 						"	public:\n" +