1
0
Fork 0
Commit Graph

212 Commits (b625b0e956a97cceea42da4f9440724df11167b3)

Author SHA1 Message Date
Michael V b625b0e956 Rename CompletionItem to CompletionItemFactory 2018-11-10 19:02:54 +01:00
Michael V 118115fca5 Merge branch 'master' into autocomplet-speedup 2018-11-06 22:24:10 +01:00
dantleech 18c6ccd137 refactor: use protocol package (#661)
Adapts the Language Server to use the extracted php language server protocol
2018-09-09 14:37:35 +02:00
janekcz69 3931c8848f fix: cast null to array before passing to array_merge() (#666)
Fixes #595
2018-08-22 20:48:14 +02:00
Declspeck 02b7d2fdb6 feat(completion): add pseudo-keywords like int, bool, strict_types to completion 2018-03-11 13:50:12 -07:00
Declspeck 3d5f0ca107
Merge branch 'master' into autocomplet-speedup 2018-03-10 17:02:42 +02:00
Declspeck 5921fd3e8c
Address feedback 2018-03-10 17:02:06 +02:00
Felix Becker de1af6a165
refactor: use composer/xdebug-handler (#616) 2018-03-08 11:48:56 -08:00
Declspeck 334683ae75
Merge branch 'master' into autocomplet-speedup 2018-03-01 15:08:39 +02:00
Declspeck b412c125a4 fix(indexing): handle integer FQNs 2018-02-28 11:21:04 -08:00
Tyson Andre 8adcf92c2f chore: remove unused 'use' statements (#612)
detected via static analysis and manually checked
2018-02-28 10:05:22 -08:00
Declspeck 0bc5b81561
fix(completion): Return type hint 2018-02-15 23:13:04 +02:00
Declspeck d1933b8332
refactor(completion): rewrite global name completion with generators 2018-02-15 22:47:57 +02:00
Declspeck 98ac9ff913
Merge branch 'master' into autocomplet-speedup 2018-02-09 22:54:46 +02:00
Declspeck d6b4e79491
feat(completion): complete for used namespaces 2018-02-09 22:49:42 +02:00
Jens Hausdorf a8f60c9cf6 fix(completion): do not propose <?php if completion context is not given (#593)
fixes #372
2018-02-07 11:55:25 -08:00
Declspeck e589f9ee12
refactor(completion): make completion of global symbols use Index more efficiently 2018-02-03 23:10:13 +02:00
Declspeck 86179489aa
Merge remote-tracking branch 'origin/master' into autocomplet-speedup 2018-02-03 19:07:17 +02:00
Felix Becker d9bc0b0285
fix(completion): don't require constructor parameter for protocol DTO (#592) 2018-02-02 12:09:25 -08:00
Phil Nelson 6894d85aaf fix(DefinitionResolver): resolve self correctly for docblock @return self (#576) 2018-01-09 01:38:18 -08:00
Felix Becker 20960a8b9f
fix(DefinitionResolver): find variables in sibling children (#568)
Fixes #566
2017-12-30 22:26:51 -08:00
Phil Nelson 1cfba8b6bb fix(DefinitionResolver): don't crash if foreach key isn't a variable (#564) 2017-12-24 17:55:48 -08:00
Phil Nelson 425b2390b5 fix(DefinitionResolver): fix crash on unknown foreach type (#562)
Fix when unknown type is found in foreach expression
2017-12-24 01:52:49 -08:00
Phil Nelson 63da051e72 fix(DefinitionResolver): fix methods with self return type (#550) 2017-12-22 18:02:37 -08:00
Phil Nelson 9eea26df71 feat: foreach completion (#551) 2017-12-17 17:55:12 -08:00
phil-nelson a40cf731f7 feat: Signature help (#547)
closes #18
2017-12-09 21:10:43 -08:00
Felix Becker 09477b747e fix(diagnostics): handle null case 2017-12-03 15:49:43 -08:00
Maarten Staa 9b1fafae58 fix(diagnostics): update checking of $this usage to only error in static methods (#545) 2017-12-03 13:42:01 -08:00
Felix Becker fa67f84b73 perf: get direct children 2017-11-23 02:22:26 -08:00
Felix Becker 91ca99a867 Revert "differenciate member and non member definitions"
This reverts commit 48bbbb5d14.
2017-11-23 01:20:42 -08:00
Felix Becker 67dd9800f6
Merge branch 'master' into feature/autocomplete-speedup 2017-11-19 15:43:47 -08:00
Nicolas MURE 48bbbb5d14
differenciate member and non member definitions 2017-11-19 19:26:13 +01:00
Nicolas MURE 97ec127312
fix definition removal 2017-11-19 16:37:08 +01:00
Maarten Staa 4f672c24d8 feat(diagnostics): report error when $this is used in a static method or outside a class method (#528) 2017-11-18 17:41:37 -08:00
Felix Becker b03950cb53 Cleanup 2017-11-18 17:07:35 -08:00
Felix Becker 3bda390c3d
Merge branch 'master' into feature/autocomplete-speedup 2017-11-18 17:00:17 -08:00
Felix Becker 80ef8ff503
fix(indexing): properly resolve self, static and parent keywords (#532)
Previously we would dump static, self and parent as literal FQNs into the index.
2017-11-18 16:59:57 -08:00
Nicolas MURE fcdf791c2c
use string concatenation instead of sprintf 2017-11-16 17:44:04 +01:00
Felix Becker b1a1875070
fix(completion): don't suggest <?php on > characer (#527)
closes #372
2017-11-15 22:38:01 -08:00
Nicolas MURE b3f30f31f1
cache is backward compatible 2017-11-15 09:51:18 +01:00
Felix Becker b118c77699 Correct some docblocks 2017-11-14 22:36:07 -08:00
Felix Becker 7437d30d88 Fix formatting 2017-11-14 22:25:54 -08:00
Nicolas MURE e162d94e14
cleanup 2017-11-14 13:44:23 +01:00
Nicolas MURE cacde1ea72
use a single array to store definitions 2017-11-14 13:40:35 +01:00
Nicolas MURE 188a5df382
fix definitions storage collision (member / non member) 2017-11-14 04:41:10 +01:00
Nicolas MURE d1f85f15b6
use tree representation index 2017-11-14 02:54:18 +01:00
Nicolas MURE e9fd572a49
consider the merge of #511 2017-11-13 20:59:42 +01:00
Nicolas MURE 14f840bd2f
use correct terminology 2017-11-13 20:23:21 +01:00
Nicolas MURE e34d8e15dd
use of null coalescing operator 2017-11-13 20:22:21 +01:00
Nicolas MURE 6a36828069
avoid useless array 2017-11-13 20:22:21 +01:00