Skip to content

Commit 7077fdf

Browse files
committed
Remove white spaces on project and solution name creation
1 parent 6484033 commit 7077fdf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/resource/createProjectWebView/CreateProject.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,13 @@ export class CreateProjectPanel {
137137
}
138138

139139
private static async projectCreation(message: Message) {
140+
// Adjust filepath from the default or selection
140141
message.filepath = this._filepath;
141142

143+
// Remove spaces from project and solution names
144+
message.solution = message.solution.replace(/\s+/g, "");
145+
message.project = message.project.replace(/\s+/g, "");
146+
142147
if (fs.existsSync(this._filepath + "\\" + message.solution)) {
143148
vscode.window.showErrorMessage("Solution folder already exist");
144149
return;

0 commit comments

Comments
 (0)