-
Notifications
You must be signed in to change notification settings - Fork 12.8k
formatting does not work for newly created JavaScript file #9610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From @misaxi on July 10, 2016 12:16 @dbaeumer I don't know if you are using a beta version. My VSCode icon is in blue :) But I've upload my gif to show what exactly happened. Highlights
|
Thanks for the steps. The difference to what I do is I create the new file in the explorer whereas you create a new empty file and then save. Need to see what differences in code paths that results in. |
The error occurs in the tsserver. The trace is:
|
Some more tracing. This only happens if there is already a js in the workspace. If a first js file is created that way, no problem occurs. The full trace from the open of the test.js file for which formatting fails is:
Moving to the TS team since this looks like a project setup , ScriptVersion problem. |
@dbaeumer Are you using the EditorConfig for VS Code plugin? @mhegazy I don't think it is a Typescript bug. It seems more a bug from the EditorConfig plugin. Let me explain what I mean. I've had a similar problem: the intellisense didn't work when I created new files. After some tests, and removing all my plugins, I've realized that the problems stopped. After reinstalling my plugins one by one I could identify the guilty one: I can reproduce this problem as many times I install and uninstall the plugin. So, after some researches, I found this issue and another one. Last is a EditorConfig's issue and its related with autocomplete/intellisense. When I've got here and have noticed the exactly same error message ( And guest what? Both problem occurs only when EditorConfig plugin is installed. |
No |
I didn't expect this answer, @dbaeumer. 😕 |
I don't think it is another plugin's problem, as I can repro on a clean installed vscode. Investigating. |
From @misaxi on July 7, 2016 11:49
Steps to Reproduce:
Copied from original issue: microsoft/vscode#8833
The text was updated successfully, but these errors were encountered: