{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/16320","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/16320/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/16320/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/16320/events","html_url":"https://github.com/Microsoft/vscode/issues/16320","id":192824070,"number":16320,"title":"Peek/Go To Definition & Click to Open do not work with Webpack alias","user":{"login":"damonbauer","id":368723,"avatar_url":"https://avatars2.githubusercontent.com/u/368723?v=4","gravatar_id":"","url":"https://api.github.com/users/damonbauer","html_url":"https://github.com/damonbauer","followers_url":"https://api.github.com/users/damonbauer/followers","following_url":"https://api.github.com/users/damonbauer/following{/other_user}","gists_url":"https://api.github.com/users/damonbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/damonbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damonbauer/subscriptions","organizations_url":"https://api.github.com/users/damonbauer/orgs","repos_url":"https://api.github.com/users/damonbauer/repos","events_url":"https://api.github.com/users/damonbauer/events{/privacy}","received_events_url":"https://api.github.com/users/damonbauer/received_events","type":"User","site_admin":false},"labels":[{"id":272689392,"url":"https://api.github.com/repos/Microsoft/vscode/labels/feature-request","name":"feature-request","color":"708090","default":false},{"id":291055694,"url":"https://api.github.com/repos/Microsoft/vscode/labels/typescript","name":"typescript","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":{"login":"mjbvz","id":12821956,"avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false},"assignees":[{"login":"mjbvz","id":12821956,"avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-12-01T11:46:10Z","updated_at":"2017-10-13T12:50:00Z","closed_at":null,"author_association":"NONE","body":"- VSCode Version: 1.8.0-insider\r\n- OS Version: OSX El Capitan 10.11.6\r\n\r\nUsing normal, path based imports, Peek/Go To Definition and CMD+Click to open file from import work wonderfully. When using a [Webpack alias](http://webpack.github.io/docs/configuration.html#resolve-alias), Peek/Go To no longer work. It kind of \"fails silently\" in that nothing appears (not even an error message).\r\n\r\nSteps to Reproduce:\r\n1. Add an alias to a webpack config file\r\n2. Import a file using an ES6 import with the path to the file that includes the Webpack alias\r\n\r\nDesired Behavior:\r\n1. Using a Webpack alias inside an ES6 import, Peek/Go To Definition display in the same manner as when using a full path inside an import. \r\n2. CMD+Click to Open File from import statement works with both full paths and webpack aliases\r\n\r\nI've created a reduced repo that demonstrates the behavior: https://github.com/damonbauer/webpack-alias-demo/\r\n\r\nI'm setting an alias in the [webpack config](https://github.com/damonbauer/webpack-alias-demo/blob/master/webpack.config.js#L13) to map the word `app` to the path of `/src`. Then in a file, I'm [importing another](https://github.com/damonbauer/webpack-alias-demo/blob/master/src/App.js) with ES6 imports.\r\n\r\nEdit: I'm also using the [PathIntellisense extension](https://marketplace.visualstudio.com/items?itemName=christian-kohler.path-intellisense) with custom mappings so I can get path autocompletion when using an alias in an import. Perhaps there could be something helpful in that repo?"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/336443359","html_url":"https://github.com/Microsoft/vscode/issues/16320#issuecomment-336443359","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/16320","id":336443359,"user":{"login":"wanecek","id":1533747,"avatar_url":"https://avatars1.githubusercontent.com/u/1533747?v=4","gravatar_id":"","url":"https://api.github.com/users/wanecek","html_url":"https://github.com/wanecek","followers_url":"https://api.github.com/users/wanecek/followers","following_url":"https://api.github.com/users/wanecek/following{/other_user}","gists_url":"https://api.github.com/users/wanecek/gists{/gist_id}","starred_url":"https://api.github.com/users/wanecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanecek/subscriptions","organizations_url":"https://api.github.com/users/wanecek/orgs","repos_url":"https://api.github.com/users/wanecek/repos","events_url":"https://api.github.com/users/wanecek/events{/privacy}","received_events_url":"https://api.github.com/users/wanecek/received_events","type":"User","site_admin":false},"created_at":"2017-10-13T12:50:00Z","updated_at":"2017-10-13T12:50:00Z","author_association":"NONE","body":"Hey @wesleymostien, I ended up solving it by putting a `jsconfig.json` in the root of my project, with the following content:\r\n\r\n```json\r\n{\r\n  // This file is required for VSCode to understand webpack aliases\r\n  \"compilerOptions\": {\r\n    // This must be specified if \"paths\" is set\r\n    \"baseUrl\": \".\",\r\n    // Relative to \"baseUrl\"\r\n    \"paths\": {\r\n      \"@/*\": [\"./src/*\"],\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nwhich works fine for me. Try replacing\r\n\r\n```\r\n      \"@/*\": [\"./src/*\"],\r\n```\r\nwith\r\n```\r\n      \"components/*\": [\"./src/components/*\"],\r\n```\r\n\r\nand see if that works for you."}}
{"actor":{"display_login":"wanecek"}}