1
0
Fork 0
Commit Graph

16 Commits (836cdb77c071e4b12004330a5ff8a6afc0f70c34)

Author SHA1 Message Date
Rob Lourens b4e77f2e9c Remove more PhpParser\Node references 2017-05-19 14:40:38 -07:00
roblou cf9590b9b7 Remove "use PhpParser\Node" 2017-05-19 13:45:23 -07:00
roblou 5e9dfa104b Remove original DefinitionResolver, remove "Tolerant" on file names 2017-05-19 13:39:16 -07:00
Rob Lourens b5412621d6 Fix completion tests to handle receiving all items 2017-05-18 21:06:28 -07:00
Rob Lourens 67081c4abe Clean up completions, fix exceptions thrown from running strpos on empty strings 2017-05-18 14:26:34 -07:00
Rob Lourens 91f13795d6 Don't try to filter completions by member name, vscode does it 2017-05-18 11:03:13 -07:00
Rob Lourens 253f9b50a4 Fix completions on -> next to an unrelated token 2017-05-17 23:41:35 -07:00
Rob Lourens 31441f4b7e Remove ParserResourceFactory and DefinitionResolverInterface (leave original DefinitionResolver for now, for more testing) 2017-05-02 11:04:44 -07:00
Sara Itani 76c8536e91 first pass at completion provider (work in progress) 2017-04-25 17:09:52 -07:00
Sara Itani 591ecbd7d3 Extract static FQN methods to FqnUtilities 2017-03-01 16:51:45 -08:00
Sara Itani df315df04b start refactoring definition resolver 2017-03-01 16:51:43 -08:00
Sara Itani 13241a7be9 initialize tolerant-php-parser 2017-03-01 16:51:16 -08:00
Felix Becker a4a13e6528 Add support for inherited members (#218)
in completion, definition, references, hover etc
2016-12-16 01:40:17 +01:00
Felix Becker a7d77d844e Add Index classes and stubs (#214) 2016-12-13 01:51:02 +01:00
Michal Niewrzal db6f4f7e5d Don't filter properties on typed prefix (#207) 2016-12-07 21:17:55 +01:00
Felix Becker 10fb3c92e0 Completion (#165)
* Add support for method/property completion

* Move completion fixtures into directory

* Add support for variable suggestions

Refactor logic into CompletionProvider class

* Allow getTypeFromNode() to take Variable nodes

* Use property and constant values

* Fix using @var tag for variables

* Improve completion

* classes
* variables with prefix filtering

* Make FQNs more distinct

* use -> for instance methods/properties
* use ::$ for static properties

* Add tests for static access

* Properly filter completion on empty property

* Fix existing tests

* Add support for static access without prefix

* Fix testFullyQualifiedClass

* Add missing fixtures

* Correct file number in init test

* Only insert backslash if not typed yet

* Completion for keywords and bug fixes

* Correct variable insertion

* Support completion for namespaces

* Use CompletionList

* Always set isIncomplete to true

* Update PHPCodeSniffer

* Remove unused method

* And the call

* Handle case where FQN could not be resolved
2016-11-30 22:23:51 +01:00