Closed
Description
From @jbutz on April 6, 2016 18:12
- VSCode Version: 0.10.11
- OS Version: OS X El Capitan v 10.11.4
Steps to Reproduce:
-
Create a new file with the extension
.es6
and the following codeclass Testing { constructor() { this.myValue = "Hello World"; } test() { return this.myValue; } }
-
The Language Mode is automatically set to "JavaScript", but on
this.myValue
you getProperty 'myValue' does not exist on type 'Testing'
errors. -
Close the file and rename it to use a
.js
extension -
Open the file and notice that the errors are gone
Copied from original issue: microsoft/vscode#5046