To enable the light bulb, from vscode go to Settings > Search "Quick Fix"
From the option, check to enable the nearby quick fix option.