ruff
f1883d71 - [ty] IDE: only provide declarations and bindings as completions (#18456)

Commit
254 days ago
[ty] IDE: only provide declarations and bindings as completions (#18456) ## Summary Previously, all symbols where provided as possible completions. In an example like the following, both `foo` and `f` were suggested as completions, because `f` itself is a symbol. ```py foo = 1 f<CURSOR> ``` Similarly, in the following example, `hidden_symbol` was suggested, even though it is not statically visible: ```py if 1 + 2 != 3: hidden_symbol = 1 hidden_<CURSOR> ``` With the change suggested here, we only use statically visible declarations and bindings as a source for completions. ## Test Plan - Updated snapshot tests - New test for statically hidden definitions - Added test for star import
Author
Parents
Loading