1
0
Fork 0
Commit Graph

207 Commits (f4f106766f8fcf4bab1ce6be6a06888e232528ac)

Author SHA1 Message Date
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
Jürgen Steitz cdb5b56613 Add support to index multiple file extensions
Will take the options sent by the client.
Option: php.intellisense.fileTypes = [".php"]
2017-02-18 01:38:35 +01:00
Matthew Brown cbfd70d398 Abort traversal in NodeAtPositionFinder (#305) 2017-02-18 00:28:10 +01:00
Cameron Eagans 5d2ab8f369 Add test for #211 (#270) 2017-02-15 17:25:06 +01:00
Felix Becker 3856f4f46a Update PHPParser 2017-02-15 11:16:16 +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 571b26a0c3 Use php_uname() instead of PHP_OS (#283) 2017-02-06 16:42:45 +01:00
Felix Becker 3c11cde9fb Include packages-dev (#282) 2017-02-06 16:35:16 +01:00
Felix Becker 5100d89617 Make resolveExpressionNodeToType() handle null (#277) 2017-02-04 12:52:04 +01:00
rox b90ede7fb3 Neovim is using php language server (#272) 2017-02-04 12:04:19 +01:00
Felix Becker bedd157636 Caching (#260) 2017-02-04 00:20:38 +01:00
Cameron Eagans 34d3d2030d Automatically index stubs on composer install (#269) 2017-02-02 18:36:48 +01:00
Cameron Eagans 7fbd68a61a Depend on phpcs RC2 (#268) 2017-02-02 02:06:16 +01:00
Felix Becker d8823bc7dc Use JetBrains PHPStorm stubs from packagist (#264)
* Use JetBrains PHPStorm stubs from packagist

* Fix path
2017-01-30 11:55:13 +01:00
Felix Becker 47b5b6709c Restart without XDebug if enabled (#259) 2017-01-26 02:08:40 +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 d080c161a9 Don't crash if indexing fails 2017-01-13 12:06:58 -08:00
Felix Becker 106aa24b5d Implement global references protocol extension (#236) 2017-01-10 17:08:52 -08:00
Felix Becker 49245fd4d3 Allow overriding (#229)
* Add missing documentLoader property

* Make PhpDocumentLoader->contentRetriever public
2017-01-04 19:18:14 -08:00
Felix Becker 662143abad Fix wrong function call in DefinitionResolver 2016-12-24 16:35:20 +01:00
Kaloyan Raev de0dd32a67 Add used by Eclipse IDE (LSP4E-PHP) (#224) 2016-12-23 11:10:44 +01:00
Felix Becker b93d4f33cb Fix stubs location 2016-12-20 13:53:15 +01:00
Felix Becker 710d2a7ff7 Fix autoloading in ComposerScripts 2016-12-20 13:44:01 +01:00
Felix Becker 2005518dfe Support find-all-references for namespaces (#221) 2016-12-17 03:46:08 +01:00