-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
remote filesystems support #203
Conversation
Hi @marcellourbani , First of all, sorry for taking so long to answer you. I’m a bit busy right now and not able to take the proper attention to my projects. It would take at least another week before coming back. I don’t use remote file systems, so I didn’t missed that. If I remember correctly, it’s mostly a Linux/MacOS feature, so I’m not sure how to test that in Windows (the only OS I have available). Looking at the PR, at first, I see no big issue. But I would like to test that before merging. I’ll try to find a way to test 👍 . I have one question about the PR: what about backward compatibility? I mean, does the new model correctly loads the saved bookmarks (previous session)? Thanks |
Hi Alessandro, Sadly mine is only for SAP systems, but there are others which use FTP servers, like this which you can try with these settings to access files on a public server (read only I think but that's good enough): "remotefs.remote": {
"local": {
"scheme": "sftp",
"host": "test.rebex.net",
"port": 22,
"username": "demo",
"password": "password"
}
} I've been using this regularly for a while, and it's generally working, but once in a while I notice bookmark disappearing and didn't find out why yet. Might be linked to file access issues: remote files might be temporarly unavailable. Or might be me playing fast and loose with workspaces (I mostly work as extension developer, so I continually start with a new one) |
Alessandro, I created issue #207 for that |
@alefragnani
I guess you mean backwards compatibility. Basically the only significant changes are replacing code like: if (!fs.existsSync(this.path)) {
resolve(undefined);
return;
} with stuff like: if ( (this.scheme === "file" || !this.scheme) && !fs.existsSync(this.path)) {
resolve(undefined);
return;
} ... which basically removes the fs check for remote files (if the file is on a ftp server fs.existsSync won't work) Just let me know if you plan to merge this or should just maintain my fork (starting with fixing #118 :) ) |
Sorry for taking so long to answer you too. I'm recovering from a surgery, and were forced to take a break 😄 . The backward compatibility is exactly what you guess. Thanks for confirming this. I would like to return to this PR next week, and release a new version right after that. Thank you |
Ok great thanks |
Hi @marcellourbani , In the recent releases, the VSCode team released newer APIs specially designed to work with remote scenarios, and based in what I could see in documentation and samples, it will probably fit with your scenario too. They released an internal I hope that, combining your PR with the newest APIs, would make the update easier 😉 Ref #230 Thank you! |
Hi @alefragnani Marcello |
@alefragnani I just tested the latest version, still doesn't work with remote filesystems. PS: I will probably end up publishing a fork so I don't have to reinstall manually at every sync. Don't care about monetising or taking credit |
Yes @marcellourbani , the latest update still doesn’t have this, sorry. It was originally planned, but I had a few issues while testing some scenarios, and decided to hold a bit. I would like to resume the work next week, and release an update sometime in April.
What do you mean about that? if you use your own |
I use a settings sync extension. Every time I sync them I have to
reinstall. Don't do it that often, but is a bit annoying
…On Tue, Mar 31, 2020 at 12:05 AM Alessandro Fragnani < ***@***.***> wrote:
Yes @marcellourbani <https://github.com/marcellourbani> , the latest
update still doesn’t have this, sorry. It was originally planned, but I had
a few issues while testing some scenarios, and decided to hold a bit. I
would like to resume the work next week, and release an update sometime in
April.
have to reinstall manually at every sync
What do you mean about that? if you use your own VSIX file, it shouldn’t
show updates on VSCode.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#203 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASW6HJTRQC5DLQ4DIMBAQLRKEQUJANCNFSM4HEDDMPA>
.
|
Do you about |
No such setting, but looks like they added it to the insiders release,
which has its own sync.
Will just wit a while and switch to that
…On Tue, Mar 31, 2020 at 1:54 PM Alessandro Fragnani < ***@***.***> wrote:
Do you about ignoreExtensions setting in *Settings Sync*? It says you can
which extensions it should ignore while syncing. (I don’t use Settings
Sync, so I’m not entirely sure how it works and if there are any
limitations)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#203 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASW6HIFPS4PIPNVYOZ5MYDRKHRXNANCNFSM4HEDDMPA>
.
|
No, this setting is from Settings Sync extension (not VSCode Insiders 😄 https://github.com/shanalikhan/code-settings-sync#global-settings |
It's both, but they go in different files :)
[image: image.png]
[image: image.png]
Anyway, problem solved, thanks.
Still think this would deserve to be merged, but no rush
…On Tue, Mar 31, 2020 at 5:22 PM Alessandro Fragnani < ***@***.***> wrote:
No, this setting *is* from Settings Sync extension (not VSCode Insiders 😄
https://github.com/shanalikhan/code-settings-sync#global-settings
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#203 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASW6HIJ74CTRZYZHVM6DK3RKIKF7ANCNFSM4HEDDMPA>
.
|
That's great to see it worked! And yes, it should, and will, be merged. Thanks 👍 |
Hi @marcellourbani , The Remote Support should be finally released, this weekend! And I hope it will work for you... I didn't use your PR as is, but combined with other ideas I found/discovered while testing some scenarios. Instead of adding The only remote system I used was Beforehand, you could install/test my other Numbered Bookmarks extension, which was updated yesterday with the same feature. If it works for you, the Bookmarks extension should work as well.
Thanks for your contribution, and patience |
I can confirm, numbered bookmarks works fine for my use case |
That's great to hear! Stay tuned for the updated release of the Bookmarks extension this weekend 😬 Thank you |
Hi Alessandro,
I noticed this extension doesn't work work for remote filesystems.
Since I do like it and mostly work with remotes, I quickly added them.
Worked on 9.30 as the core repo is not currently public, and didn't worry too much about cleanup: I got my deliverable, I'm happy for now.
If you're interested I could port it with more attention to quality to the official release once you shared it
Best regards
Marcello Urbani