Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Automatically add common project roots (src) to search paths #1440

Closed
jakebailey opened this issue Aug 14, 2019 · 0 comments · Fixed by #1522
Closed

Automatically add common project roots (src) to search paths #1440

jakebailey opened this issue Aug 14, 2019 · 0 comments · Fixed by #1522
Assignees
Labels
enhancement New feature or request feature: imports

Comments

@jakebailey
Copy link
Member

jakebailey commented Aug 14, 2019

Requires #1388. Based on work in #1384.

Once search path configuration is done outside of the initialization options we should:

  • Add a new boolean to toggle a search path "heuristic".
  • If enabled (and the old backwards-compat searchPaths/extraPaths/etc are not specified), then we should detect a common import root and automatically add it to the search path list.

To start, this can be as simple as looking in the workspace's top level for a src directory, then add to the top of the user search path lists.

In the future, this heuristic can either be expanded, or eliminated (if our import handling becomes loose enough to not require it).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request feature: imports
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants