Variable "name" in VSCode editor(intelli-sense) is showing incorrect information #39534
Labels
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
TS Template added by @mjbvz
TypeScript Version: 4.0.0-dev.20200708
Search Terms
Steps to Reproduce:
var name = "Hi";
console.log(name);
name = "Hello";
console.log(name);
Hover over(Mouseover) the variable "name" (in any of the console log statements given above).......picture attached.
Expected: During mouse/hover over, variable "name" on the console statement should display "name" as a variable.
Actual: During mouse/hover over, variable "name" on the console statement is showing it as constant. (actually, it's not a constant). Because I'm able to modify the value of the variable "name" from "Hi" to "Hello". This explains "name" is implemented as a variable.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: