I think that is because vtk and ctk are located in a very different folder
E15TY:dosimetry4d alexvergaragil$ ls /Applications/Slicer.app/Contents/bin/Python/
SlicerWizard ctk mrml.py qt slicer vtkAddon.py vtkSegmentationCore.py vtkmodules
__pycache__ freesurfer.py mrmlDisplayableManager sitkUtils.py vtk.py vtkITK.py vtkTeem.py
So adding it to autocomplete paths
and
My configuration file is now
{
"python.pythonPath": "/Applications/Slicer.app/Contents/bin/SlicerPython",
"python.autoComplete.extraPaths": [
"/Applications/Slicer.app/Contents",
"/Applications/Slicer.app/Contents/lib/Python",
"/Applications/Slicer.app/Contents/lib/QtPlugins",
"/Applications/Slicer.app/Contents/lib/Slicer-4.11",
"/Applications/Slicer.app/Contents/bin/",
"/Applications/Slicer.app/Contents/bin/Python/",
"/Applications/Slicer.app/Contents/bin/Python/vtkmodules"
],
"python.linting.pylintPath": "/Applications/Slicer.app/Contents/lib/Python/bin/pylint",
"python.formatting.autopep8Path": "/Applications/Slicer.app/Contents/lib/Python/bin/autopep8",
"python.linting.enabled": true,
"git.autofetch": true
}