Dave Halter
9578e4252b
Goto on a function/attribute in a class now goes to the definition in its super class, fixes #1175
2019-12-24 12:49:23 +01:00
Dave Halter
1d17033717
Add support for completion even when __getattr__ is present, fixes #997
2019-12-24 01:44:53 +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
f2a64e24c8
Catch an additional case for get_context where the cursor is e.g. on the function name
2019-12-22 17:35:40 +01:00
Dave Halter
fcf8506531
Add Script().get_context, fixes #253
2019-12-22 17:19:01 +01:00
Dave Halter
22c3beffd0
Fix some issues with Definition.parent()
2019-12-22 15:37:53 +01:00
Dave Halter
290d1c151a
Remove the _Help class completely
2019-12-21 20:07:43 +01:00
Dave Halter
fcede44c2a
Move the docstring checking code to the names
2019-12-21 20:06:37 +01:00
Dave Halter
536fd8c7c0
Add the Script.help function, fixes #392
2019-12-21 12:46:58 +01:00
Dave Halter
5fc308f1f8
call signature -> signature
2019-12-20 19:41:57 +01:00
Dave Halter
bd861e40a8
Rename references file
2019-12-20 19:25:46 +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
4bbaec68e8
Make sure goto_definitions is no longer used in the main code
2019-12-20 18:47:04 +01:00
Dave Halter
f90aeceb27
Move names to Script and mark deprecations
2019-12-20 17:55:45 +01:00
Dave Halter
5bf6e7048b
A few renames for readability in the api/completion.py file
2019-12-20 17:40:04 +01:00
Dave Halter
ebe9921208
Try to use the new API names everywhere
2019-12-20 17:29:42 +01:00
Dave Halter
f03c70e577
Refactor run.py to use the new API
2019-12-20 17:25:44 +01:00
Dave Halter
2cc898ba35
Get rid of completions in tests
2019-12-20 16:54:51 +01:00
Dave Halter
2b5af19989
Fix signature issues
2019-12-20 16:14:01 +01:00
Dave Halter
bcf726054e
Make sure the line numbers are validated for the new API methods
2019-12-20 16:00:49 +01:00
Dave Halter
1514695fc1
usages -> find_references, see #1166
2019-12-20 15:46:17 +01:00
Dave Halter
f32b0aebeb
call_signatures -> find_signatures
2019-12-20 15:41:20 +01:00
Dave Halter
6c7b8f669f
goto_definitions -> infer; goto_assignments -> goto, see #1166
2019-12-20 15:35:19 +01:00
Dave Halter
87d5334b9e
completions -> complete, see #1166
2019-12-20 15:30:35 +01:00
Dave Halter
1f4be4bc51
Make sure that goto is used instead of goto_assignments
2019-12-20 14:31:42 +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
ec2391c74f
Merge branch 'feature_827_fuzzy_search' of https://github.com/jmfrank63/jedi
2019-12-15 19:08:33 +01:00
Dave Halter
621e280451
Make sure that you can select virtualenvs more precisely, fixes #1407
2019-12-13 21:00:34 +01:00
Shane Steinert-Threlkeld
bd5909e7b2
Find active conda environment and set it as default (if there is one) ( #1440 )
...
* add detection of conda environments
* changed get_default_environment to look for conda
* updated comment on get_default_environment to mention CONDA_PREFIX
* added myself to authors
* simple fix for mistaken conda paths
2019-12-07 01:04:41 +01:00
Dave Halter
700bd12122
Improve call signature detection by a lot
...
Fixes #1399
2019-12-04 23:55:26 +01:00
Dave Halter
8aee1e6213
Make sure that decorator signature completion is working, see #1433
2019-12-03 22:20:38 +01:00
Dave Halter
f46f00bc71
Avoid wrong random call signature completion, fixes #1433
2019-12-03 22:12:33 +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
Dave Halter
b895924311
Merge pull request #1451 from pappasam/FIX_SHOW_SYSTEM_FOLDERS
...
Fix: no longer shows folders recursively to root
2019-12-01 00:12:51 +01:00
Dave Halter
86071dda54
Use a different sys path for import completions and import type inference
...
Fix tests of the #1451 pull request
2019-12-01 00:12:19 +01:00
Sam Roeca
1ba83414a5
Change search strategy for adding parent paths:
...
1. skip dirs with __init__.py
2. Stop immediately when above self._path
2019-11-30 10:14:28 -05:00
Sam Roeca
c2fd7b3104
Fix: upward search omits unnecessary paths
...
In the previous implementation, Jedi's traverse_parents function
traversed parent directories to the system root every time. This would
inadvertently add every folder to the system root every time. Obviously,
this is not the behavior desired for the import system.
This commit collects directories in an upward search until we:
1. Hit any directory without an __init__.py, AND
2. Are above self._path.
2019-11-29 21:12:12 -05:00
Sam Roeca
4bc4f167e9
Revert "Fix: no longer shows folders recursively to root"
...
This reverts commit 03b4177d3d .
2019-11-29 20:11:23 -05:00
Dave Halter
6e5e706288
Fix file name completions when file name is too long
2019-11-29 14:11:31 +01:00
Dave Halter
0e92be66db
Fix an issue around completions in comments before strings
2019-11-29 13:44:12 +01:00
Sam Roeca
03b4177d3d
Fix: no longer shows folders recursively to root
...
In the previous implementation, Jedi would's traverse_parents function
traversed parent directories to the system root every time. This would
inadvertently add every folder to the system root every time. Obviously,
this is not the behavior desired for the import system.
This pull request provides a new argument to the traverse_parents
function, "root", which represents the root parent for the search. This
argument defaults to None, thereby preserving the existing behavior of
the function.
I chose to duplicate some code for performance reasons. Since I'm trying
to avoid too much path manipulation magic, we do:
* a search to a valid specified root, OR
* a simple upward search until hitting the system root when there is no
valid root specified.
2019-11-28 23:04:08 -05:00
Johannes Maria Frank
364a527fd9
Added missing sorted to scandir
2019-10-22 16:49:35 +01:00
Johannes Maria Frank
f61d041830
Switched back to fuzzy off as default
2019-10-22 16:06:46 +01:00
Johannes Maria Frank
f7fae4dde7
Added file fuzzy match and refactored
2019-10-22 15:50:16 +01:00
Johannes Maria Frank
0b56bf8f08
Added completions test with fuzzy=True
2019-10-04 17:18:01 +01:00
Johannes Maria Frank
85278242c3
Switched to fuzzy boolean
2019-10-02 00:28:31 +01:00
Johannes Maria Frank
0bbc8d6e9a
Added match_method parameter
2019-09-26 09:12:15 +01:00
Johannes Maria Frank
8f306953da
Added experimental substring and fuzzysearch
2019-09-26 08:17:30 +01:00