1
0
Fork 0
Commit Graph

29 Commits (4b573acde192dac226d7849a6a0ab8a080585e57)

Author SHA1 Message Date
Rob Lourens 4b573acde1 Inline strStartsWith and remove it 2017-06-09 10:51:09 -07:00
Rob Lourens 9ad3c5aef6 Remove dead if block 2017-06-09 10:39:51 -07:00
Felix Becker d3d7f7dafe Remove unneeded group use 2017-06-09 13:32:14 +02:00
Felix Becker bc5717ab79 Check if node has parent 2017-06-09 13:32:02 +02:00
Felix Becker adf65e5b11 Polish CompletionProvider 2017-06-08 14:56:07 +02:00
Rob Lourens 1d314deff0 Make ParserHelper a module of functions, not a static class 2017-06-07 17:26:03 -07:00
Rob Lourens ae37940e55 Fix error when getting completions in anon function closure 'use' 2017-06-07 16:44:41 -07:00
Rob Lourens cfc8cc7815 Make FqnUtilities a module of functions, not a static class 2017-06-07 16:44:14 -07:00
Rob Lourens 01e72430d0 Fix indentation 2017-06-06 16:08:34 -07:00
Rob Lourens f144ca7c26 Refactor findVariableDefinitionsInNode to simplify and avoid closure use 2017-06-02 17:09:01 -07:00
Rob Lourens de44ce5cd4 Fix error from completions after typing 'new' 2017-05-31 20:22:37 -07:00
Rob Lourens 2568a42e12 Fix autofixable formatting errors 2017-05-25 11:39:42 -07:00
Rob Lourens 3dfe505727 Remove "Tolerant" alias
- Now unnecessary
-  Makes type annotations more readable
2017-05-24 11:26:53 -07:00
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