[sp]The function has a singularity at $x=-1$, where the denominator $1-\sqrt{2+x}$ is zero. So the integral is improper, and it will only converge if each of the two integrals $$\int_{-2}^{-1} \frac{x}{1-\sqrt{2+x}}\,dx$$ and $$\int_{-1}^{2} \frac{x}{1-\sqrt{2+x}}\,dx$$ exists.
Taking the second of these integrals, $$\int_{-1}^{2} \frac{x}{1-\sqrt{2+x}}\,dx$$, make the substitution $y = \sqrt{2+x}.$ Then $2+x = y^2$, $dx = 2y\,dy$ and the integral becomes $$\int_1^2 \frac{2y(y^2-2)}{1-y}dy.$$ Since $2y(y^2-2) = (y-1)(2y^2 + 2y - 2) -2,$ the integral is equal to $$\int_1^2\bigl(-2y^2 -2y + 2 - \frac2{1-y}\bigr)dy.$$ The integral of $-2y^2 - 2y + 2$ is elementary. But the integral of $- \frac2{1-y}$ is $2\ln|1-y|$, which diverges as $y \searrow1.$
So the integral does not converge. (More informally, the integral does not exist.)[/sp]