Skip to content
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

Need to be able to set project base for imports #7

Open
GregTD42 opened this issue Jul 31, 2020 · 1 comment
Open

Need to be able to set project base for imports #7

GregTD42 opened this issue Jul 31, 2020 · 1 comment

Comments

@GregTD42
Copy link

Using this within Visual Source Code

Within my VSC root directory I have 4 projects: Pipeline, Utils, Upload, and Download

I am required to have the import path of the files in pipeline be Pipeline/src/wdl/...
If I import a file from Utils its path is Utils/src/wdl/...

So far as this tool is concerned, none of my imports are valid, so utilities like "Show Definition" do not work.

I need a parameter I can set in the .env files that lets me tell the WDL tools where the project base (or bases) is for imports

@dinvlad
Copy link
Contributor

dinvlad commented Aug 3, 2020

Thanks for raising the issue @GregTD42 !

The existing logic to resolve WDL paths goes as follows:

  1. If multiple "workspace folders" feature of VC Code is used, then it crawls each such folder.
  2. If "workspace folders" is not used, and only a single "root folder" is opened in VS Code instead, then it crawls that folder.

So from what I can see, it should correctly resolve any WDL paths in either case, as long as all of the WDLs are located within the same workspace (i.e. either a "workspace folder" or a "root folder"). Does that make sense?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants