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
What is happening is that VS Code registers .es6 files as JavaScript files and Code sends them over to the tsserver. Inside the tsserver .es6are not treated as JavaScript files but as TypeScript files. For this reason you get the additional errors.
Moving to TypeScript, there should be a way to configure that .es6 files need to be treated as JavaScript files. If VS Code doesn't send .es6 to the tsserver then the user doesn't get Intellisense and only coloring.
Steps to Reproduce:
Create a new file with the extension
.es6
and the following codeThe 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
extensionOpen the file and notice that the errors are gone
The text was updated successfully, but these errors were encountered: