I've only found one other question asking exactly this with no answer, so I'm asking here.
I am running Ubuntu 18.04, VSCode latest version.
I have installed OpenCV 3.4.9 from source to /usr/local
When I import cv2 and then try to type "cv2.", VSCode is unable to autocomplete. The only suggestions it makes are "bootstrap" and "os". I have no problem with autocomplete with any other module like numpy or rospy, or even when OpenCV is installed from pip. It seems the issue is only when OpenCV is installed from source.
I have tried both the language server as well as Jedi. I have also tried various linters.
Any help is appreciated.