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 code
class Testing {
constructor() {
this.myValue = "Hello World";
}
test() {
return this.myValue;
}
}
-
The Language Mode is automatically set to "JavaScript", but on this.myValue you get Property '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
From @jbutz on April 6, 2016 18:12
Steps to Reproduce:
Create a new file with the extension
.es6and the following codeThe Language Mode is automatically set to "JavaScript", but on
this.myValueyou getProperty 'myValue' does not exist on type 'Testing'errors.Close the file and rename it to use a
.jsextensionOpen the file and notice that the errors are gone
Copied from original issue: microsoft/vscode#5046