Bug 442217 - Edit a file in a remote directory with VSCode
Summary: Edit a file in a remote directory with VSCode
Status: REPORTED
Alias: None
Product: krusader
Classification: Applications
Component: net-connection (show other bugs)
Version: 2.7.2
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-09 10:37 UTC by Samuele Masetto
Modified: 2021-10-02 17:17 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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