1
0
Fork 0
php-language-server/tests/Server/TextDocument
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
..
Definition Resolve expressions recursively (#155) 2016-11-18 15:22:24 +01:00
References Enable LS to operate without accessing the file system (#136) 2016-11-14 10:25:44 +01:00
CompletionTest.php Completion (#165) 2016-11-30 22:23:51 +01:00
DidChangeTest.php Enable LS to operate without accessing the file system (#136) 2016-11-14 10:25:44 +01:00
DidCloseTest.php Enable LS to operate without accessing the file system (#136) 2016-11-14 10:25:44 +01:00
DocumentSymbolTest.php Completion (#165) 2016-11-30 22:23:51 +01:00
FormattingTest.php Enable LS to operate without accessing the file system (#136) 2016-11-14 10:25:44 +01:00
HoverTest.php Enable LS to operate without accessing the file system (#136) 2016-11-14 10:25:44 +01:00
ParseErrorsTest.php Enable LS to operate without accessing the file system (#136) 2016-11-14 10:25:44 +01:00