You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a Zend\Diactoros\ServerRequest class available somewhere in vendor folder
Typed:
<?phpnamespacezzz;
useZend\Diactoros\ServerRequestasSomeRequest;
$q = new SomeReq
Pressed Ctrl+Space
Observed:
'No suggestions'
In developer console there is suggestion returned, but language server suggests original short class name (ServerRequest in this case):
[Extension Host] Content-Type: application/vscode-jsonrpc; charset=utf8
Content-Length: 878
{"result":{"isIncomplete":true,"items":[{"label":"ServerRequest","kind":7,"detail":"Zend\\Diactoros","documentation":"Server-side HTTP request\n\nExtends the Request definition to add methods for accessing incoming data,\nspecifically server parameters, cookies, matched path parameters, query\nstring arguments, body parameters, and upload file information.\n\n\"Attributes\" are discovered via decomposing the request (and usually\nspecifically the URI path), and typically will be injected by the application.\n\nRequests are considered immutable; all methods that might change state are\nimplemented such that they retain the internal state of the current\nmessage and return a new instance that contains the changed state.","sortText":null,"filterText":null,"insertText":null,"textEdit":null,"additionalTextEdits":null,"command":null,"data":null}]},"id":94,"jsonrpc":"2.0"}
I suspect either vscode-side extension or vscode itself filters this suggestion out because it doesn't match what has been typed.
Couldn't be local alias returned instead?
The text was updated successfully, but these errors were encountered:
It does. Menu shows original class name, selecting suggestion inserts alias. However, if original class name doesn't fuzzy-match the typed text, suggestions are filtered, and there's nothing to select from:
Zend\Diactoros\ServerRequest
class available somewhere invendor
folderCtrl+Space
ServerRequest
in this case):I suspect either vscode-side extension or vscode itself filters this suggestion out because it doesn't match what has been typed.
Couldn't be local alias returned instead?
The text was updated successfully, but these errors were encountered: