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
If you (a) think that this is good idea, and (b) ask me to come up with a PR ;-) I have two questions:
How can I get the ide configuration value from inside MakeMigration?
How can I convert the relative filename (coming from $this->getGeneratedMigrationFilename($migrationOutput);) to an absolute path? I think this comes down to: How can I get %kernel.project_dir% to prepend it?
But, you could certainly use this for make:migration - that would be great (i constantly go an open these files right after I create them). The service id is maker.file_link_formatter. We may still need to connect a few pieces, but hopefully this is enough :).
Oops, we have a general problem here! There are two "standards" on how to display links in a console:
Old-fashioned: Display this text verbatim: phpstorm://open?file=/.../src/Migrations/Version20211030130836.php, and then rely on the terminal's auto-detection to make it clickable. This is (as far as I know) supported by every terminal.
What I suggested (and what I've added to PHPStan) is (1). What makeLinkedPath creates is (2).
I don't know how the adoption of (2) will progress. But for Konsole (=default in KDE) it doesn't look too good: https://bugs.kde.org/show_bug.cgi?id=379294
And (frankly) I'm also not sure if it's a good idea at all...
Anyway. In order to get this to work for everybody, I see two ways:
I'm suggesting to change this line after
php bin/console make:migration
:to
... if Symfony's
ide
option is set: https://symfony.com/doc/current/reference/configuration/framework.html#ideThe line is generated at MakeMigration::generate().
If you (a) think that this is good idea, and (b) ask me to come up with a PR ;-) I have two questions:
ide
configuration value from insideMakeMigration
?$this->getGeneratedMigrationFilename($migrationOutput);
) to an absolute path? I think this comes down to: How can I get%kernel.project_dir%
to prepend it?I committed a similar feature to phpstan and Codeception.
And a related feature has already been added in #559 - but I'm not sure what it does exactly.
The text was updated successfully, but these errors were encountered: