{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/4294","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/4294/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/4294/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/4294/events","html_url":"https://github.com/Microsoft/vscode/issues/4294","id":141212191,"number":4294,"title":"JavaScript code formatting extention not working properly ","user":{"login":"Lonefy","id":7921431,"avatar_url":"https://avatars.githubusercontent.com/u/7921431?v=3","gravatar_id":"","url":"https://api.github.com/users/Lonefy","html_url":"https://github.com/Lonefy","followers_url":"https://api.github.com/users/Lonefy/followers","following_url":"https://api.github.com/users/Lonefy/following{/other_user}","gists_url":"https://api.github.com/users/Lonefy/gists{/gist_id}","starred_url":"https://api.github.com/users/Lonefy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lonefy/subscriptions","organizations_url":"https://api.github.com/users/Lonefy/orgs","repos_url":"https://api.github.com/users/Lonefy/repos","events_url":"https://api.github.com/users/Lonefy/events{/privacy}","received_events_url":"https://api.github.com/users/Lonefy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/js","name":"js","color":"c7def8"}],"state":"closed","locked":false,"assignee":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-03-16T09:06:53Z","updated_at":"2016-03-17T16:25:31Z","closed_at":"2016-03-16T13:22:09Z","body":"Before v0.10.10, the formatting extention works well.After the update, `Format Code (Alt+Shift+F)` just add some spaces. :(\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/197959272","html_url":"https://github.com/Microsoft/vscode/issues/4294#issuecomment-197959272","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/4294","id":197959272,"user":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T16:25:31Z","updated_at":"2016-03-17T16:25:31Z","body":"@Lonefy Our JavaScript language service is now and real extension. This means, the rule of having a single best match for the `DocumentFormattingProvider` comes into play (https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L3490). \r\n\r\nSince both (yours and ours) have the same score the provider registered last wins. You can restore the previous behaviour (that is your provider being in charge) by declaring a dependency on the builtin JavaScript mode and thereby being _last_. In your package.json add this\r\n\r\n```\r\n\"extensionDependencies\": [\"vscode.typescript\"]\r\n``"}}