Commit a788c47
committed
[ty] Add
This doesn't implement fully context aware keyword completions, but it
does let us include the 3 keywords that are also values in completions.
This helps improve the completion experience when trying to write one of
these values in the ty playground.
Ranking could still be improved here. We haven't yet devised a mechanism
for ranking "builtin" symbols above others. It's even plausible that
these _particular_ symbols should get special treatment over and above
others.None, True and False to scoped completions1 parent 6821b7a commit a788c47
File tree
4 files changed
+38
-3
lines changed- crates
- ty_completion_eval
- ty_ide/src
- ty_python_semantic/src
- types
4 files changed
+38
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
255 | 259 | | |
256 | 260 | | |
257 | 261 | | |
| |||
269 | 273 | | |
270 | 274 | | |
271 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
272 | 307 | | |
273 | 308 | | |
274 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4576 | 4576 | | |
4577 | 4577 | | |
4578 | 4578 | | |
4579 | | - | |
| 4579 | + | |
4580 | 4580 | | |
4581 | 4581 | | |
4582 | 4582 | | |
| |||
0 commit comments