Przeglądaj źródła

Add sensitive case for other letter

Etheram68 5 lat temu
rodzic
commit
2742c1743f
4 zmienionych plików z 7 dodań i 4 usunięć
  1. 3 0
      README.md
  2. 1 1
      package.json
  3. 1 1
      src/basicInput.ts
  4. 2 2
      src/template.ts

+ 3 - 0
README.md

@@ -39,6 +39,9 @@ To report a bug or ask for a feature, please open a [Github issue](https://githu
 
 ## Release Notes
 
+### 0.2.6
+First letter is upper, other letter is sensitive case
+
 ### 0.2.3 / 0.2.5
 Modify template for align call function on cpp file
 

+ 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.2.5",
+	"version": "0.2.6",
 	"publisher": "frfreyCanonicalClassCPP",
 	"icon": "42.png",
 	"repository": {

+ 1 - 1
src/basicInput.ts

@@ -31,7 +31,7 @@ export async function createQuickClass() {
 	});
 
 	if (name !== undefined){
-		name = name.charAt(0).toUpperCase() + name.slice(1).toLowerCase()
+		name = name.charAt(0).toUpperCase() + name.slice(1)
 
 		const wsedit = new vscode.WorkspaceEdit();
 		const wsPath = vscode.workspace.workspaceFolders![0].uri.fsPath;

+ 2 - 2
src/template.ts

@@ -38,7 +38,7 @@ export const getTemplate = ( name: string | undefined, filePathCpp: vscode.Uri ,
 						name + " &				" + name + "::operator=( " + name + " const & rhs )\n{\n	//if ( this != &rhs )\n" +
 						"		//this->_value = rhs.getValue();\n" +
 						"	return *this;\n}\n\n" +
-						"std::ostream &		operator<<( std::ostream & o, " + name + " const & i )\n" +
+						"std::ostream &			operator<<( std::ostream & o, " + name + " const & i )\n" +
 						"{\n	//o << \"Value = \" << i.getValue();\n	return o;\n}\n\n" +
 						"\n/*\n** --------------------------------- METHODS ----------------------------------\n*/\n\n" +
 						"\n/* ************************************************************************** */";
@@ -58,7 +58,7 @@ export const getTemplate = ( name: string | undefined, filePathCpp: vscode.Uri ,
 						"\n\n" +
 						"	private:\n\n" +
 						"};\n\n" +
-						"std::ostream &		operator<<( std::ostream & o, " + name + " const & i );"+
+						"std::ostream &			operator<<( std::ostream & o, " + name + " const & i );"+
 						"\n\n" +
 						"#endif /* *" + star + " " + name.toUpperCase() + "_CLASS_H */";