You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto completion doesn't show values of variables whose value is known #813
VS Code version: 1.20.1
Python Extension version: 2018.1.0
Python Version: 2.7.12
OS and version: Ubuntu 16.04.3 amd64
Actual behavior
The auto completion support doesn't show the value of variables whose value is known which the autocomplete-python[-jedi] extensions for Atom does show. (The code in this extension seems copied and modified from it).
Expected behavior
It should show them like the extension for Atom does. The code in completion.py is already there. It's a matter of wiring it up into the VS Code API nicely (It's something the extension for Atom implemented and not a pure stock feature of Jedi).
It shows it on the right hand side of a completion suggestion. VS Code is calculating this but than not using this property. Only showing the doc string for the type of the completion which is what we are seeing (I think it might even be getting the doc string by itself rather than relying on Jedi).
Don Jayamanne (@DonJayamanne) Are you sure? As I noted, the code for getting the value is already there... (Copied from the Atom extension apparently).
Activity
DonJayamanne commentedon Feb 17, 2018
This isn't a feature that we support today. Even if it were possible it would introduce some complexity in providing these values.
segevfiner commentedon Feb 17, 2018
Don Jayamanne (@DonJayamanne) Are you sure? As I noted, the code for getting the value is already there... (Copied from the Atom extension apparently).