I was recently trying to prove the following "well-known" theorem for myself, given that I could not find a proof in the literature that I could understand. In what that follows, I will implicitly assume that everything is finite-dimensional.
Theorem. If every abelian extension of the Lie algebra $\mathfrak g$ splits, then every extension of $\mathfrak g$ splits.
The proof considers a splitting $0\rightarrow \mathfrak h\rightarrow \mathfrak e\rightarrow \mathfrak g\rightarrow 0$ and proceeds by induction on the dimension of $\mathfrak h$. The base case uses the assumption about abelian extensions, specifically for the case of one-dimensional $\mathfrak h$. If $\mathfrak h$ contains a non-trivial, proper subideal $\mathfrak k$, then we can apply the induction hypothesis to get a splitting of $$0\rightarrow \mathfrak h/\mathfrak k\rightarrow \mathfrak e/\mathfrak k\rightarrow \mathfrak g\rightarrow 0$$ Then we can lift this splitting to a splitting of the original sequence (a lemma that also took me a while to understand). But suppose that no such $\mathfrak k$ exists. Then if $\mathfrak h^\perp$ is the perp-space with respect to the Killing form on $\mathfrak e$, we either have $\mathfrak h\cap \mathfrak h^\perp=0$ or $\mathfrak h\subseteq \mathfrak h^\perp$. In the former case, this perp-space $\mathfrak h^\perp$ yields a splitting. In the latter case, the Killing form vanishes on $\mathfrak h$ and so $\mathfrak h$ is solvable by Cartan's criterion. This implies that $[\mathfrak h,\mathfrak h]\neq \mathfrak h$ and thus $[\mathfrak h,\mathfrak h]=0$ (because we assumed that $\mathfrak h$ contains no proper, non-trivial subideals). But then $\mathfrak h$ is abelian and so we get a splitting by assumption.
In this proof, we twice used the assumption that every abelian extension of $\mathfrak g$ splits. But the first instance only used the seemingly weaker assumption that every one-dimensional extension splits, whereas the second instance used the full power of the assumption. This leads me to wonder:
Question: If every one-dimensional extension of $\mathfrak g$ splits, does every extension of $\mathfrak g$ split? Or phrased negatively, is there a Lie algebra $\mathfrak g$ for which every one-dimensional extension splits, but which also admits a non-splitting extension $$0\rightarrow \mathfrak h\rightarrow \mathfrak e\rightarrow \mathfrak g\rightarrow 0\,?$$