-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Phpstorm Plugin Support] Remote Call #24218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just wondering.. cant you already achieve this with the |
I dont know what you mean. The Hyperlink must be specially crafted (see docs on the Remote Call plugin for more information) so the IDE (with enabled plugin) can intercept it. |
"Symfony turns file paths seen in variable dumps and exception messages" No words about the profiler. |
Dumps in profiler benefit the same feature. Twig bridge provides
IIUC you propose a new feature where for each twig template rendered, we'd somewhere render a link to it. Right? That's souds nice and can be done in the twig panel perhaps 👍 |
I mean, in the Profiler Template section you can see what templates were parsed (and the name of the template). I propose that these templates names also get a special crafted hyperlink onto them, so I can be lazy and click on that hyperlink to have my IDE open the file for me. I guess that can be easily forged with your |
See #24236 |
…es (ro0NL) This PR was squashed before being merged into the 3.4 branch (closes #24236). Discussion ---------- [WebProfilerBundle] Render file links for twig templates | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes/no | Fixed tickets | #24218 | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features-->  Also tweaked default code color a bit for yaml, twig and the like. Before  After  Commits ------- 860575a [WebProfilerBundle] Render file links for twig templates
I have found a bug with the proposed change from @ro0NL . It has been reported here #24236 (comment) |
@pquerner please open a new issue: comments on closed PR/issues can easily get lost. |
@nicolas-grekas I have created a new issue here #24355 |
…templates (ro0NL) This PR was squashed before being merged into the 3.4 branch (closes symfony#24236). Discussion ---------- [WebProfilerBundle] Render file links for twig templates | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes/no | Fixed tickets | symfony#24218 | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features-->  Also tweaked default code color a bit for yaml, twig and the like. Before  After  Commits ------- 860575a [WebProfilerBundle] Render file links for twig templates
Uh oh!
There was an error while loading. Please reload this page.
There is a PHPStorm plugin called "Remote call" [1] which can be used to open files in your IDE if you click on a special hyperlink. This could be used for example in the Symfony Profiler section, where you can check your templates used on your current page.
A hyperlink on that twig template can be used to open the file automatically in your IDE.
A popular Magento1 module [2] uses this plugin to help you to open the templates in your IDE faster.
There is also a bundle for this [3], but its outdated according to their composer.json.
[1] https://plugins.jetbrains.com/plugin/6027-remote-call
[2] https://github.com/AOEpeople/Aoe_TemplateHints
[3] https://github.com/darles/RemoteCallBundle
The text was updated successfully, but these errors were encountered: