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
548120314d
Revert "Update CodeSniffer"
...
This reverts commit 663ccd5f23
.
2017-06-16 20:39:32 +02:00
Felix Becker
a772d9a2d7
Remove content ( #413 )
2017-06-16 20:31:29 +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
663ccd5f23
Update CodeSniffer
2017-06-15 17:11:57 +02:00
Felix Becker
4a98afe540
Fix docblock union types
2017-06-15 17:03:25 +02:00
Rob Lourens
3b633369a7
Fix error getting completions for 'new static' type ( #405 )
2017-06-15 12:44:03 +02:00
Nicholas Narsing
8d1732ed02
Exclude directory paths from file system search ( #401 )
...
* Exclude directories from file system search
Directories can also match the glob search pattern if their names end in ".php", which will cause a read error later since the ContentRetriever implementers are expecting files. As far as I know, the only way to fix this is to do an additional check to ensure the URI is not of a directory.
This resolves #306 .
2017-06-11 23:24:17 +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
Jens Hausdorf
4c1d7bd1bc
Add true, false, null to keywords ( #396 )
2017-06-10 18:47:19 +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
Jens Hausdorf
42d0c7b714
Improve handling of abstract classes ( #391 )
2017-06-09 22:12:32 +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
97d1579f37
Update PHPParser dependency ( #345 )
2017-04-09 18:23:46 +02:00
Sara Itani
f50df5cdaf
Enforce memory limit in phpunit.xml ( #320 )
...
This will help highlight memory regressions, make it easier for newcomers to get started with the codebase w/o editing php.ini defaults (128M), and also keep things consistent between local and travis runs.
2017-04-02 14:08:45 +02:00
Talv
14a6d65832
Fix missing '()' for function definition ( #340 )
2017-04-02 00:30:10 +02:00
Jens Hausdorf
4d0a0a2a10
show anything from a doc comment block ( #315 )
2017-03-19 12:15:39 +01:00
Harings Rob
546660f957
Update README.md ( #329 )
...
Updating the used by to no longer link to the deprecated repository.
2017-03-08 16:19:56 +01:00
Jürgen Steitz
f4f106766f
Change didChangeConfiguration doc to protocol wording
2017-03-04 17:26:23 +01:00
Jürgen Steitz
23a40f069b
Let didChangeConfiguration decide what options are interesting for the indexer
2017-03-04 13:02:16 +01:00
Jürgen Steitz
a06057b7a3
Fix phpcs warnings/errors
2017-03-04 12:59:22 +01:00
Jürgen Steitz
5308e7a6bc
Add new tests and update old ones
2017-03-04 12:55:46 +01:00
Jürgen Steitz
c4568bfc34
Accept different types/formats from clients
...
Currently only the default Options type and the vscode format are accepted.
2017-03-04 12:32:10 +01:00
Jürgen Steitz
ca225ff6a6
Remove emitting wipe events
2017-03-04 12:30:18 +01:00
Jürgen Steitz
1f90b4e393
Update options one by one to update all instance
2017-03-04 09:25:09 +01:00
Jürgen Steitz
1e73d08033
Improve gettting changed options
2017-03-04 09:03:24 +01:00
Jürgen Steitz
707c97f0ae
Merge branch 'master' of github.com:felixfbecker/php-language-server into feature/allow-configurable-file-extension-for-indexing
2017-03-02 23:44:37 +01:00
Jürgen Steitz
5b1b6bfabe
Add tests
2017-03-02 23:12:19 +01:00
Jürgen Steitz
940eb9787d
Pass options and indexer to workspace
2017-03-02 23:11:38 +01:00
Jürgen Steitz
44a942e714
Implement didChangeConfiguration event
2017-03-02 23:11:24 +01:00
Jürgen Steitz
58c82e6dc9
Add list of valid indexer options
2017-03-02 23:11:14 +01:00
Sara Itani
7f8eccb5ae
Fix formatting breakage (option 2) ( #324 )
...
PHP_CodeSniffer 3.0 RC4 introduces a breaking change that removes PHPCS from the composer autoloader. This fix addresses the issue by locking to v3.0 RC3.
2017-03-02 10:07:47 +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
Jürgen Steitz
1e319c7215
Wipe index when on configuration change
2017-02-24 23:37:02 +01:00
Matthew Brown
56bd465bf8
DefinitionResolver fixes ( #307 )
...
* Fix class references
* Fix return types
2017-02-20 10:28:49 +01:00
Jürgen Steitz
9067b4462f
Fix wrong classname for options test
2017-02-18 20:33:03 +01:00
Jürgen Steitz
b9d0d1bfa7
Add missing namespace in OptionsTest
2017-02-18 20:27:35 +01:00
Jürgen Steitz
d2e5048ec8
Update testIndexingMultipleFileTypes
2017-02-18 20:06:24 +01:00
Jürgen Steitz
3c33e7f466
Initialize options with default values when not provided by client
2017-02-18 20:05:21 +01:00
Jürgen Steitz
39cfbda77b
Add test for fileTypes option
2017-02-18 19:30:56 +01:00
Jürgen Steitz
94336941bd
Let JsonMapper intialize the options
...
To sanitize the file type option, we provide a setter method for the property that will be called by the JsonMapper.
2017-02-18 19:30:34 +01:00
Jürgen Steitz
f7175bc195
Filter invalid file types and use default list as fallback
2017-02-18 10:38:55 +01:00
Jürgen Steitz
7dc44776f7
Fix wrong phpDoc type
2017-02-18 09:37:50 +01:00
Jürgen Steitz
5f096c4bf7
Add test for indexing multiple file types
2017-02-18 01:38:35 +01:00