{"action":"opened","issue":{"url":"https://api.github.com/repos/emacs-lsp/lsp-javascript/issues/22","repository_url":"https://api.github.com/repos/emacs-lsp/lsp-javascript","labels_url":"https://api.github.com/repos/emacs-lsp/lsp-javascript/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/emacs-lsp/lsp-javascript/issues/22/comments","events_url":"https://api.github.com/repos/emacs-lsp/lsp-javascript/issues/22/events","html_url":"https://github.com/emacs-lsp/lsp-javascript/issues/22","id":335130599,"node_id":"MDU6SXNzdWUzMzUxMzA1OTk=","number":22,"title":"Need a second root directory (or lib directory) for typescript module completion","user":{"login":"ztlevi","id":16655096,"node_id":"MDQ6VXNlcjE2NjU1MDk2","avatar_url":"https://avatars0.githubusercontent.com/u/16655096?v=4","gravatar_id":"","url":"https://api.github.com/users/ztlevi","html_url":"https://github.com/ztlevi","followers_url":"https://api.github.com/users/ztlevi/followers","following_url":"https://api.github.com/users/ztlevi/following{/other_user}","gists_url":"https://api.github.com/users/ztlevi/gists{/gist_id}","starred_url":"https://api.github.com/users/ztlevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ztlevi/subscriptions","organizations_url":"https://api.github.com/users/ztlevi/orgs","repos_url":"https://api.github.com/users/ztlevi/repos","events_url":"https://api.github.com/users/ztlevi/events{/privacy}","received_events_url":"https://api.github.com/users/ztlevi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-23T20:56:25Z","updated_at":"2018-06-23T20:56:25Z","closed_at":null,"author_association":"NONE","body":"@gpittarelli A very stupid issue concerning me for a long time, the react and many other libraries are stored under `~/Library/Caches/typescript/2.9/` on Mac. 2.9 is the typescript version while I couldn't figure which one determines it's version, tried local project typescript and global typescript. So to speak, we are not able to jump to definition or auto-complete if lsp only looks at the local directory.\r\n\r\nSo when we want to go to the definition of React, in vscode it will direct us to here. `~/Library/Caches/typescript/2.9/node_modules/@types/react/index.d.ts`\r\n\r\n![image](https://user-images.githubusercontent.com/16655096/41813533-a083521e-76ec-11e8-8dc9-c93284e38007.png)\r\n\r\nSo my suggestion here is to give a second root directory (or many be a lib directory but I couldn't find any clue `lsp-mode`).\r\n\r\nThanks!"}}
{"actor":{"display_login":"ztlevi"}}