This extension saves files with root privileges on Linux or macOS environments connected with Remote - SSH
,
is an easy solution to FileSystemProvider: no way of handling permissions issues #48659.
Select Save as Root
in the command palette (F1 or Ctrl+Shift+P or Cmd+Shift+P).
If you find a bug or have a suggestion, feel free to submit an issue/PR to my repository.