-
Notifications
You must be signed in to change notification settings - Fork 28.7k
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
resourceLabelFormatters support more variables like ${query.*} #68201
Comments
I would also really like to be able strip the leading |
@eamodio the formatters should be applied everywhere in the UX. If not we need to adopt it in the missing places. @bpasero for using the label service in the tabs tooltips. workspaceSuffix should be visible in the explorer title area for example. Do you see it there? |
@isidorn I would assume this possibly should work already because I end up calling |
It seems like you are doing the right thing |
🏆 |
The tooltip on the tabs has been fixed since I reported it -- thanks! As for the IMO stripping the leading Supporting more advance matching would be great. For example in GitLens (see the above screenshot) -- I pack the git ref into the authority of the Uri, which is challenging when the ref is a branch name (since branches can contain See the code here: So it would be wonderful if there was a variable syntax that could pull data out of the query string (and assume it is an object) -- e.g. That would allow me to get rid of the strange authority packing and hacks, and just use the querystring directly as below: "resourceLabelFormatters": [
{
"scheme": "gitlens",
"authority": "*",
"formatting": {
"label": "${path} (${qs.ref})",
"separator": "/"
}
}
], @isidorn Thoughts? |
@eamodio Thanks a lot for feedback, however I just came back from vacation and am catching up with a bunch of issues. Will be able to only get back to you next milestone probably. |
@eamodio ok I have processed your feedback. Due to that I will rename this issue and mark it as a feature request. Though this is not on our immediate plan I think it makes sense overall. |
@isidorn would a PR for this be accepted? |
@eamodio yes if it is not overly complex. |
Fixed via #71874 |
@isidorn What's to verify here? Is this new (soft) API? Did you settle on |
Yes this is kind of new soft proposed API. |
Ok, reopening then to change the name to |
@jrieken do you want me to send another PR? Or can I just push the changes to the same PR (even though its been merged)? |
I'd say, better a new one |
Incoming shortly... |
Adderessed via #78190 |
I've been playing with the new
resourceLabelFormatters
extension point and I'm not really sure I'm getting it fully.First, it doesn't seem like it applies everywhere in the UI -- for example, the tooltips on tabs don't seem to be affected.
Also what is
workspaceSuffix
used for? I can't seem to see any change when using it. Also is there any more formatting possible withlabel
or just the url tokens?Any help/clarification would be great -- thanks!
/cc @isidorn
The text was updated successfully, but these errors were encountered: