Skip to content

Commit

Permalink
chore: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirko Nowak committed Nov 14, 2023
1 parent 1fc1515 commit 0d5a81c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"javascript": [
"const moduleName = await window.showInputBox({prompt: 'module name'})",

"const we = new vscode.WorkspaceEdit();",
"const edit = new vscode.WorkspaceEdit();",

"const uriBase = vscode.workspace.workspaceFolders[0].uri.toString() + '/src/app/components/' + `${moduleName}`;",

Expand All @@ -146,7 +146,7 @@
"const newModuleFile = vscode.Uri.parse(`${uriBase}/${moduleName}.module.ts`);",
"const newFiles = [showcaseHtmlFile, showcaseTsFile, newModuleFile];",

"for (const newFile of newFiles) { let document = await we.createFile(newFile, { ignoreIfExists: false, overwrite: true });};",
"for (const newFile of newFiles) { let document = await edit.createFile(newFile, { ignoreIfExists: false, overwrite: true });};",

"const uppercaseName = `${moduleName.charAt(0).toUpperCase() + moduleName.slice(1)}`;",

Expand Down Expand Up @@ -193,11 +193,11 @@
"</custom-showcase>",
"`;",

"await we.insert(showcaseHtmlFile, new vscode.Position(0, 0), showcaseHtmlTemplate);",
"await we.insert(showcaseTsFile, new vscode.Position(0, 0), showcaseTsTemplate);",
"await we.insert(newModuleFile, new vscode.Position(0, 0), moduleTemplate);",
"await edit.insert(showcaseHtmlFile, new vscode.Position(0, 0), showcaseHtmlTemplate);",
"await edit.insert(showcaseTsFile, new vscode.Position(0, 0), showcaseTsTemplate);",
"await edit.insert(newModuleFile, new vscode.Position(0, 0), moduleTemplate);",

"await vscode.workspace.applyEdit(we);",
"await vscode.workspace.applyEdit(edit);",

"for (const newFile of newFiles) { let document = await vscode.workspace.openTextDocument(newFile); await document.save(); };"
]
Expand Down

0 comments on commit 0d5a81c

Please sign in to comment.