{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/3791","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/3791/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/3791/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/3791/events","html_url":"https://github.com/Microsoft/vscode/issues/3791","id":139123031,"number":3791,"title":"JavaScript Intellisense not working for commonJS after upgrading to 0.10.10","user":{"login":"sghung","id":7843164,"avatar_url":"https://avatars.githubusercontent.com/u/7843164?v=3","gravatar_id":"","url":"https://api.github.com/users/sghung","html_url":"https://github.com/sghung","followers_url":"https://api.github.com/users/sghung/followers","following_url":"https://api.github.com/users/sghung/following{/other_user}","gists_url":"https://api.github.com/users/sghung/gists{/gist_id}","starred_url":"https://api.github.com/users/sghung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sghung/subscriptions","organizations_url":"https://api.github.com/users/sghung/orgs","repos_url":"https://api.github.com/users/sghung/repos","events_url":"https://api.github.com/users/sghung/events{/privacy}","received_events_url":"https://api.github.com/users/sghung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"egamma","id":172399,"avatar_url":"https://avatars.githubusercontent.com/u/172399?v=3","gravatar_id":"","url":"https://api.github.com/users/egamma","html_url":"https://github.com/egamma","followers_url":"https://api.github.com/users/egamma/followers","following_url":"https://api.github.com/users/egamma/following{/other_user}","gists_url":"https://api.github.com/users/egamma/gists{/gist_id}","starred_url":"https://api.github.com/users/egamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egamma/subscriptions","organizations_url":"https://api.github.com/users/egamma/orgs","repos_url":"https://api.github.com/users/egamma/repos","events_url":"https://api.github.com/users/egamma/events{/privacy}","received_events_url":"https://api.github.com/users/egamma/received_events","type":"User","site_admin":false},"milestone":null,"comments":19,"created_at":"2016-03-07T23:14:40Z","updated_at":"2016-03-09T13:40:08Z","closed_at":null,"body":"I updated to 0.10.10 today, hoping to try out the new JavaScript support with Salsa. Unfortunately, my Intellisense has stopped working. I am using type definition files from definitely typed (e.g. the express.d.ts).\r\n\r\nFor example, using 0.10.8:\r\n\r\nvar exp = require(\"express\");\r\nexp.Router\r\n\r\nI will see the content assist for the \"Router\" function and I can visit the definition file by right clicking on \"Router\" > Go to Definition\r\n\r\nNow when I do the same thing in 0.10.10, I don't see \"Router\" in the Intellisense list. In addition, the list seems to have variables I had defined earlier in my code (which doesn't apply to express at all)."},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/194300157","html_url":"https://github.com/Microsoft/vscode/issues/3791#issuecomment-194300157","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/3791","id":194300157,"user":{"login":"bill-mybiz","id":1253349,"avatar_url":"https://avatars.githubusercontent.com/u/1253349?v=3","gravatar_id":"","url":"https://api.github.com/users/bill-mybiz","html_url":"https://github.com/bill-mybiz","followers_url":"https://api.github.com/users/bill-mybiz/followers","following_url":"https://api.github.com/users/bill-mybiz/following{/other_user}","gists_url":"https://api.github.com/users/bill-mybiz/gists{/gist_id}","starred_url":"https://api.github.com/users/bill-mybiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bill-mybiz/subscriptions","organizations_url":"https://api.github.com/users/bill-mybiz/orgs","repos_url":"https://api.github.com/users/bill-mybiz/repos","events_url":"https://api.github.com/users/bill-mybiz/events{/privacy}","received_events_url":"https://api.github.com/users/bill-mybiz/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T13:40:08Z","updated_at":"2016-03-09T13:40:08Z","body":"@egamma This is a TypeScript project and there are no source js files in my ts files glob. But just for the fun of it, I added a jsconfig.json as follows in the root directory (alongside my tsconfig):\r\n\r\n```\r\n{\r\n    \"compilerOptions\": {\r\n        \"module\": \"commonjs\",\r\n        \"target\": \"ES6\"\r\n    },\r\n    \"exclude\": [\r\n        \"bin\",\r\n        \"bin-webpack\",\r\n        \"client/node_modules\",\r\n        \"client/platforms\",\r\n        \"client/plugins\",\r\n        \"client/resources\",\r\n        \"node_modules\"\r\n    ]\r\n}\r\n```\r\n\r\nI tried both restart javascript project command and restarting vs code itself and there is no difference. There are still several seconds of lag with the trycatch snippet option (as well as with other ctrl+shift+spacebar intellisense). When I hit ctrl+space on \"trycatch\" to get the snippet intellisense option, it will consistently lag about 10sec. Ctrl+space thereafter will be immediate as long as I don't edit anything. But if I hit spacebar just after trycatch (to move the cursor off of the symbol), then left arrow (to return to the end of \"trycatch\"), and then ctrl+space, there will be the 10 second lag again.\r\n\r\nI also tried to explicitly exclude folders in tsconfig, but it is not allowed when using the files glob.\r\n\r\nMy project is available on GitHub [here](https://github.com/ibgib/stackGib)."}}