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
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
Michal Niewrzal
50490d51ea
Fix formatting makes LS non-responsive ( #153 )
2016-11-18 14:25:05 +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
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
Felix Becker
47472252a7
Encode spaces in paths to %20 instead of + ( #140 )
2016-11-07 10:24:49 +01:00
Felix Becker
04ef6c8adf
Handle Client responses ( #128 )
2016-10-31 11:47:21 +01: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
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