I get this warning displayed in vscode when creating a new Angular service with the
@Injectable({
providedIn: 'root'
})
syntax (rather than providing the service in app.module.ts).
The warning persists until I reference the new service somewhere in the project. Once the service gets used the warning goes away. No typescript configuration or vscode settings changes necessary.