Skip to content

Commit 553e568

Browse files
committed
[ty] Refactor detection of import statements for completions
This commit essentially does away of all our old heuristic and piecemeal code for detecting different kinds of import statements. Instead, we offer one single state machine that does everything. This on its own fixes a few bugs. For example, `import collections.abc, unico<CURSOR>` would previously offer global scope completions instead of module completions. For the most part though, this commit is a refactoring that preserves parity. In the next commit, we'll add support for completions on relative imports.
1 parent cdef3f5 commit 553e568

File tree

2 files changed

+600
-484
lines changed

2 files changed

+600
-484
lines changed

0 commit comments

Comments
 (0)