-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Provide Support for WebDAV #3
Comments
That should be doable with the help of https://github.com/perry-mitchell/webdav-fs and some files sync. |
@manuth Can you try this version sync-settings-0.6.2.vsix.zip? (remove the Here my test settings:
All the options from https://github.com/perry-mitchell/webdav-client#client-configuration can be used. |
Wow, that was fast!
In spite of this error message, my WebDAV's certificate is valid: |
Not sure what is the issue... When using your url with my fake user, I get Here a new version sync-settings-0.6.2.vsix.zip which add the support for the Maybe try:
The agent's options are from https://nodejs.org/api/https.html#new-agentoptions or https://nodejs.org/api/tls.html#tlsconnectoptions-callback |
From the NextCloud's doc, the WebDAV url seems to be something like |
Yeah, that's correct - this is what my URL looks like. |
|
The url should include the path of directory where your want to sync the settings. |
It does so. I'll try the new version tomorrow. |
I've just reread my code to see I don't abusively delete files from the WebDAV. Well, right now, it's doesn't remove any files... just creates new ones. Way too basic, I need to improve that!
Before working with WebDAV, I will add a check to see if the directory is empty or if it contains the expected files/directories. If not, the extension won't do anything... edit: With the check, the url can be unified. Good night... 😴 |
Here the latest version: sync-settings-0.6.2.vsix.zip I've added a validation of the working directory. If it's empty, the extension create a file Tell me if it's working for you. I would then release it. |
Okay, this is different - I'm getting following error now:
No idea what it's complaining about my certificate for. |
@manuth Is there a way for me to test with your server? |
Sure - I created a temporary account. However - I'll have to delete said account once we're done with testing. |
Have you send it to daiyam@zokugun.org? |
Sorry - I had some trouble sending the e-mail. |
Ya, I'm getting the error when running the extension. But the connection is fine when running with a test case... |
I'm getting the error:
|
It seems to be bug with Electron (cf electron/electron#31212). |
Never would I have guessed that out of all possibilities it's electron causing the issue 😅 That's awesome - thanks for your effort 😄 |
Here the latest version sync-settings-0.6.2.vsix.zip I've added the option Here the config used successfully:
Feel free to clean up your WebDAV as you want 😉 |
That's awesome! 😄 Thanks für taking care about it! |
@manuth Do you have any issue? If not, I will release the new version. |
I have no issue - you might consider to wait until the electron error is fixed, tho (?) Apart from that it'd be great to have this released 😄 |
I've added to the doc: https://github.com/zokugun/vscode-sync-settings/blob/feat-webdav/docs/webdav.md#common-errors |
I've published the new version. |
Is WebDAV as a repository backend supported?
I'd love to have my settings uploaded to my Nextcloud automatically.
Thanks a ton for your great work - it's awesome to finally have a competitor to VSCode's Settings Sync!
The text was updated successfully, but these errors were encountered: