Nguyễn Hồng Quân
91ffdead32
Sort completions by input resemblance. ( #2018 )
...
* Sort completions by input resemblance.
Fixes #2017
* Clean code
2024-07-15 08:15:20 +00:00
Dave Halter
d821451a64
Upgrade typeshed
2021-01-01 03:18:49 +01:00
Dave Halter
86d57edda4
Some Windows compatibility fixes
2020-12-26 11:52:47 +01:00
Dave Halter
a5a36a049c
Fix an infer issue on literals after brackets, fixes #1657
2020-10-23 19:09:23 +02:00
Dave Halter
f12ed2088a
Use pathlib for file ios, because the new parso is out
2020-08-05 00:52:50 +02:00
Dave Halter
d78567f853
Fix a Python 3.9 issue on travis
2020-07-17 16:12:55 +02:00
Dave Halter
480a464179
Implement all remaining Path issues and use it instead of strings
2020-07-12 01:14:00 +02:00
Dave Halter
5a912de937
Remove a few unicode references in tests
2020-07-02 03:18:48 +02:00
Dave Halter
6e184bca97
Remove most version_info.major usages
2020-07-02 03:00:01 +02:00
Dave Halter
f4e537fd72
Remove a lot of sys.version_info references
2020-07-02 02:49:35 +02:00
Dave Halter
3a0a484fcb
Try to get get the tests for Python 3.9 passing, fixes #1608
2020-06-10 09:54:32 +02:00
Dave Halter
883f5a3824
Merge branch 'improve-type-annotation-inference' of https://github.com/PeterJCLaw/jedi
2020-04-01 00:54:13 +02:00
Peter Law
5ca69458d4
Add testing for mismatch cases
...
This should help catch any errors in our handling of invalid cases.
While some of these produce outputs which aren't correct, what
we're checking here is that we don't _error_ while producing that
output.
Also fix a case which this showed up.
2020-03-22 15:10:43 +00:00
Dave Halter
d26926a582
Definition -> Name
2020-03-17 09:33:12 +01:00
Peter Law
0a7820f6de
Add many test cases
...
While these definitely _ought_ to work on Python 2.7, the annotation
support there is very limited and as Python 2 is deprecated it
doesn't seem worth it.
2020-02-23 13:58:10 +00:00
Dave Halter
8cc836e816
find_signatures -> get_signatures, see #1476
2020-01-22 01:10:38 +01:00
Dave Halter
58f54d8391
find_references -> get_references, see #1476
2020-01-22 01:06:37 +01:00
Dave Halter
c79269b3ee
Move another test to examples
2020-01-12 00:09:48 +01:00
Dave Halter
eca8278eef
Fix an error recovery goto issue, fixes davidhalter/jedi-vim#962
2019-12-23 10:09:45 +01:00
Dave Halter
9e818dc377
Test setting line/column multiple times
2019-12-20 20:03:00 +01:00
Dave Halter
e1d787821b
usages -> find_references
2019-12-20 19:23:26 +01:00
Dave Halter
adff6d34a4
goto_assignment -> goto everywhere where it was left
2019-12-20 19:15:41 +01:00
Dave Halter
d7d9c9642a
Don't use goto_definitions anymore, use infer
2019-12-20 19:06:24 +01:00
Dave Halter
38460ce9d7
Use complete instead of completions in test_api/
2019-12-20 16:16:01 +01:00
Dave Halter
39605bfa08
Make sure goto_assignments is no longer used on Definition
2019-12-20 14:43:20 +01:00
Dave Halter
45edfbdeeb
Goto definition doesn't work on strings anymore, fixes microsoft/vscode#81520
2019-12-20 10:29:54 +01:00
Dave Halter
41a6591d88
Completions.complete returns None for fuzzy completions #1409
2019-12-15 19:56:56 +01:00
Dave Halter
f91f655d55
Cleanup fuzzy tests a bit, see #1409
2019-12-15 19:50:43 +01:00
Dave Halter
ec2391c74f
Merge branch 'feature_827_fuzzy_search' of https://github.com/jmfrank63/jedi
2019-12-15 19:08:33 +01:00
Dave Halter
a2cebc4b92
Make sure docstrings can always be inferred for builtins modules, fixes #1432
2019-12-11 00:06:58 +01:00
Dave Halter
6ffeea7eea
Make sure code_lines works on stubs, even if they are builtins
2019-12-01 19:10:08 +01:00
Johannes Maria Frank
2039ab9a3c
Fixed pytest fixtures for test_api
2019-10-22 16:47:06 +01:00
Johannes Maria Frank
d48816603e
Sorted scandir results to have completions ordered
2019-10-22 16:34:47 +01:00
Johannes Maria Frank
f7fae4dde7
Added file fuzzy match and refactored
2019-10-22 15:50:16 +01:00
Johannes Maria Frank
2653752f9c
Corrected formatting
2019-10-21 15:44:03 +01:00
Johannes Maria Frank
d73f32745d
Fixed bug for python 2
2019-10-10 15:02:00 +02:00
Johannes Maria Frank
1fa678e3fe
Corrected an error in the math fuzzy completion test
2019-10-10 13:23:33 +02:00
Johannes Maria Frank
a84087682d
Adopted results for different python versions
2019-10-10 12:10:19 +02:00
Johannes Maria Frank
48ffc5473a
Added test for math og
2019-10-09 10:37:46 +02:00
Johannes Maria Frank
0b56bf8f08
Added completions test with fuzzy=True
2019-10-04 17:18:01 +01:00
Dave Halter
a9f1d3d9bb
Reenable a test
2019-09-05 10:09:33 +02:00
Dave Halter
1db3e9a65d
Disable a test in Python2
2019-09-05 10:03:50 +02:00
Dave Halter
6d361e03ac
Avoid import recursions in other ways
2019-08-24 02:06:57 +02:00
Dave Halter
3b4f292464
Move the evaluate package to inference
2019-08-15 00:14:26 +02:00
Dave Halter
fafd6b2ac6
Keyword completions are no longer possible directly after a number, fixes #1085
2019-06-26 15:04:46 +02:00
Dave Halter
eef02e5c56
Fix generator issues for typing
2019-06-08 01:50:38 +02:00
Dave Halter
4176af337f
A few Python 2 fixes
2019-05-18 01:09:09 +02:00
Dave Halter
fa17681cf6
Goto definitions goto stubs now have a proper implementation
2019-04-03 00:28:15 +02:00
Dave Halter
7c56052d58
Make infer public on classes
2019-04-01 09:25:00 +02:00
Dave Halter
e2ab4c060f
Move all the gradual typing stuff into one folder
2018-12-24 17:40:47 +01:00