Repository navigation
Project relative path in Open Declaration popup where applicable - #623
Conversation
25a162c to
8858abe
Compare
|
Wouldn't it be better to make it relative to current resource? |
I like that idea, since it might make the path even shorter (which is good I think), but on the other hand I am worried about the case where the popup shows multiple resources that are in a different area of the project, so that the path would show up like |
|
So maybe showing resource-relative path for siblings and their children; and maybe even single parent (only one |
|
Maybe it makes even sense to show the name of the file as a first element of the path, then a visual separator (e.g. My assumption is that the file name is probably the most important part to visualize here, so showing this front and center might make sense, I think. |
|
I wouldn't want to pass the document URI to calculate the path relative to the currently opened file path... It is highly likely that file opened in the editor belongs to the workspace. Therefore showing (locationType) - (file name) - (workspace relative file path) should be okay. Don't think project relative path would be too long. VSCode seems to show workspace relative paths as well. If declaration file is not in the workspace then full absolute file path is okay to show i think... we could in this case show the file name in the middle as well... |
8858abe to
e9cb43f
Compare
e9cb43f to
6882be5
Compare
mickaelistria
left a comment
There was a problem hiding this comment.
I think the current proposal is good enough to be merged.
No description provided.