Declspeck
d6b4e79491
feat(completion): complete for used namespaces
2018-02-09 22:49:42 +02:00
Declspeck
e589f9ee12
refactor(completion): make completion of global symbols use Index more efficiently
2018-02-03 23:10:13 +02:00
Declspeck
86179489aa
Merge remote-tracking branch 'origin/master' into autocomplet-speedup
2018-02-03 19:07:17 +02:00
Phil Nelson
6894d85aaf
fix(DefinitionResolver): resolve self correctly for docblock @return self ( #576 )
2018-01-09 01:38:18 -08:00
Phil Nelson
425b2390b5
fix(DefinitionResolver): fix crash on unknown foreach type ( #562 )
...
Fix when unknown type is found in foreach expression
2017-12-24 01:52:49 -08:00
Phil Nelson
63da051e72
fix(DefinitionResolver): fix methods with self return type ( #550 )
2017-12-22 18:02:37 -08:00
Phil Nelson
9eea26df71
feat: foreach completion ( #551 )
2017-12-17 17:55:12 -08:00
phil-nelson
a40cf731f7
feat: Signature help ( #547 )
...
closes #18
2017-12-09 21:10:43 -08:00
Maarten Staa
9b1fafae58
fix(diagnostics): update checking of $this usage to only error in static methods ( #545 )
2017-12-03 13:42:01 -08:00
Felix Becker
91ca99a867
Revert "differenciate member and non member definitions"
...
This reverts commit 48bbbb5d14
.
2017-11-23 01:20:42 -08:00
Felix Becker
67dd9800f6
Merge branch 'master' into feature/autocomplete-speedup
2017-11-19 15:43:47 -08:00
Nicolas MURE
48bbbb5d14
differenciate member and non member definitions
2017-11-19 19:26:13 +01:00
Maarten Staa
4f672c24d8
feat(diagnostics): report error when $this is used in a static method or outside a class method ( #528 )
2017-11-18 17:41:37 -08:00
Felix Becker
3bda390c3d
Merge branch 'master' into feature/autocomplete-speedup
2017-11-18 17:00:17 -08:00
Felix Becker
80ef8ff503
fix(indexing): properly resolve self, static and parent keywords ( #532 )
...
Previously we would dump static, self and parent as literal FQNs into the index.
2017-11-18 16:59:57 -08:00
Felix Becker
b1a1875070
fix(completion): don't suggest <?php on > characer ( #527 )
...
closes #372
2017-11-15 22:38:01 -08:00
Felix Becker
7511e255ff
Merge branch 'master' into feature/autocomplete-speedup
2017-11-15 15:44:25 -08:00
Felix Becker
607cd8158d
test(index): add IndexTest
2017-11-15 13:08:15 -08:00
Nicolas MURE
b7c712842f
update tests
2017-11-13 20:18:11 +01:00
Felix Becker
f00fd1b62c
fix(formatting): drop PHP CodeSniffer ( #504 )
...
At this point there are countless issues about the formatting done by CodeSniffer. It plain out doesn't work in many cases, overrides format options that are contributed by other extensions in VS Code and does not reuse any of our AST parsing. For that reason, I am starting to think there is no reason to keep it in here until we have proper pretty-printing support from https://github.com/Microsoft/tolerant-php-parser that actually reuses our ASTs and can work while editing. For people who want to use CodeSniffer to format their code, there could be a standalone CodeSniffer language server (like there is a TSLint language server and ESLint language server). As said, we don't reuse our state anyway.
BREAKING CHANGE: removes formatting support
closes #501
closes #474
closes #473
closes #468
closes #450
closes #445
closes #443
closes #423
closes #343
closes #296
closes #293
closes #499
closes #471
2017-11-04 23:57:51 -07:00
Felix Becker
744062c14e
ci: add AppVeyor to test Windows
...
closes #40
2017-10-30 03:09:06 -07:00
Felix Becker
7ae6452d1a
refactor(index): rename isGlobal to isMember ( #511 )
...
isGlobal was confusing because a non-member can be considered global vs namespaced
2017-10-29 17:45:06 -07:00
Felix Becker
1240f25e01
Update parser
2017-10-19 14:45:36 -07:00
Ivan Bozhanov
35f33c8c91
Fluent interfaces support ( #421 )
2017-07-07 13:18:19 +02:00
Ivan Bozhanov
dae3f2576c
Add $this completion ( #419 )
2017-06-19 12:23:43 +02:00
Rob Lourens
f97105740d
Bump tolerant-php-parser ( #415 )
...
* Bump tolerant-php-parser
* Update test for new parser static support
2017-06-17 10:53:08 +02:00
Felix Becker
0e3727a8d6
Improve CompletionProvider ( #412 )
...
- Better performance
- More documentation
- Add field to Definition for global namespace fallback
Fixes #380
2017-06-16 20:31:13 +02:00
Felix Becker
fe7e9d5800
Rename $stmts to $sourceFileNode everywhere
...
The root node is now a SourceFileNode, not an array
2017-06-10 21:36:16 +02:00
Stephan Unverwerth
cc3f0da21a
Fix 'find references' for unused symbols ( #392 )
...
* Add tests for unused symbols
* Fix tests for unused symbols
2017-06-10 11:37:39 +02:00
Rob Lourens
f10680e441
Fix variable type from method return value, add tests ( #393 )
2017-06-10 11:10:15 +02:00
Rob Lourens
7b72b38fd9
Assert that references array is equal, not a subset, and update expected.json files ( #395 )
2017-06-10 10:55:41 +02:00
Sara Itani
7f427a1215
Adopt Microsoft/tolerant-php-parser ( #357 )
2017-06-09 20:25:30 +02:00
Stephan Unverwerth
08cf1a3fd7
Allow getting type from define() node ( #363 )
...
* Allow getting type from define() node
- fixes #364
* Add test case for DefinitionResolver
2017-04-24 11:11:40 +02:00
Jens Hausdorf
b1cc7bf6b0
Support constants with define() ( #347 )
2017-04-17 17:03:08 +02:00
Jens Hausdorf
de6aed608c
Show constructors and destructors with right symbol ( #346 )
2017-04-09 19:44:28 +02:00
Jens Hausdorf
4d0a0a2a10
show anything from a doc comment block ( #315 )
2017-03-19 12:15:39 +01:00
Sara Itani
0de7ba8335
Ensure diagnostics are cleared on file deletion ( #319 )
...
* Ensure diagnostics are cleared on file deletion
Previously, error diagnostics would not be cleared when a file was deleted while it was closed. This would result in lingering errors in the problems view that could only be cleared by reloading the language server. This fix addresses the issue by adding support for workspace/didChangeWatchedFiles and automatically clearing diagnostics for deleted files.
* add FileEvent constructor
2017-03-01 11:18:37 +01:00
Cameron Eagans
5d2ab8f369
Add test for #211 ( #270 )
2017-02-15 17:25:06 +01:00
Trevor Bortins
d5c54ac30f
Read vendor directory from project's composer.json, if set. ( #281 )
2017-02-07 23:20:12 +01:00
Felix Becker
bedd157636
Caching ( #260 )
2017-02-04 00:20:38 +01:00
Felix Becker
96aa998486
Make Index an EventEmitter ( #255 )
2017-01-25 01:38:11 +01:00
Ivan Bozhanov
43a91b0d09
Handle hover for $this ( #249 )
2017-01-19 15:47:11 +01:00
Felix Becker
106aa24b5d
Implement global references protocol extension ( #236 )
2017-01-10 17:08:52 -08:00
Felix Becker
2005518dfe
Support find-all-references for namespaces ( #221 )
2016-12-17 03:46:08 +01: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
0b61951a9c
Support hover for definitions
...
#201
2016-12-13 03:18:07 +01:00
Felix Becker
96ea8608d7
Support getting references from a reference
...
Closes #201
2016-12-13 02:53:01 +01:00
Felix Becker
d7fc9e0425
Index twice to collect dynamic references ( #206 )
2016-12-13 02:11:29 +01:00
Felix Becker
a7d77d844e
Add Index classes and stubs ( #214 )
2016-12-13 01:51:02 +01:00
Felix Becker
b9f9871156
Files finder ( #209 )
2016-12-08 02:33:48 +01:00