The type or namespace "Pun" does not exist in namespace 'Photon'

I am having an error with vscode. It keeps telling me that pun does not exist in photon. I can’t find a solution. Unity recognises it, but vscode doesn’t. Please help

169189-screenshot-32.png

Solution:
I created an assembly definition to my Scripts folder, and add all Photon dll’s to this assembly definition’s Assembly Definition References list. This solve the problem. But I have no idea why? Is it Unity related problem?

I kinda solved the issue by downgrading visual studio code to 1.1.3. If anyone has a better solution, please still feel free to say it

if you still have this problem check this
http://answers.unity.com/answers/1838352/view.html