Etheram68 hace 5 años
padre
commit
3ce684d8ef
Se han modificado 3 ficheros con 5 adiciones y 5 borrados
  1. 1 1
      README.md
  2. 1 1
      package.json
  3. 3 3
      src/extension.ts

+ 1 - 1
README.md

@@ -28,5 +28,5 @@ To report a bug or ask for a feature, please open a [Github issue](https://githu
 
 ## Release Notes
 
-### 0.1.0
+### 0.1.1
 First Version of Auto Create canonical Class for the Cpp language

+ 1 - 1
package.json

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

+ 3 - 3
src/extension.ts

@@ -46,8 +46,8 @@ export function activate(context: vscode.ExtensionContext) {
 							name + " &		" + name + "::operator=( " + name + " const & rhs )\n{\n	return (*this);\n}\n\n";
 
 			let classhpp =	"#ifndef " + name.toUpperCase() + "_CLASS" + "_HPP\n" +
-							"#define " + name.toUpperCase() + "_CLASS" + "_HPP\n\n" +
-							"#include <iostream>\n\n" +
+							"# define " + name.toUpperCase() + "_CLASS" + "_HPP\n\n" +
+							"# include <iostream>\n\n" +
 							"class " + name + "\n{\n" +
 							"\n" +
 							"	public:\n" +
@@ -64,7 +64,7 @@ export function activate(context: vscode.ExtensionContext) {
 							"#endif /* *" + star + " " + name.toUpperCase() + "_CLASS_H */";
 			fs.writeFile(filePathCpp.fsPath, classcpp, function (err: any) { if (err) return console.log(err); });
 			fs.writeFile(filePathHpp.fsPath, classhpp, function (err: any) { if (err) return console.log(err); });
-			vscode.window.showInformationMessage("Files : " + name + ".cpp, " + name + ".hpp created !");
+			vscode.window.showInformationMessage("Files : " + name + ".class.cpp, " + name + ".class.hpp created !");
 		}
 	});