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, Ctrl+Shift+P, or Cmd+Shift+P).
Alternatively, you can use Save as Specified User... command to save as a non-root user.
This extension also adds the New File as Root... option to the explorer's context menu when the window is connected to a remote folder.
If you find a bug or have a suggestion, feel free to open an issue or submit a pull request to the GitHub repository.

