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
Format code does not work for javascript code #12359
Comments
This works for me, could you paste the content of a file where the problem reproduces? |
Sorry for my late response. here is the contents of my settings.json : "editor.wrappingColumn": 200 } Code snippet: } else if (xmiElem.stType === 'dataElements') {
} else if (xmiElem.stType === 'implDataDefProp' || |
Your settings don't affect the formatter.
|
Yep I was selecting only those lines. It did not work for the entire file.. I have tried that But I had to move the project into another folder, and now formatting works... |
I'm having the same issue. Running on ubuntu 14.04 Help menu -> About - showing this details: The contents of my settings.json :
|
same issue here: shift-alt-f or using command bar to format code for js files has no effect. formatter works with json files. after a healthy amount of swearing i found that if i delete node_modules from the current directory the code formatting for js works again so probably vscode tries to load something from there. here's the package.json: {
"name": "delivery",
"version": "0.0.0",
"description": "delivery",
"main": "server.js",
"author": {
"name": "Marian",
"email": ""
},
"dependencies": {
"body-parser": "^1.15.2",
"express": "^4.14.0",
"underscore": "^1.8.3",
"webpack": "^1.13.2"
}
} VSCode: Version 1.5.3 Node.js: v6.7.0 No user settings or workspace settings files present |
@geogeim And does the problem come back when you install the node_modules again? Could you try the insiders build and confirm the problem is still present there: https://code.visualstudio.com/insiders If it's still there, could you provide your workspace? I currently can't reproduce. Thanks. |
try to reproduce this file structure:
if you still can't reproduce it i apologize, i will upload a test project |
@geogeim @ArnonEilat @galpeti thank you for making us aware of this issue. I am having a hard time reproducing what you are seeing I have tried the code samples above but to no avail. There is some discussion on that this is due to a node_modules folder. I have also tried to recreate the bug using my JavaScript projects. It has not worked. Can one or all of you share a minimal repo where this behavior is seen? Also, please move to v1.6 of VS Code. |
Retested with 1.5.3 still reproducible but not reproducible on |
Closing this as fixed in 1.6.0. |
Steps to Reproduce:
It was working fine in previous versions.
The text was updated successfully, but these errors were encountered: