diff --git a/src/webview/newProjectPanel.mts b/src/webview/newProjectPanel.mts index 109fc9f..350ea2c 100644 --- a/src/webview/newProjectPanel.mts +++ b/src/webview/newProjectPanel.mts @@ -677,6 +677,15 @@ export class NewProjectPanel { return; } + if (data.projectName === undefined || data.projectName === "") { + void window.showWarningMessage("Project name cannot be empty."); + await this._panel.webview.postMessage({ + command: "submitDenied", + }); + + return; + } + // check if projectRoot/projectName folder already exists if ( existsSync(join(this._projectRoot.fsPath, data.projectName)) @@ -1528,7 +1537,6 @@ export class NewProjectPanel {

Basic Settings

-
${ !this._isProjectImport ? `
-
${ !this._isProjectImport