1
0
Fork 0
Commit Graph

312 Commits (7303143a6048e199f0cbf65e0cea5c8b9406488b)

Author SHA1 Message Date
Felix Becker bec24383d4 Ignore errors when setting process title (#123) 2016-10-27 09:49:04 +02:00
Felix Becker 28dc42b5c0 Add note about versioning 2016-10-27 00:11:33 +02:00
Felix Becker 92145c526e Update sabre/event to 5.0 2016-10-27 00:03:09 +02:00
Felix Becker 99224b73e4 Improve README (#120) 2016-10-27 00:00:49 +02:00
Felix Becker 18e58b4ce8 Update php-parser to latest commit (#119) 2016-10-26 22:25:24 +02:00
Felix Becker ed41df0062 Remove caching for now (#118) 2016-10-26 21:35:57 +02:00
Michal Niewrzal 867196babf Definition for instanceof class (#117) 2016-10-26 20:56:02 +02:00
Michal Niewrzal 8a354ba1af Definition for use function (#116) 2016-10-26 11:47:02 +02:00
Stephan Unverwerth 6806ba94e0 Async ProtocolStreamWriter (#112) 2016-10-25 23:50:36 +02:00
Felix Becker cd3bf18fe2 Revert "Handle closed input or output stream (#110)"
This reverts commit 83afa0c1b8.
2016-10-24 23:20:15 +02:00
ADmad 5ecab683eb Linting (#107)
* Update travis config.
* Add phpcs config file.
* Exclude rules
* Ignore failures in tests
* Automatic fixes
* Inline ParsingMode enum as class constants
* Loosen FormatTest because of excluded rule
2016-10-24 19:35:37 +02:00
Kaloyan Raev 83afa0c1b8 Handle closed input or output stream (#110) 2016-10-24 13:46:39 +02:00
Michal Niewrzal a19d225a7a Fix definition for method return type (#76) 2016-10-21 16:51:11 +02:00
Felix Becker b16674d394 Improve logging 2016-10-20 16:46:34 +02:00
Felix Becker b9222b0fd1 Switch to serialize() instead of JSON (#104) 2016-10-20 04:31:07 +02:00
Felix Becker 1e7260a2ea Cache index on disk (#82) 2016-10-20 03:48:30 +02:00
Felix Becker 8e36e59e9a Fix crash 2016-10-20 03:36:17 +02:00
Felix Becker 953a8023b7 Update AdvancedJsonRpc (#103) 2016-10-20 03:31:12 +02:00
Felix Becker f8733c741c Remove PhpParser workaround (#102) 2016-10-20 02:13:15 +02:00
Felix Becker 1e00275e02 Hold SymbolInformation table in memory (#101) 2016-10-20 02:08:23 +02:00
Felix Becker 9cbca1cd7f Revert "Use SymbolKind::FIELD for class fields (#78)"
This reverts commit 2980941fd1.
2016-10-20 01:53:07 +02:00
Felix Becker 96694996f7 Refactor FQN functions to own namespace (#100) 2016-10-20 01:00:20 +02:00
Felix Becker e993b9994a Remove unneeded argument to ReferencesCollector 2016-10-20 00:20:30 +02:00
Felix Becker e19670c141 Resolve self, static, parent (#99) 2016-10-20 00:18:36 +02:00
Felix Becker 6bd1b10e4d Resolve $this (#98) 2016-10-20 00:10:47 +02:00
Kaloyan Raev 5f984e2826 Fix undefined index error (#96) 2016-10-19 15:22:08 +02:00
Felix Becker 44445e3af4 Remove old definition/references after reparse (#88) 2016-10-19 13:33:43 +02:00
Felix Becker 7668a0c695 Catch parse error in indexing (#83) 2016-10-19 12:41:53 +02:00
Felix Becker 4db7ffd88c Hover (#50)
* Add hover support

* Use context in DocBlockParser

* Improve DocBlockParser error handling

* Improve hover output

* Add more tests
2016-10-19 12:31:32 +02:00
Felix Becker 2e03aa32f3 Fix class constant tests 2016-10-19 12:26:22 +02:00
Felix Becker 6b6ec8c105 Symbol test refactor (#92)
* Don't use json_decode in symbol tests

* Remove custom setUp()

* Use getDefinitionLocation()

* TextDocumentTestCase -> ServerTestCase

* Refactor Workspace\SymbolTest
2016-10-18 23:09:51 +02:00
Felix Becker cdcfaf7849 Refactor Definition\GlobalFallbackTest 2016-10-18 15:18:50 +02:00
Felix Becker 691a0bddfe Refactor tests for easier changes to fixtures (#87) 2016-10-18 10:48:16 +02:00
Michal Niewrzal cba4357856 Fix file name for CompletionItemKind (#85) 2016-10-17 10:17:18 +02:00
Felix Becker 3290ec31b2 Cache vendor dir on Travis 2016-10-14 09:08:40 +02:00
Felix Becker 1e6917ef55 Add size limit of 0.5MB for indexing (#80) 2016-10-14 09:06:56 +02:00
Felix Becker 2980941fd1 Use SymbolKind::FIELD for class fields (#78) 2016-10-14 09:02:42 +02:00
Felix Becker c479969758 Add support for definition of static class access (#72)
Getting the definition of TestClass in
TestClass::staticTestMethod();
echo TestClass::$staticTestProperty;
echo TestClass::TEST_CLASS_CONST;
2016-10-12 12:40:13 +02:00
Felix Becker 6fe01183b0 References (#52)
* Adds support for textDocument/references
* Adds tests for global definitions and global fallback
2016-10-12 01:45:15 +02:00
Felix Becker 66b5176a43 Allow %-encoded colon after drive letter in URI 2016-10-12 00:53:21 +02:00
Michal Niewrzal f81d03948b Update README with --memory-limit param (#70) 2016-10-11 21:14:49 +02:00
Michal Niewrzal 8f7f975408 Add command line parameter for memory limit (#68) 2016-10-11 16:50:55 +02:00
Michal Niewrzal c667f83371 Remove unused use statements (#67) 2016-10-11 16:23:09 +02:00
Felix Becker 23b127a986 Add Symfony ErrorHandler (#58) 2016-10-11 14:50:10 +02:00
Felix Becker 15e004fb9b Only hold AST for open files in memory (#63)
* Only hold content for open files in memory

* Add test for didClose

* Remove invalid URI formatting test

* Don't keep AST in memory

* Fix symbol search crash

* Change Project map to FQN => URI

Removes PhpDocument::load(), isLoaded(), unload()

* Add docblocks

* Rename some functions

* Extend documentation

* Correct docblock
2016-10-11 14:42:56 +02:00
Kaloyan Raev d41cde2039 Return empty array instead of null for empty definitions result (#64) 2016-10-11 10:26:46 +02:00
Kaloyan Raev 1f808c59e1 Fixes #59: Handle correctly negative endLine in PHP Parser errors (#62)
* Fixes #59: Handle correctly negative endLine in PHP Parser errors

* Clearer $startLine calculation

* Add missing test file

* Better calculation of endLine

* Remove trailing spaces
2016-10-11 10:15:20 +02:00
Michal Niewrzal e75c1592fc Use PHP_CodeSniffer as a formatter (#35)
Also adds uriTopath util function
2016-10-10 15:06:02 +02:00
Felix Becker 18ac760bc6 Set process title 2016-10-10 12:59:07 +02:00
Felix Becker 03e4e34a4e Don't %-decode the document URI 2016-10-09 19:09:28 +02:00