src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.ts/AbstractWorkspaceEditingService/getNewWorkspaceName
class AbstractWorkspaceEditingService:	private getNewWorkspaceName(): string {
		switch (this.contextService.getWorkbenchState()) {
			case WorkbenchState.FOLDER: {
				const folder = firstOrDefault(this.contextService.getWorkspace().folders);
				if (folder) {
					return `${basename(folder.uri)}.${WORKSPACE_EXTENSION}`;
				}
				break;
			}
			case WorkbenchState.WORKSPACE: {
				const configPathURI = this.getCurrentWorkspaceIdentifier()?.configPath;
				if (configPathURI && isSavedWorkspace(configPathURI, this.environmentService)) {
					return basename(configPathURI);
				}
				break;
			}
		}

		return `workspace.${WORKSPACE_EXTENSION}`;
	}