Consider Lie algebra $\mathfrak{L}_2$ over field $F$ of characteristics zero, given by basis $\{x,y\}$ and Lie bracket being defined with $[x,y] = x$ (or, to be formal, with $[ax+by,cx+dy] = (ad-bc)x$, $a,b,c,d \in F$). This Lie algebra has ideals $0,\mathfrak{L}_2$ and ideal $I$ generated with $x$. That are all ideals in $\mathfrak{L}_2$. This algebra is a nice example of:
Lie algebra having only one proper (different then $0$ and itself) ideal
Lie algebra having an ideal of dimension $k$, for every $k \leq n$, and not being Abelian.
In the first case, classifying all such Lie algebras is certainly impossible: Take for example Lie algebra generated with $\{x_1,...,x_n\}$, take $[x_1,x_i] = x_1$ for all $2 \leq i \leq n$, now if $L_1$ is any Lie algebra generated by $\{x_2,...,x_n\}$ then whatever ideal might be in $L_1$ it is not ideal in $L$, so $L$ is given by ANY Lie algebra of dimension $n-1$+ something additional. So, softcore, this problem depends on a problem of finding all Lie algebras of given dimension, a task that is currently unknown (up to my poor knowledge). Did anyone do anything with respect to these Lie algebras? I am not certain about any progression in classification of the other case. I myself do not have a clue about this. Thankieees!
Thanks to a comment by @DietrichBurde, first case can see some progress. Suppose $L$ is a Lie algebra with only one proper ideal $I$, then $Z(L)$ is an ideal in $L$ and we have three options:
(1) $Z(L) = 0$
(2) $Z(L) = I$, but then if $I$ has basis $\{x_1,...,x_k\}$ and $\{x_1,...,x_n\}$ is basis of $L$, then Lie subalgebra $L_1$ of $L$ with basis $\{x_{k+1},...,x_n\}$ cannot have any nontrivial ideals, since if $J$ is an ideal in $L_1$, it is indeed an ideal in $L$, so $L$ has at least two proper ideals: $I$ and $J$. So, $L_1$ has to be simple. $Z(L)$ is already Abelian. Any ideal in $Z(L)$ is automatically an ideal in $L$, so $Z(L)$ can not have non-trivial ideals of its own. On the other hand, $Z(L)$ is Abelian Lie algebra, and Abelian Lie algebra has one proper ideal if and only if it is $\mathrm{Ab}_2$, Abelian algebra of dimension 2 (a bit of thinking makes it clear that all Abelian Lie algebras of dimension $n$ are mutually isomorphic). So, between $Z(L)$ being $\mathrm{Ab}_2$, and $L_1$ being simple, us working over field of characteristics zero, this case is solved.
(3) $Z(L) = L$ are Abelian Lie algebras anyway and all such that have one proper ideal are $\mathrm{Ab}_2$ as discussed in previous paragraph.
We can hence refine our question:
Can we know something more about Lie algebras with one proper ideal and with $Z(L) = 0$?