-
Notifications
You must be signed in to change notification settings - Fork 12
Add context menu to copy path as Rascal source location from explorer view #692
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
Conversation
|
As this goes a bit against the VS Code UX guidelines to not "Show actions for every file without context" I would like to:
|
1463b77 to
40a1bcb
Compare
40a1bcb to
fa2345a
Compare
|
Updated, as per @DavyLandman his suggestions: |
|
@jurgenvinju what do you think of this feature? |
|
The groups are document here:
https://code.visualstudio.com/api/references/contribution-points#Sorting-of-groups
I determined the position 21 is the first position that places this item
directly beneath `Copy Relative Path` (which probably has index 20). I
think `Copy Path` has index 10, and they left some room in between. I don't
think we get many guarantees about this order otherwise, since other
extensions could contribute menu items here as well.
…On Thu, Aug 14, 2025 at 11:43 AM Davy Landman ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In rascal-vscode-extension/package.json
<#692 (comment)>
:
> @@ -67,6 +76,12 @@
"when": "view == rascalmpl-debugger-view && viewItem == 'canStartDebugging'",
"group": "inline"
}
+ ],
+ "explorer/context": [
+ {
+ "command": "rascalmpl.copySourceLocation",
+ "group": ***@***.***"
this looks very finicky, do we know the guarantees around this group name?
—
Reply to this email directly, view it on GitHub
<#692 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHW4A5ZRJB4XECLNT3A5P33NRK45AVCNFSM6AAAAACDCN2X4SVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTCMJZHA4DEMRRG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
|
Ah right, it's a pitty JSON doesn't allow for comments. |
|
|
Yes, but #283 is more complex, due to the different offsets/columns between VS Code and rascal. Let's pick that up at a later point. |
|
… view (#692) * Add context menu to copy loc from explorer. * Better name and location in context menu. * Hide copy-as-loc in command palette.




Closes #106