Bug 442217

Summary: Edit a file in a remote directory with VSCode
Product: [Applications] krusader Reporter: Samuele Masetto <samuele.masetto>
Component: net-connectionAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: REPORTED ---    
Severity: minor CC: davide, krusader-bugs-null, toni.asensi
Priority: NOR    
Version First Reported In: 2.7.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Samuele Masetto 2021-09-09 10:37:04 UTC
Hello,
I'm using VSCode as external editor.
if I press F4 key to edit a file in a remote directory, the file is open in VSCode, but it is empty.
It works if instead I open it through the contextual menu.
Comment 1 Davide Gianforte 2021-09-22 06:11:06 UTC
VSCode does not supports KIOslaves directly (it should rely on GIO), if you edit a remote file, VSCode will receive a path like ftp://user@server/filename, if you look at the path in the empty file you'll see <cwd>/ftp:/user@server/filename because it treats it like a local path (file://). The directory <cwd> is the path the Krusader panel had before connecting the remote folder.

There are no plan to support an internal editor without KIO, a possible solution is to connect the remote folder with FUSE.
Comment 2 Toni Asensi Esteve 2021-10-02 17:17:53 UTC
Note: This is related to https://bugs.kde.org/show_bug.cgi?id=442216