opened 06:59PM - 24 Oct 24 UTC
0.kind: bug
### Describe the bug
When you want to save a file in VSCode at a location where… you need sudo, VSCode fails saving with a toast in which it offers you to try saving with sudo permission and opens the corresponding (Gnome) permission elevation dialogue.
With vscode-fhs, however, the post simply shows "Failed to save 'filename.fileending: User did not grant permission."
### Steps To Reproduce
Steps to reproduce the behavior:
1. Open file which needs sudo permission to save
2. Make a change
3. Ctrl+S
4. Click Retry as sudo
5. See `Failed to save 'configuration.nix': User did not grant permission.`
6. Retry button returns same toast
### Expected behavior
Clicking "Retry as Sudo" opens a dialogue requesting sudo credentials.
### Screenshots


### Additional context
The `vscode` package seems to do the right thing.
### Notify maintainers
@eadwu
@Synthetica9
@bobby285271
@JohnRTitor
### Metadata
```console
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.6.57, NixOS, 24.11 (Vicuna), 24.11pre695081.1997e4aa5143`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.24.9`
- channels(root): `"nixos"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
```
---
Add a :+1: [reaction] to [issues you find important].
[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
[issues you find important]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc