Following the paper by Kubok (Infinite-dimensional Lie algebras with null Jacobson radical), we have the following definitions. Let $L$ be a Lie algebra. If every finite subset of $L$ is contained in a finite-dimensional subalgebra (resp. a solvable subalgebra) of $L$ then $L$ is called locally finite (resp. locally solvable). For a locally finite Lie algebra $L$, $\sigma(L)$ is the maximal locally solvable ideal of $L$ and $L$ is said to be semisimple if $\sigma(L)=0$.
Suppose that $L$ is an arbitrary Lie algebra over a field of characteristic zero and that $L=\sum_{i\in\mathcal I}L_i$, where each $L_i$ is a finite-dimensional semisimple ideal of $L$.
If $\mathcal I$ is finite then $L$ is semisimple. In order to show this, it is enough to verify the case $L=L_1+L_2$ and apply induction. As $L_1$ is semisimple the Killing form $\kappa(\cdot,\cdot)$ of $L$ restrict $L_1$ is non-degenerated and thus $L=L_1\oplus L_1^\perp$, where $L_1^\perp=\{x\in L\mid \kappa(x,y)=0, \mbox{ for } y\in L_1 \}$. Now, since $L=L_1+L_2$ it follows that $$L_1^\perp \cong L/L_1=(L_1+L_2)/L_1\cong L_2/(L_1\cap L_2)$$is semisimple. Hence $L=L_1\oplus L_1^\perp$ is semisimple.
But, what happens if $\mathcal I$ is infinite? Is $L$ semisimple? I believe that the answer is no, but I can't find a counterexample. Is there some condition on $L$ or $L_i$ that guarantees the semisimplicity of $L$?
I appreciate any help.
If $L=L_1\oplus L_2$ is a direct sum of simple Lie algebras, then $L$ is semisimple. However, for the sum $L_1+L_2$, an arbitrary sum, this need not be true in general - see our Example $4.10$ here: $$ L=\mathfrak{sl}_n(\Bbb C)\rtimes V(n)=\mathfrak{sl}_n(\Bbb C)+\mathfrak{sl}_n(\Bbb C) $$ is not semisimple. So $\sum_i L_i$ need not be semisimple, even for finitely many summands.
Edit: An infinite direct sum $L$ of simple Lie algebras will be infinite-dimensional. What is your definition of "semisimple" for infinite-dimensional Lie algebras?