Skip to content

Conversation

kinto0
Copy link
Contributor

@kinto0 kinto0 commented Sep 26, 2025

Summary:
completion for the <> in from .<> imports currently don't work.

in this diff, I implement basic support for them:

  • if we have a config and this file is in that config, use the absolute import path for them
  • if this fails, use the fallback_search_path at the level of the dots

we still don't have support for go-to definition / hover on these relative modules.

fixes #874

Differential Revision: D83351301

Summary:
completion for the <> in from .<> imports currently don't work.

in this diff, I implement basic support for them:

- if we have a config and this file is in that config, use the absolute import path for them
- if this fails, use the fallback_search_path at the level of the dots

we still don't have support for go-to definition / hover on these relative modules.

fixes facebook#874

Differential Revision: D83351301
@facebook-github-bot
Copy link
Contributor

@kinto0 has exported this pull request. If you are a Meta employee, you can view the originating diff in D83351301.

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

Successfully merging this pull request may close these issues.

Relative module autocomplete
2 participants