1
0
Fork 0
Commit Graph

204 Commits (334683ae75ef7a7d5a93c862b14f408c8646e0fe)

Author SHA1 Message Date
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
Nicolas MURE 6a41a7f0dc
add example of indexed definitions 2017-11-13 20:22:21 +01:00
Nicolas MURE 8801edb7a2
also yield URIs to save memory 2017-11-13 20:22:20 +01:00
Nicolas MURE 8768b698d5
use Generators to get definitions without wasting memory 2017-11-13 20:22:20 +01:00
Nicolas MURE ca0caf1678
store definitions under the namespaceDefinitions cache key directly 2017-11-13 20:22:20 +01:00
Nicolas MURE 6d30035c78
also remove empty namespace index 2017-11-13 20:22:20 +01:00
Nicolas MURE 17602aa768
globalDefinitions cache to speedup autocomplete 2017-11-13 20:22:20 +01:00
Nicolas MURE 18f2f4c85c
cleanup 2017-11-13 20:20:37 +01:00
Nicolas MURE 6d725a234c
speedup static access autocomplete 2017-11-13 20:18:51 +01:00