Open saqadri opened 4 years ago
This is known; the LS doesn't do dataflow analysis to this extent and doesn't recognize ordering.
@jakebailey will this change in the future? Have users who have opted-in to the MSFT Python LS in the Python VS Code extension had feedback about this?
Environment data
Declare
var = "Hello World"
Go to line before declaration and tryvar.
Expected behaviour
var
should not be recognized in autocomplete results by language server beforevar
has been declaredActual behaviour
var.
provides completion results forvar
as a string. As you typeva
you get completion option forvar
, which should not be in scope.Logs
Code Snippet / Additional lnformation