ContextMenuHandler looks for the closest resolvable node#784
ContextMenuHandler looks for the closest resolvable node#784camilledejoye wants to merge 4 commits intophpactor:developfrom
Conversation
|
hmm, I can't reproduce the fix based on the ticket (invoking context menu in empty space), and there is a third argument to |
|
Will look into it tomorrow [EDIT] I wont have the time, but I indeed forgot a PR on the worse-reflection package to go along with it... |
95cf1a8 to
ec12949
Compare
|
Just made phpactor/worse-reflection#57 |
|
We could update this to use the suggested interesting offset finder. |
|
Yes, I may have talk about it here instead of in the worse-reflection package. |
|
Hi, I'm working on closing this feature. Edit: the PR link phpactor/code-transform-extension#1 |
3c74504 to
cf6894e
Compare
|
@ping composer.lock updated to take the new changes into account |
|
Seems to be an issue: |
|
My bad didn't checked the unit tests, so used to have a hook on git push... |
|
Have done a qucik manual test: In $loader = ConfigLoaderBuilder::create()
->enableJsonDeserializer('json')
->enableYamlDeserializer('yaml')
->addXdgCandidate('phpactor', 'phpactor.json', 'json')
->addXdgCandidate('phpactor', 'phpactor.yml', 'yaml')
->addCandidate($cwd . '/.phpactor.json', 'json')
->addCandidate($cwd . '/.phpactor.yml', 'yaml')
->loader();Invoking the context menu on any of the above methods gives the menu for the Can you reproduce? Seems to be the case for all methods calls. If so it's might be a bug in the "interesting offset finder" .... |
|
It's an issue with the offset finder, I tried to fix it this morning but failed, I created a failing test: https://github.com/phpactor/code-transform/pull/28/files. |
|
I fixed this case in code-transform, will test again tomorrow. |
|
Seems to be working on quick tries. |
|
Replacing with #825 |
Fixes #777
I guess it's more a feature than a bugfiix but whatever :)