Open ace-han opened 4 years ago
I have the same problem and fixed this by enable python.analysis.memory.keepLibraryAst
and python.analysis.memory.keepLibraryLocalVariables
in settings.
Yes, those the the settings. By default they are off for memory savings.
@Mozkileo these two settings work like a charm!!!
@MikhailArkhipov I think this should be mentioned somewhere in the doc since some dev like me, prefers debuging while coding
Environment data
"python.jediEnabled"
set to; more info microsoft/vscode-python#3977): "python.jediEnabled": falsepython.languageServer
setting: MicrosoftExpected behaviour
can go to definition
Actual behaviour
can NOT go to definition
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
.vscode/settings.json
andextensions.json
// extensions.json { "recommendations": [ "ms-python.python", "visualstudioexptteam.vscodeintellicode" ] }
ModelViewSet
and then press F12 (go to definition
)rest_framework/viewsets.py@ModelViewSet
definitionmixins
orCreateModelMixin
or any super class and then press F12 (go to definition
)GenericViewSet
is right on the same file!Snapshots