1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 01:37:23 +01:00
psalm/src/Psalm/Internal
Matthijs Kooijman 3335b26cb4
Fixes to LSP protocol (#4143)
* Fix missing parameter in LSP textDocument.didChange

This parameter was accepted, but not documented. Since the JSON-RPC
Dispatcher looks at the comments for type information, it would fail
to find info and produce:

    PHP Notice: Undefined offset: 1 in vendor/felixfbecker/advanced-json-rpc/lib/Dispatcher.php on line 141

Combined with issue #4142, this ended up violating the protocol.

* Ignore out-of-project files in textDocument.completion

Other methods, such as didOpen and didChange already checked for this,
but completion did not. This would lead to funny behaviour, where
triggering completion would cause the file to be analyzed, but only
using the on-disk state. And any changes to the file would never be
analyzed.

This ignores out-of-project files for completion, too.
2020-09-06 19:31:49 -04:00
..
Analyzer Prevent variables named "haystack" from receiving literal strings 2020-09-05 00:35:48 -04:00
Codebase Prevent variables named "haystack" from receiving literal strings 2020-09-05 00:35:48 -04:00
Diff add native return types (#4116) 2020-09-04 16:26:33 -04:00
ExecutionEnvironment add native return types (#4116) 2020-09-04 16:26:33 -04:00
FileManipulation add native return types (#4116) 2020-09-04 16:26:33 -04:00
Fork add native return types (#4116) 2020-09-04 16:26:33 -04:00
Json add native return types (#4116) 2020-09-04 16:26:33 -04:00
LanguageServer Fixes to LSP protocol (#4143) 2020-09-06 19:31:49 -04:00
PhpTraverser
PhpVisitor Prevent variables named "haystack" from receiving literal strings 2020-09-05 00:35:48 -04:00
PluginManager add native return types (#4116) 2020-09-04 16:26:33 -04:00
Provider add native return types (#4116) 2020-09-04 16:26:33 -04:00
Scanner add native return types (#4116) 2020-09-04 16:26:33 -04:00
Scope
Stubs Fix type 2020-09-04 18:35:19 -04:00
Taint add native return types (#4116) 2020-09-04 16:26:33 -04:00
Type add native return types (#4116) 2020-09-04 16:26:33 -04:00
TypeVisitor add native return types (#4116) 2020-09-04 16:26:33 -04:00
CallMap_71_delta.php
CallMap_72_delta.php
CallMap_73_delta.php
CallMap_74_delta.php update proc_open() types for PHP 7.4 (#3333) 2020-05-10 21:11:27 -04:00
CallMap.php Set up taint analysis for pgsql functions (#4021) 2020-08-19 10:41:02 -04:00
Clause.php add native return types (#4116) 2020-09-04 16:26:33 -04:00
exception_handler.php
IncludeCollector.php Collect and scan files included by the autoloaders (#3183) 2020-07-11 17:17:22 -04:00
InternalTaintSinkMap.php Set up taint analysis for pgsql functions (#4021) 2020-08-19 10:41:02 -04:00
MethodIdentifier.php add native return types (#4116) 2020-09-04 16:26:33 -04:00
PropertyMap.php Fix Psalm errors 2020-08-30 16:30:43 -04:00
ReferenceConstraint.php add native return types (#4116) 2020-09-04 16:26:33 -04:00
RuntimeCaches.php Fix #4036 - add immutable annotations automatically too 2020-08-24 19:29:00 -04:00