Skip to content
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

output-format: add info about editorUrlTitle #8446

Merged
merged 3 commits into from Dec 16, 2022

Conversation

janedbal
Copy link
Contributor

@janedbal janedbal commented Dec 1, 2022

editorUrlTitle: '%%relFile%%:%%line%%'
```

--------------------
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the last paragraph should not be considered as 'available since 1.9.3', so I added this line.


<div class="text-xs inline-block border border-green-600 text-green-600 bg-green-100 rounded px-1 mb-4">Available in PHPStan 1.9.3</div>

You may also want to change the default title of the clickable link to contain line to be able to quickly copy-paste it to your IDE when used within an environment that is not clickable (like CI output). Here is how:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this sentence is pretty long and hard to read

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about this?

You may also want to change the default title of the clickable link. For example, CI output may contain [file]:[line] to allow you to quickly copy-paste it to your IDE.

@ThomasLandauer
Copy link
Contributor

Please see #8519 first, for a solution to resolve all editorUrl-related issues. That way, editorUrlTitle would change its meaning.

@ondrejmirtes ondrejmirtes merged commit c0086d9 into phpstan:1.9.x Dec 16, 2022
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants