1
0
Fork 0
Commit Graph

166 Commits (cc8365d425bc1049222213ffe88c85823c1dea10)

Author SHA1 Message Date
Felix Becker cc8365d425 Handle case where FQN could not be resolved 2016-11-30 11:17:46 +01:00
Felix Becker 471d4703c5 Merge branch 'master' into completion 2016-11-30 01:01:56 +01:00
Felix Becker 03faea5911 And the call 2016-11-30 00:15:20 +01:00
Felix Becker c91a5738cf Remove unused method 2016-11-30 00:11:23 +01:00
Felix Becker 128f1be295 Update PHPCodeSniffer 2016-11-29 23:23:37 +01:00
Felix Becker 04a517c674 Always set isIncomplete to true 2016-11-29 22:16:57 +01:00
Felix Becker 5077b1a87a Add Dockerfile (#185)
* Add Dockerfile

* Add .dockerignore

* Publish to docker hub on every release
2016-11-29 21:08:54 +01:00
Felix Becker 48e0167060 Support to run as TCP server & fork a child process for every connection (#183) 2016-11-29 19:32:17 +01:00
Michal Niewrzal ea92b224cd Symbols throws error for empty php file (#187)
Closes #186
2016-11-29 13:10:02 +01:00
Felix Becker 38383fcaf0 Use CompletionList 2016-11-28 18:47:56 +01:00
Felix Becker 5f085a3d8a Support completion for namespaces 2016-11-24 23:36:45 +01:00
Felix Becker 6fb21817e4 Correct variable insertion 2016-11-24 13:26:22 +01:00
Felix Becker f6a7ce1a8b Completion for keywords and bug fixes 2016-11-24 12:27:55 +01:00
Michal Niewrzal e8ab8aa2b8 Make processId optional for initialization (#178) 2016-11-23 18:38:57 +01:00
Felix Becker 6adb3f48e1 Only insert backslash if not typed yet 2016-11-23 00:13:44 +01:00
Felix Becker e4e4e3f050 Correct file number in init test 2016-11-23 00:13:30 +01:00
Felix Becker c4323c66aa Add missing fixtures 2016-11-23 00:10:09 +01:00
Felix Becker e376ef1569 Fix testFullyQualifiedClass 2016-11-23 00:04:36 +01:00
Felix Becker 635e6b3a8d Add support for static access without prefix 2016-11-22 22:57:07 +01:00
Felix Becker 8f30819a17 Fix existing tests 2016-11-22 22:48:11 +01:00
Felix Becker d66cc763bc Properly filter completion on empty property 2016-11-22 21:27:56 +01:00
Felix Becker 51de0b5dfc Add tests for static access 2016-11-22 17:33:56 +01:00
Felix Becker 151dea6ad1 Make FQNs more distinct
* use -> for instance methods/properties
* use ::$ for static properties
2016-11-22 17:12:24 +01:00
Felix Becker 06636ded54 Improve completion
* classes
* variables with prefix filtering
2016-11-22 16:12:12 +01:00
Felix Becker e6a4103f97 Fix using @var tag for variables 2016-11-21 01:29:38 +01:00
Felix Becker 4365fac0b0 Use property and constant values 2016-11-20 23:58:22 +01:00
Felix Becker 49b526d7e1 Allow getTypeFromNode() to take Variable nodes 2016-11-20 23:33:00 +01:00
Felix Becker 59670af7bd Add support for variable suggestions
Refactor logic into CompletionProvider class
2016-11-20 19:56:30 +01:00
Felix Becker 5125fa748e Move completion fixtures into directory 2016-11-19 15:00:14 +01:00
Felix Becker 44d26ba1aa Add support for method/property completion 2016-11-19 13:05:06 +01:00
Felix Becker 429114ff97 Handle group use declarations in DocBlockParser (#166) 2016-11-19 13:04:13 +01:00
Felix Becker 5213940064 Don't encode spaces to + 2016-11-19 12:25:52 +01:00
Felix Becker 8f6ee8dd02 Handle null return from getClosestNode() 2016-11-19 12:03:43 +01:00
Felix Becker 00bc8537a6 Support compound types when resolving FQNs 2016-11-19 11:45:25 +01:00
Felix Becker fb84741d55 Add missing property 2016-11-19 06:37:07 +01:00
Felix Becker c2ae7cd022 FIx crashes when tag doesn't have a type 2016-11-19 06:36:57 +01:00
Felix Becker 33211c68ca Resolve expressions recursively (#155)
* Add Definition class
* Add recursive DefinitionResolver
* Cache hover
2016-11-18 15:22:24 +01:00
Felix Becker c19aedcef2 Document that vendor errors are ignored 2016-11-18 15:01:28 +01:00
Felix Becker e254e66878 Improve installation guide 2016-11-18 14:59:08 +01:00
Felix Becker 5a8d64c18c Note that XDebug impacts performance 2016-11-18 14:57:24 +01:00
Felix Becker 4b014154ac Document support for the files extension 2016-11-18 14:56:22 +01:00
Michal Niewrzal 50490d51ea Fix formatting makes LS non-responsive (#153) 2016-11-18 14:25:05 +01:00
Felix Becker 500ae5dc92 Use custom error handler instead of Symfony (#162) 2016-11-18 14:15:08 +01:00
Felix Becker 12df6a7dd6 Add size limit back (#161) 2016-11-18 13:24:26 +01:00
Felix Becker 32b01afa90 Index files serially again (#157) 2016-11-17 22:20:37 +01:00
Felix Becker 6056f39d01 Fix LanguageServerTest failure 2016-11-17 22:08:05 +01:00
Felix Becker 601c9ad997 Update PHPParser to 3.0.0beta2 (#151) 2016-11-16 16:58:32 +01:00
Felix Becker 642425dede Ignore errors from dependencies (#147) 2016-11-14 20:00:10 +01:00
Felix Becker 03bbf5f4ba Enable LS to operate without accessing the file system (#136)
This PR decouples the LS from direct file system access by implementing the proposals for workspace/files and textDocument/content under workspace/xfiles and textDocument/xcontent. The requests are only used when the client expressed support for them through ClientCapabilities, otherwise direct FS access is used.
This turns document content retrieval and recursive file search into async operations.
In turn, all server handlers can now operate async by returning a promise.
2016-11-14 10:25:44 +01:00
Felix Becker 25f300c157 Add test for indexing 2016-11-07 11:52:24 +01:00