-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Peek Definition in custom location #11959
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
Comments
From @roblourens on October 21, 2016 18:7 How does it resolve an import path like that? Do you get intellisense for those imports? |
From @vvatikiotis on October 23, 2016 10:56
|
From @roblourens on October 23, 2016 17:14 And you're saying that you can't do go to definition/peek definition for |
From @vvatikiotis on October 23, 2016 17:19 Yes |
@vvatikiotis What you are describing is a bug and not intended behavior. Can you share your workspace or a minimal repo that reproduces the behavior? I am not seeing this in the latest Insiders build. |
From @vvatikiotis on October 25, 2016 6:54 Try react-redux-starter-kit. In lines 18-19 in That was my original question, i.e. is it possible to specify project locations in VSS, such as
instead of
|
@vvatikiotis thank you for the explanation. This is a unique feature request. The functionality for this depends on the JavaScript language service which is contained in the TypeScript repo. Migrating there. |
@bowdenk7 do you have a feature request like this on your roadmap or radar as a duplicate issue? I have not seen it before. |
The config file should support "compilerOptions": {
"baseUrl": "./modules"
} Tells the system to look for similarally: "compilerOptions": {
"baseUrl": "./modules",
"paths": {
"utils/xhr" : [ "xhr"]
}
} Tells the system to look for you can find more about this in http://www.typescriptlang.org/docs/handbook/module-resolution.html#additional-module-resolution-flags |
Thanks for the reply, this resolves my issue, specifying One minor glitch: in |
From @vvatikiotis on October 21, 2016 6:48
Is it possible to configure VSS, (via
jsoncifg.json
maybe?) to Peek Definition inside custom project locations? For instance:Currently, I'm unable to Peek Definition in location
utils/xhr
, which specifies a project-wise absolute location. This works for relative locations.Thanks
Copied from original issue: microsoft/vscode#14134
The text was updated successfully, but these errors were encountered: