src/vs/workbench/services/workspaces/common/workspaceTrust.ts/WorkspaceTrustManagementService/isEmptyWorkspace
class WorkspaceTrustManagementService:	private isEmptyWorkspace(): boolean {
		if (this.workspaceService.getWorkbenchState() === WorkbenchState.EMPTY) {
			return true;
		}

		const workspace = this.workspaceService.getWorkspace();
		if (workspace) {
			return isTemporaryWorkspace(this.workspaceService.getWorkspace()) && workspace.folders.length === 0;
		}

		return false;
	}