-
Notifications
You must be signed in to change notification settings - Fork 510
PSEdit not saving remote files #1040
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
Comments
Hi! vs code : 1.17 |
Hi, |
Here is the logic - it checks if the languageId is powershell. vscode-powershell/src/features/RemoteFiles.ts Lines 60 to 63 in aa86c7e
So the workaround is to set the language mode to PowerShell regardless of the extension of the remote file and then the remote save works. I have tested this and it worked for me. |
Thanks for looking into this Adam! I'll take that check out. |
This issue still exists if you use VSCode Powershell extension along with Powershell 7 for remote files. |
@daviwil - Could this issue be related to the following?
vscode-powershell/src/features/RemoteFiles.ts
Lines 11 to 24 in aa86c7e
When I remote into a server within the integrated terminal, run psedit the file appears in VSCode. However, when I make an edit and save the file the changes aren't getting saved back to the remote server. I have attached the verbose log output. https://github.com/PowerShell/vscode-powershell/files/1309888/vscode-powershell-psedit.zip
The text was updated successfully, but these errors were encountered: