Dmitry Gridin
11a3482970
tests: apply official code style
...
#KT-38632 Fixed
2020-05-07 12:36:44 +00:00
Roman Golyshev
90750483ee
KT-36860 Collect extensions from object on first completion
...
- This should not affect the performance of the completion, since all
object extensions are collected on the last step, when all main variants
are already collected
- Add more tests
- Also, disable completion of extensions from objects as callable
references (^KT-37395 Fixed)
- ^KT-36860 Fixed
2020-03-11 13:31:56 +03:00
Roman Golyshev
3461effd47
KT-33372 Remove renaming file reference to the contents of the file
...
- There is still a hack with returning null from `getLastFileReference`,
it is here to keep KT-25674 issue fixed
- Overrides of `bindToElement` are removed, they caused renames of the
file references to their contents
- Code of `KotlinFilePathReferenceContributor.kt` is refactored
- ^KT-33372 ^KT-32514 ^KT-36306 Fixed
2020-02-16 17:08:11 +03:00
Roman Golyshev
3112d70420
KT-35042 Fix InsertHandlerProvider.kt to work with suspend functional parameters
...
- ^KT-35042 Fixed
- Also, fix review suggestions for KOTLIN-CR-3495
2019-11-29 14:55:22 +03:00
Toshiaki Kameyama
4d9b19da82
Remove comments from function/property implementation template
...
#KT-18539 Fixed
2019-11-13 08:37:25 +09:00
Roman Golyshev
e89a87b2e3
KT-29926: Support completion of suspend lambda body and parameters
...
- ^KT-29926 Fixed
2019-11-08 19:24:05 +03:00
Roman Golyshev
6560ecc82b
KT-15286: Provide object member extensions in the completion
...
- Add extensions only when completion of static members is enabled (double ctrl + space and nonempty prefix)
- Add full import for callables with receiver in `LookupElement.decorateAsStaticMember`
2019-10-18 17:17:28 +03:00
Dmitry Gridin
5dddc464a5
Completion: add tests for case with overloaded function with lambda with receiver parameter
...
Relates to #KT-31073
2019-09-23 23:20:26 +07:00
Dmitry Gridin
a843c23f20
Completion: add root prefix support
...
#KT-10340 Fixed
2019-09-05 18:01:23 +07:00
Toshiaki Kameyama
3a77b63c85
Completion: don't propose the same name for arguments of lambda (KT-9792)
...
#KT-9792 Fixed
2019-06-29 20:36:55 +03:00
Mikhail Zarechenskiy
c03dfd1522
[IDE-NI-MIGRATE] Migrate completion tests for new inference
2019-05-06 13:59:26 +03:00
Toshiaki Kameyama
18ed031e7e
Fix completion for back-ticked name (KT-19863, KT-19864)
...
^KT-19863 Fixed
^KT-19864 Fixed
2019-01-05 18:52:26 +03:00
Alexander Podkhalyuzin
ed8aad6149
Override completion right after override modifier
...
#KT-25312 Fixed
2018-09-17 12:23:59 +03:00
Alexander Podkhalyuzin
baa0f2dc1b
Override completion in expect class should behave differently
...
Caret placement is at the end of new fun/property
#KT-25313 Fixed
2018-09-10 14:23:48 +03:00
Alexander Podkhalyuzin
04fd4ef9de
Do not stop recursive visitor with return
...
#KT-23627 Fixed
2018-07-09 15:19:38 +03:00
Kirill Rakhman
b567817d1f
Make completion for overriding functions respect suspend modifier
...
Fixes #KT-22200
2018-01-16 15:42:03 +01:00
Toshiaki Kameyama
27e7f13335
Fix AssertionError on completing after template in string literal
...
#KT-16402 Fixed
2017-11-13 16:01:34 +03:00
Simon Ogorodnik
5778ace6b0
KT-20166: Replace type name when caret is at the end of param name
...
When caret is at the end ('f<caret>: Foo'), tokenAt was COLON,
not IDENTIFIER
#KT-20166 fixed
2017-10-25 18:07:01 +03:00
Valentin Kipyatkov
998814b1a1
Support for import aliases in both resolve and completion in KDoc
2017-08-08 22:06:04 +03:00
Valentin Kipyatkov
9361cd895c
Support for import aliases in code completion
...
#KT-8848 Fixed
2017-08-08 22:06:04 +03:00
Simon Ogorodnik
33c22b8251
KT-8208: Support static members completion when receiver not-imported
...
#KT-8208 fixed
2017-07-04 16:41:50 +03:00
Denis Zharkov
bc564af2fc
Regenerate mockJDK using openJDK 7
2017-06-24 17:26:01 +03:00
Toshiaki Kameyama
af941bfdf5
KT-18158 Expand selection should select the comment after expression getter on the same line ( #1122 )
...
* Expand selection should select the comment after expression getter on the same line #KT-18158 Fixed
* Fixed expand selection behavior for the declaration with comment #KT-18158
* Remove redundant code #KT-18158
2017-06-14 12:28:56 +02:00
Simon Ogorodnik
02fec6e4a5
Add fine check of type inference when adding <> in completion
...
Add check if type inferred via type parameter of upper bound
of extension receiver or value argument
#KT-16161 fixed
2017-04-19 21:27:31 +03:00
Simon Ogorodnik
2490318f93
KT-16076 Completion inserts FQN kotlin.text.String
...
KT-14831 Don't add import statement and FQN on converting lambda to reference if typealias is used
KT-16088 Completion wrongly inserts FQN for `kotlin` package
#KT-16076 fixed
#KT-14831 fixed
#KT-16088 fixed
2017-02-13 16:48:14 +03:00
Nikolay Krasko
2bb48fc802
Allow empty single-line bodies in property accessors
2016-12-14 13:40:44 +03:00
Ilya Gorbunov
e787930673
Fix completion handler tests: use tail specifier to select one of multiple completion variants (eg 'kotlin.collections.ArrayList' vs 'java.util.ArrayList').
...
Replace aliased types imported by default with something else.
2016-11-16 18:47:42 +03:00
Valentin Kipyatkov
9b55ad82a0
KT-14370 Completion inserts fully qualified name for any Java interface with single abstract method (SAM-interface)
...
#KT-14370 Fixed
2016-11-08 19:14:41 +03:00
Valentin Kipyatkov
7ab2d0c951
KT-13810 Kotlin code completion missing last character
...
#KT-13810 Fixed
2016-10-18 11:56:59 +03:00
Valentin Kipyatkov
73dc5fefcb
KT-12077 Code completion inserts FQN for annotations with use-site target inside primary constructor
...
KT-13009 Kotlin: annotation auto-import is broken in multiple ways
#KT-12077 Fixed
#KT-13009 Fixed
2016-10-11 17:26:52 +03:00
Valentin Kipyatkov
0c14058d13
Moved tests
2016-10-11 17:26:52 +03:00
Valentin Kipyatkov
f6b471ac01
Better tests
2016-09-13 12:02:10 +03:00
Valentin Kipyatkov
5bf701ab03
KT-13047 Autocomplete inserts a fully-qualified variable name inside a String
...
KT-12083 String interpolation -- auto {} if there is a letter after cursor
#KT-13047 Fixed
#KT-12083 Fixed
2016-09-13 12:02:10 +03:00
Valentin Kipyatkov
efac7a11b3
Do not include "operator" and "infix" into completion item text for override
2016-09-07 18:10:11 +03:00
Alexey Sedunov
89c39b9762
Misc: Use TODO() consistently in implementation stubs
...
#KT-13589 Fixed
2016-08-29 16:20:55 +03:00
Valentin Kipyatkov
7f07890f6a
KT-13298 Suggest names for overridden properties / functions in completion
...
#KT-13298 Fixed
2016-08-16 18:17:24 +03:00
Dmitry Jemerov
ef0318e038
more testdata updates due to default function template change
2016-07-20 10:44:54 +02:00
Valentin Kipyatkov
0bc5007147
KT-12369 Completion: pressing dot after class name should not cause insertion of constructor call
...
#KT-12369 Fixed
2016-06-20 16:19:02 +03:00
Valentin Kipyatkov
b9719bfe82
Fixed test so that it really tests what's intended
2016-06-20 16:19:02 +03:00
Valentin Kipyatkov
eb1dbfc652
KT-12669 Completion should show variant with () when there is default lambda
...
#KT-12669
2016-06-20 16:19:02 +03:00
Valentin Kipyatkov
1413a3fe63
KT-12328 Qualified function name inserted when typing before "if"
...
#KT-12328 Fixed
2016-06-20 16:19:01 +03:00
Denis Zharkov
5c1e17c8e7
Revert "Completion fix for reserved 'async' syntax"
...
This reverts commit 318f0c89b2 .
2016-06-08 18:53:16 +03:00
Valentin Kipyatkov
40022e8f7a
KT-12068 Special completion item for "[]" get-operator access
...
#KT-12068 Fixed
2016-04-27 23:47:34 +03:00
Valentin Kipyatkov
deb75b3f18
Completion to complete non-imported classes on the first invocation
...
#KT-8527 Fixed
2016-04-27 23:47:33 +03:00
Valentin Kipyatkov
f0dd70d94c
KT-11680 Code completion of label for existing return with value inserts redundant whitespace
...
#KT-11680 Fixed
#KT-9993 Fixed
2016-04-27 23:46:26 +03:00
Alexey Sedunov
1635018fe7
Override/Implement: Use function body template when generating functions with default body
...
#KT-11807 Fixed
2016-04-21 16:40:17 +03:00
Valentin Kipyatkov
f3bb3e9c6e
KT-11912 String interpolation is not converted to ${} form when accessing this.property
...
#KT-11912 Fixed
2016-04-19 15:22:05 +03:00
Valentin Kipyatkov
b32859cf68
KT-11633 Kotlin code editor applies wrong indentation after completing a statement in data class
...
#KT-11633 Fixed
2016-04-18 17:15:52 +03:00
Valentin Kipyatkov
c9bb020d6e
KT-9738 Code completion of "emptyList()" after elvis operator inserts explicit type arguments
...
#KT-9738 Fixed
2016-02-11 12:26:23 +03:00
Valentin Kipyatkov
53fe1568c9
KT-8529 Code completion for parameter name and type together replaces wrong range on Tab
...
#KT-8529 Fixed
2016-01-21 18:30:09 +03:00