-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Feature Reqeust: Also show line numbers in reference view #64521
Comments
(Experimental duplicate detection) |
I feel this is crucial. I write and read a lot of code. |
+1 to being baffled by this decision, not having the line numbers adds a ton of completely unnecessary friction when exploring code. |
Please consider reopening this. It is an absolutely crucial functionality and the information is already there, since you can jump to the position when you click on it. So it's just about adding an additional label to display the information beforehand. |
I second this. In my daily work, I simply swap between VSCode and Visual
Studio, because VSCode lacks this.
…On Fri, 14 Apr 2023 at 09:46, nittdeniz ***@***.***> wrote:
Please consider reopening this. It is an absolutely crucial functionality
and the information is already there, since you can jump to the position
when you click on it. So it's just about adding an additional label to
display the information beforehand.
—
Reply to this email directly, view it on GitHub
<#64521 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVBASLNYUL2PHJKOC7B7F3XBD6GTANCNFSM4GI2AXTQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I am astounded that the ReferenceItem.asCopyText() method includes the line number references, yet there is an absolute refusal to surface that data in the typical UI where it will be most useful! Seriously, try it: do Show All References (Shift + Alt + F12), context-click the tree, choose "Copy All", then paste into your favorite editor! I patched up my nightly to show the location--since it is significantly eases the pain--and I'll keep doing so until somebody incorporates it (I am not yet comfortable with contributing to this project, or I likely would try myself.) In the nightly, file resources/app/extensions/references-view/dist/extension.js is the target; around column 13070, replace:
with
then restart the program. This enhancement will unfortunately be lost on the next update, but this will demonstrate the feature and allow personal evaluation of whether it causes the text to overflow the panel too much for your own use. (If it does, play around with the preceding call to getPreviewChunks; give it two more parameters: 15 and !0). This change corresponds (directly) to vscode/extensions/references-view/src/references/model.ts lines 290-293. Seems like a trivial thing to implement for real; my personal concern is that I probably have not followed the rules about "how" to build the string (am I supposed to use location from vscode.LocationLink, as it seems search-result does?), and I am not currently available to learn the approved method. But, maybe I can get somebody else off the ground with this... Variable
|
i'm surprised this feature is not there for references like it is the search results on the UI. |
@jrieken Please see @LordRegentTB's comment. It looks like a trivial change, and it would eliminate a needless pain point. Respectfully, I don't see how the |
It is really annoying. As it is, I switch to visual studio when I have to do refactors of this kind. I question the wisdom of deliberately hiding relevant context, When I do a search like this, my use case and intention is "Please show me WHERE THIS IS USED". This is connected to a related misguided design intention for this feature: (To work around it, I (for VSCode's sake - sigh!) now write my code like this: model.MatchedFunctionName(project) |
Please reopen or at least provide an explanation of why this feature will not be implemented. "Out of scope" of what? Isn't the scope of VS Code to be a useful code editor? Is there a reason that this feature would not be useful? If it would be useful, is there an argument that it is too costly to maintain relative to its benefit? An answer to these questions would help the open source community understand this decision not to support this requested feature, thank you. |
Closing such a small and basic element -requested with plain and self evident arguments-, without any rationale. This is how fake open source works. This is how MS deals with issues on its software now: "we accept pull requests" and "out of scope" aka "do your own extension". |
To be fair, it leaves one usecase open for their flagship product Visual
Studio, which I must switch to, whenever I need to do this.. :-) :-(
…On Tue, 23 Apr 2024 at 01:13, Novack ***@***.***> wrote:
Closing such a small and basic element -requested with plain and self
evident arguments-, without any rationale. This is how fake open source
works. This is how MS deals with software now: "we accept pull requests"
and "out of scope" aka "do your own extension".
—
Reply to this email directly, view it on GitHub
<#64521 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVBASND4NTECBMEVXOLRB3Y6WKTNAVCNFSM4GI2AXT2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBXGEYTANBRGQZQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Can this be reopened? It doesn't make any sense that this feature is out of scope. The Search view even has it. |
Thank you @LordRegentTB for the tip on the workaround! Works great (although now it appears to be around column 19597 in the current version of resources/app/extensions/references-view/dist/extension.js). @jrieken , please reopen this issue. This is a critical functionality as many others have mentioned - I'm surprised this didn't come up during initial implementation of the "find all references" feature. Seeing a huge list of references without line numbers reduces the usefulness of the feature a lot. Sure I can click each result to jump to it to see where it is but with the line numbers present, I have a general idea of where each one is, which means I can probably find the reference I'm looking for in one or two clicks instead of having to go down the entire list to check every single one. The more references a symbol has, the more valuable the line number feature would be. Combine that with the fact of how simple it seemingly is to implement (see @LordRegentTB post) and this should be a no-brainer. It should cost minimal time to implement but would provide great value to many users in return. Seems like an easy win to me. As a side note/related request, the same functionality in the "peek all references" pane would be great to have as well. |
Also Show line numbers like
https://github.com/Microsoft/vscode-docs/blob/vnext/release-notes/v1_29.md#show-line-numbers-in-search
The text was updated successfully, but these errors were encountered: