Giter VIP home page Giter VIP logo

code-sync's Introduction

CodeSync

A VSCode extension that syncs extensions, settings, snippets, and keybindings using your favorite file synchronization service (OneDrive, Dropbox, Google Drive, etc.)

Available on

Toggle Status Bar Icon

With 2.4.0 you can now toggle the CodeSync status bar icon. After upgrading to this version if you do not see the status bar icon open the Command Palette and run CodeSync: Toggle status bar icon and it will appear again.

Local Settings

With 2.3.0 CodeSync brings support for local settings. Need a specific setting to be different between your computers? This feature is for you. Here's how to use it:

  1. Browse to where VSCode installs extensions and open CodeSync's director, this is located at ~/.vscode/extensions/golf1052.code-sync-2.3.0
  2. Open up local-settings.json. If the file doesn't exist try running CodeSync: Export settings in VSCode first.
  3. Now add settings you want local to the computer you are currently using. The format should look just like VSCode's settings file.
  4. Now when CodeSync exports settings it will not export the settings you have in your local settings file. When settings are imported from your sync directory CodeSync will make sure to apply your local settings again.

Usage

  1. Install CodeSync
  2. Relaunch VSCode
  3. VSCode will now prompt for the folder to where you want sync extensions. This should be a folder that syncs to your other computers.
  4. VSCode will now import settings, keybindings, snippets, and extensions from your external folder.
  5. Code!
  6. When you quit VSCode, CodeSync will export your settings, keybindings, snippets, and extensions to your external folder.

Commands

(All extensions are prefixed with "CodeSync: ")

  • Import all: Import settings, keybindings, snippets, and extensions.
  • Export all: Export settings, keybindings, snippets, and extensions.
  • Import settings: Import settings.
  • Export settings: Export settings.
  • Import keybindings: Import keybindings.
  • Export keybindings: Export keybindings.
  • Import snippets: Import snippets.
  • Export snippets: Export snippets.
  • Import extensions: Import extensions.
  • Export extensions: Export extensions.
  • Exclude an installed extension: Exclude an installed extension from syncing to your external folder.
  • Exclude an external extension: Exclude an external extension from syncing from your local installation.
  • List excluded installed extensions: List excluded extensions that are installed locally.
  • List excluded external extensions: List excluded extensions that are in your external folder.
  • Remove an exclusion - Installed: Remove an exclusion from your local installation.
  • Remove an exclusion - External: Remove an exclusion from your external folder.
  • Toggle auto import: Toggle auto import upon VSCode launch.
  • Toggle auto export: Toggle auto export upon VSCode launch.
  • Toggle import/export settings: Toggle auto importing/exporting of settings.
  • Toggle import/export keybindings: Toggle auto importing/exporting of keybindings.
  • Toggle import/export snippets: Toggle auto importing/exporting of snippets.
  • Toggle import/export extensions: Toggle auto importing/exporting of extensions.
  • Set external sync path: Set the external sync path.
  • Toggle status bar icon: Toggle the CodeSync status bar icon.

Uninstalling Extensions

For 1.31 and above

If you're on VSCode 1.31 or above this is now fixed due to the extension list update on add, remove, enable, or disable of extensions.

For 1.30 and below

Currently there is no way for CodeSync to know when you have uninstalled an extension. When you uninstall an extension in VSCode it still registers the extension as installed until VSCode is restarted. Because of this when you exit VSCode, CodeSync will export the incorrect list of extensions. When you launch VSCode again CodeSync will reinstall the extension you installed. There is an open issue in the VSCode repo about this. In the meantime here's a workaround:

  1. Exclude the extension you want to uninstall with the command: CodeSync: Exclude an installed extension
  2. Now uninstall the extension you just excluded.

When you relaunch VSCode the extension will not be reinstalled by CodeSync anymore.

Contributing/Bugs

I've done a little testing between two Windows 10 machines and an OS X laptop. If you have any issues please report them using Issues. Thanks!

code-sync's People

Contributors

dependabot[bot] avatar golf1052 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

code-sync's Issues

Publish the extension to OpenVSX

Hi, I'm a VSCodium user, a FLOSS version of VS Code. It's the same code but without Microsoft's telemetry, branding and licensing.

I would like to request, if possible, to add the CodeSync for VSCode extension to the open-vsx.org market as it is unclear if it's legal to use the official Microsoft extension marketplace on VS Code forks, see here.

Additional information on how to publish an extension to Open VSX can be obtained here.

Error: Running the contributed command:'extension.exportAll' failed.

I cannot export, I am using Windows 10. I did not change the default Onedrive folder location after install.

edit:
I was able to workaround like this:
When I got the prompt for the sync location, I deleted the last letter and reinserted it again in the input field. There was no error then.

Auto import blocks editing files - appears to be slow checking installed extensions

VSCode version: 1.19.1 macOS
CodeSync version: 2.5.0

Every time I open vscode, the auto import blocks editing files. The status bar reports "Importing keybindings" for 30+ seconds:

image

However, the output channel for code-sync (see below) shows other activity that's not reflected in the status bar and key presses happen after the import completes.

The problem appears to be checking installed extensions. It takes about 26 seconds to check 64 extensions that are already installed.

I don't mind a slow start on the first import or on importing some major changes like a new extension. But, it's not fun sitting through this every time I open vscode.

Is there a way to make the plugin non-blocking except when making changes?

Output:

cs.ts
	2017-12-23T00:33:31.935Z - Checking settings
	2017-12-23T00:33:31.954Z - Setting external extensions path as /masked/external/path/vscode/extensions.json.
	2017-12-23T00:33:31.954Z - Done checking settings.
	2017-12-23T00:33:31.954Z - External sync directory: /masked/external/path/vscode
	2017-12-23T00:33:31.962Z - Importing settings
local-settings.ts
	2017-12-23T00:33:31.965Z - Saving imported settings.
cs.ts
	2017-12-23T00:33:31.966Z - Finished importing settings.
	2017-12-23T00:33:31.966Z - Importing keybindings
	2017-12-23T00:33:32.285Z - Finished importing keybindings.
	2017-12-23T00:33:32.285Z - Importing snippets
	2017-12-23T00:33:32.294Z - Finished importing snippets.
	2017-12-23T00:33:32.294Z - Importing extensions
helpers.ts
	... < truncated 64 Extensions that are already installed > ...
	2017-12-23T00:33:58.552Z - Extension was already installed.
cs.ts
	2017-12-23T00:33:58.552Z - Finished importing extensions.

Reading Sync Settings

I have a question about CodeSync. When importing your sync directory it will apply the imported settings to your local-settings.json file; but when syncing your settings, it doesn't sync your local-settings.json file ?
Why can't it write directly to the settings.json file ?

Unexpected token )

VSCode version:
1.18.1
CodeSync version:
2.5.0
CodeSync log:
no logfile

Issue:
Export Extensions works
Export Settings and All got Error:
Unexpected token )
Running the contributed command:'codeSync.exportSettings' failed.

After reinstall:
command 'codeSync.setSyncPath' not found
command 'codeSync.exportSettings' not found
command 'codeSync.exportExtensions' not found

codesync: export settings - command not found

If you are reporting an issue/bug please fill in your VSCode version, CodeSync version, and if you are on version 2.4.0 and above the CodeSync log from the CodeSync output channel. Thanks!

If you are requesting a feature feel free to clear this template.

VSCode version:
1.17.0
CodeSync version:
2.4
CodeSync log:

settings.ts
	2017-10-08T20:47:07.795Z - Creating settings with internal settings.json path and external extensions.json path: C:\Users\USER\.vscode\extensions\golf1052.code-sync-2.4.0\settings.json, extensions.json.
helpers.ts
	2017-10-08T20:47:09.665Z - Found code version: 1.17.0
be377c0faf7574a59f84940f593a6849f12e4de7
.
cs.ts
	2017-10-08T20:47:09.666Z - Checking settings
	2017-10-08T20:47:09.755Z - Setting external extensions path as T:\CodeSync\extensions.json.
	2017-10-08T20:47:09.755Z - CodeSync external sync directory isn't there?
	2017-10-08T20:47:09.755Z - Creating external sync path directory: T:\CodeSync.

Issue: I tried codesync: export settings but it said no command was found, in the upper bar of VSCode.
My local-settings.json is empty and I wanted to check the extensions being exported on my systems.

Not sure if this is a new VSCode version issue or not, as I never tried it before.

Stalls on 'Importing Settings'

Using the latest version of code-sync and VS Code, I set my Dropbox location for sync'd components. The UI then shows CodeSync status as Importing settings, indefinitely.

Have completely removed VS Code and all associated files and reinstalled, however the issue still persists.

OS/ Mac OS Sierra (10.12.4)

issue of 'upload to gist' function

  • VSCode version: 1.30.2

  • CodeSync version: 3. 2.4

  • CodeSync log:

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] HttpError: Not Found
    at module.exports.e.exports.i.fetch.then.n.text.then.n (C:\Users\user\.vscode\extensions\shan.code-settings-sync-3.2.4\out\extension.js:137:45419)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
t.log @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2508 Sync : Error Logged In Console (Help menu > Toggle Developer Tools).
t.onDidNotificationChange @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2508

what

  • Issue:
    when I tryed gist upload, I saw these messages.
    what happened to codesync??

Setting to Hide Status Bar Icon

Hi Sanders, thanks for your awesome work on this plugin.

I know you recently added support for the status bar but mine is getting a little crowded and forcing some stuff to hide... would you be able to add a setting to allow hiding of the status bar icon for your extension?

This would be super awesome!!

Thank you.

Support $HOME or "~" in external sync path setting.

E.g. setting the sync path to "~/.config/CodeSync", rather than the full path. This would be useful for sharing the extension settings across multiple computers, without having to change the path for each computer.

Feature request: Support for different configuration based on VSCode build

First off - I love using code-sync to keep my vscode settings sync'd with my dotfiles; I much prefer that route over sync'ing via some other server.

I currently use both VSCode and Insiders. For some plugins (e.g. Copliot) - I need to use a beta version with the Insiders build, and the non-beta version with the regular VSCode build. What do you think about support such things via code-sync (config templatization or whatever)

Cannot set external sync path with spaces escaped by backslash

If you are reporting an issue/bug please fill in your VSCode version, CodeSync version, and if you are on version 2.4.0 and above the CodeSync log from the CodeSync output channel. Thanks!

If you are requesting a feature feel free to clear this template.

VSCode version: 1.18.1

CodeSync version: 2.5.0

CodeSync log:

settings.ts
	2017-11-30T18:50:55.869Z - Creating settings with internal settings.json path and external extensions.json path: /Users/jc/.vscode/extensions/golf1052.code-sync-2.5.0/settings.json, extensions.json.
helpers.ts
	2017-11-30T18:50:58.804Z - Found code version: 1.18.1
929bacba01ef658b873545e26034d1a8067445e9
.
cs.ts
	2017-11-30T18:50:58.805Z - Checking settings
	2017-11-30T18:50:58.876Z - Could not find settings in /Users/jc/.vscode/extensions/golf1052.code-sync-2.5.0/settings.json. Creating...
	2017-11-30T18:51:01.170Z - Setting external extensions path as /Users/jc/OneDrive/Apps/code-sync/extensions.json.
	2017-11-30T18:51:01.171Z - CodeSync external sync directory isn't there?
	2017-11-30T18:51:01.171Z - Creating external sync path directory: /Users/jc/OneDrive/Apps/code-sync.
	2017-11-30T18:51:01.171Z - Done checking settings.
	2017-11-30T18:51:01.171Z - External sync directory: /Users/jc/OneDrive/Apps/code-sync
	2017-11-30T18:51:01.174Z - Importing settings
	2017-11-30T18:51:01.174Z - Failed to import settings. Could not find settings.json at /Users/jc/OneDrive/Apps/code-sync/settings.json. Giving up.
	2017-11-30T18:51:01.174Z - Importing keybindings
	2017-11-30T18:51:01.174Z - Failed to import keybindings. Could not find keybindings.json at /Users/jc/OneDrive/Apps/code-sync/keybindings.json. Giving up.
	2017-11-30T18:51:01.174Z - Importing snippets
	2017-11-30T18:51:01.175Z - Failed to import snippets. Could not find snippets directory at /Users/jc/OneDrive/Apps/code-sync/snippets. Giving up.
	2017-11-30T18:51:01.175Z - Importing extensions
	2017-11-30T18:51:01.175Z - Finished importing extensions.
	2017-11-30T18:53:20.941Z - Creating external sync path: /Volumes/GoogleDrive/My\ Drive/vscode
	2017-11-30T18:54:02.444Z - Creating external sync path: /Volumes/GoogleDrive/My\ Drive/vscode/code-sync
	2017-11-30T18:55:59.769Z - Creating external sync path: /Volumes/GoogleDrive/My\ Drive/vscode/code-sync
	2017-11-30T19:09:28.240Z - Creating external sync path: /Volumes/GoogleDrive/My\ Drive/vscode/code-sync

Issue:
The last four entries are me trying to add the path /Volumes/GoogleDrive/My\ Drive/vscode/code-sync as the external sync path. However, it fails with an error ECANCELED: operation canceled, mkdir '/Volumes/GoogleDrive/My\ Drive'

Once I removed the forward slash escaping the space character in "My Drive", CodeSync was able to create the path and a sync happened when I quit VS Code.

Error when exporting extensions

When I try and Export Extensions (from the Ctrl+Shift+P menu) it gives an error Cannot read property 'themes' of undefined and no extensions are saved. I only recently started getting this and I tried uninstalling and re-installing extensions to figure out which one caused it but I can't seem to find any that might've caused it.

Can't set path on Mac

This extension works like a charm on my PC but not on my Mac.
When restarting VS Code after instralling the extansion it say that it can't find the path in stead of prompting me to define it.
When trying to set it via the command pallet it says:

Error: command 'extension.setSyncPath' not found

Issue with setting sync path

VSCode version: 1.25.0

CodeSync version: 2.5.3

CodeSync log: Can't find where to get this?

Issue:

When I set the external path - whatever I enter is ignored and the default seems to be used regardless, which is:

C:\Users\adam\OneDrive\Apps\code-sync

Yet on OneDrive (after quitting or exporting manually) it appends my machine's name to that folder - so the path is on Onedrive is actually:

C:\Users\adam\OneDrive\Apps-SBOOK2\code-sync

If I then try and Export All again - it ignores that path altogether and creates another new folder altogether:

C:\Users\adam\OneDrive\Apps-SBOOK2-1\code-sync

And if I do that again, yet another folder:

C:\Users\adam\OneDrive\Apps-SBOOK2-2\code-sync

...and so on (these are all empty folders). I also get an error message when I try to do the Export All, saying:

ENOENT: no such file or directory open "C:\Users\adam\OneDrive\Apps\code-sync\settings.json"

(which is the actual path that was set). So the path set doesn't seem to be the path used?

Thanks

Import extensions command has no effect

I exported all the settings, extensions etc to a folder and then i imported the files onto a folder on a different system. The VS code asks for the path to set, and then i run import all command. Settings and snippets get synced, but i see no effect over extensions being imported and there is no progress status visible anywhere as such. Let me know if i can be of any help in providing logs.

Operating System: OSX Sierra
VSCode: 1.5.3
CodeSync: 2.0.0

Can't uninstall extensions

When you try to uninstall an extension it gets reinstalled by CodeSync. I'm assuming because it's not picking up the correct list of actually installed extensions when exporting the extensions list.

Extension marketplace page is not synced with README.md

VSCode version:

Version: 1.38.0 (user setup)
Commit: 3db7e09f3b61f915d03bbfa58e258d6eee843f35
Date: 2019-09-03T21:49:13.459Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362

CodeSync version:

Name: CodeSync
Id: golf1052.code-sync
Description: Sync VSCode extensions using your favorite file synchronization service (OneDrive, Dropbox, Google Drive, etc.)
Version: 2.5.3
Publisher: Sanders Lauture
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=golf1052.code-sync

Issue:
I was looking for an extension for syncing and upon reading the enlightening reviews I knew this was the one. However, upon attempting to install I noticed that the extension information page displayed within VScode differed from comments and (upon further review) from that of the Github README file. extension information page Of particular concern was the lack of information around the uninstall bug that has already been resolved. Recommend updating in the extension marketplace (whichever way that is done).

VS Code Insiders isn't supported

VSCode version: 1.18.0-insider

CodeSync version: 2.4.0

CodeSync log:

settings.ts
	2017-10-06T21:34:38.555Z - Creating settings with internal settings.json path and external extensions.json path: C:\Users\brian\.vscode-insiders\extensions\golf1052.code-sync-2.4.0\settings.json, extensions.json.
helpers.ts
	2017-10-06T21:34:38.593Z - Error while executing isCodeOnPath()
	2017-10-06T21:34:38.593Z - Command: code.cmd --version
	2017-10-06T21:34:38.593Z - Exception:
	2017-10-06T21:34:38.593Z - 	Name: Error
	2017-10-06T21:34:38.593Z - 	Message: Command failed: code.cmd --version
'code.cmd' is not recognized as an internal or external command,
operable program or batch file.

	2017-10-06T21:34:38.593Z - 	Stacktrace: Error: Command failed: code.cmd --version
'code.cmd' is not recognized as an internal or external command,
operable program or batch file.

	at checkExecSyncError (child_process.js:493:13)
	at Object.execSync (child_process.js:533:13)
	at Object.childProcess.(anonymous function) [as execSync] (ELECTRON_ASAR.js:684:22)
	at Object.isCodeOnPath (C:\Users\brian\.vscode-insiders\extensions\golf1052.code-sync-2.4.0\out\src\helpers.js:115:33)
	at C:\Users\brian\.vscode-insiders\extensions\golf1052.code-sync-2.4.0\out\src\extension.js:21:48
	at Generator.next (<anonymous>)
	at C:\Users\brian\.vscode-insiders\extensions\golf1052.code-sync-2.4.0\out\src\extension.js:7:71
	at Promise (<anonymous>)
	at __awaiter (C:\Users\brian\.vscode-insiders\extensions\golf1052.code-sync-2.4.0\out\src\extension.js:3:12)
	at activate (C:\Users\brian\.vscode-insiders\extensions\golf1052.code-sync-2.4.0\out\src\extension.js:18:12)
	at Function.e._callActivateOptional (c:\Program Files\Microsoft VS Code Insiders\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:461761)
	at Function.e._callActivate (c:\Program Files\Microsoft VS Code Insiders\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:461506)
	at c:\Program Files\Microsoft VS Code Insiders\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:460859
	at Object.m [as _notify] (c:\Program Files\Microsoft VS Code Insiders\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:50471)
	at Object.enter (c:\Program Files\Microsoft VS Code Insiders\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:54036)
	at n.Class.derive._oncancel._run (c:\Program Files\Microsoft VS Code Insiders\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:55864)
	2017-10-06T21:34:38.593Z - Defaulting to false
cs.ts
	2017-10-06T21:57:50.620Z - Checking settings
	2017-10-06T21:57:50.629Z - Setting external extensions path as C:\Users\brian\OneDrive\Apps\code-sync\extensions.json.
	2017-10-06T21:57:50.629Z - Done checking settings.
	2017-10-06T21:57:50.629Z - External sync directory: C:\Users\brian\OneDrive\Apps\code-sync
	2017-10-06T21:57:50.633Z - Importing settings
	2017-10-06T21:57:50.633Z - Failed to import settings. Could not find settings.json at C:\Users\brian\OneDrive\Apps\code-sync\settings.json. Giving up.
	2017-10-06T21:57:50.637Z - Importing keybindings
	2017-10-06T21:57:50.637Z - Failed to import keybindings. Could not find keybindings.json at C:\Users\brian\OneDrive\Apps\code-sync\keybindings.json. Giving up.
	2017-10-06T21:57:50.637Z - Importing snippets
	2017-10-06T21:57:50.637Z - Failed to import snippets. Could not find snippets directory at C:\Users\brian\OneDrive\Apps\code-sync\snippets. Giving up.

Issue: Error: Code was not found on your path, CodeSync will be unable to import or export your extensions.

It looks like the extension isn't falling back to looking for C:\Program Files\Microsoft VS Code Insiders\bin\code-insiders.cmd

"command not found" for all commands on v2.6.2

VSCode version:
1.41.1

CodeSync version:
2.6.2

CodeSync log:

settings.ts
	2020-02-08T21:56:56.234Z - Creating settings with internal settings.json path and external extensions.json path: /home/sam/.vscode/extensions/golf1052.code-sync-2.6.2/settings.json, extensions.json.

Issue:
Every command executed results in a "not found" error. E.g. command 'codeSync.toggleStatusBar' not found, command 'codeSync.setSyncPath' not found, etc.

Resolution:
Downgraded to 2.6.1

Code was not found on your path

If you are reporting an issue/bug please fill in your VSCode version, CodeSync version, and if you are on version 2.4.0 and above the CodeSync log from the CodeSync output channel. Thanks!

If you are requesting a feature feel free to clear this template.

VSCode version:

CodeSync version:

CodeSync log:

Issue:
Screen Shot 2020-04-18 at 3 26 25 PM

Our company uses a customized version of vscode and has a different command, so instead of code, we have other variant, for example codeabcdefg.

Can we make this configurable as a setting?

Thanks!

Code not found in path error

I am trying to sync several VMs, all using Windows 10. After enabling the extension and setting the sync folder (using the default in One Drive), I get the following error every time I open VS Code:

Code was not found on your path, CodeSync is unable to activate!

If I try to manually run any commands, like CodeSync: Export All, I get the following:

command 'extension.exportAll' not found.

I have double checked to make sure the path to VS Code is in the Path variable and found it is ("C:\Program Files (x86)\Microsoft VS Code\bin"

Thanks for any help!

Import all extensions

I don't know if I can just copy over the entirety of an extension folder from one place to another place and have it just work.

From the documentation here it looks like I should just be able to copy the folder over.

However this makes me think that just copying over extensions will not work for every single extension.

Basically I just need to test importing entire extensions to see if it works correctly.

"settings.json" with comments crashes extension.

Since the latest update it looks like the extension parses the JSON files to merge them instead of just copying. VSCode supports JSON comments however JavaScript's JSON does not. This causes the extension to crash:

[Extension Host] Here is the error stack:  SyntaxError: Unexpected token / in JSON at position 6
    at JSON.parse (<anonymous>)
    at LocalSettings.import (/home/david/.vscode/extensions/golf1052.code-sync-2.3.0/out/src/local-settings.js:12:29)
    at CodeSync.importSettings (/home/david/.vscode/extensions/golf1052.code-sync-2.3.0/out/src/cs.js:167:49)
    at /home/david/.vscode/extensions/golf1052.code-sync-2.3.0/out/src/extension.js:27:26
    at Generator.next (<anonymous>)
    at fulfilled (/home/david/.vscode/extensions/golf1052.code-sync-2.3.0/out/src/extension.js:4:58)
    at runMicrotasksCallback (internal/process/next_tick.js:58:5)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

The only error message is in the developer console, and the extension's status indicator is stuck on "Importing settings".

Complete VSCodium suport

If you are reporting an issue/bug please fill in your VSCode version, OS information, CodeSync version, and if you are on version 2.4.0 and above the CodeSync log from the CodeSync output channel. Thanks!

If you are requesting a feature feel free to clear this template.

VSCodium version: 1.57.1

OS information: macOS 12

CodeSync version: 2.7.3

CodeSync log

settings.ts
	2021-07-14T16:55:25.816Z - Creating settings with internal settings.json path and external extensions.json path: /Users/user/.vscode-oss/extensions/golf1052.code-sync-2.7.3/settings.json, extensions.json.
cs.ts
	2021-07-14T16:55:25.816Z - Checking settings
	2021-07-14T16:55:25.818Z - Setting external extensions path as /Users/user/Dropbox/Apps/VSCode-CodeSync-Extension/extensions.json.
	2021-07-14T16:55:25.818Z - Done checking settings.
	2021-07-14T16:55:25.818Z - External sync directory: /Users/user/Dropbox/Apps/VSCode-CodeSync-Extension
helpers.ts
	2021-07-14T16:55:26.227Z - Error while executing isCodeOnPath()
	2021-07-14T16:55:26.227Z - Command: code --version
	2021-07-14T16:55:26.227Z - Exception:
	2021-07-14T16:55:26.227Z - 	Name: Error
	2021-07-14T16:55:26.227Z - 	Message: Command failed: code --version
/bin/sh: code: command not found

	2021-07-14T16:55:26.227Z - 	Stacktrace: Error: Command failed: code --version
/bin/sh: code: command not found

	at checkExecSyncError (child_process.js:625:11)
	at Object.execSync (child_process.js:661:15)
	at Object.execSync (electron/js2c/asar_bundle.js:5:12059)
	at Object.isCodeOnPath (/Users/user/.vscode-oss/extensions/golf1052.code-sync-2.7.3/out/src/helpers.js:145:33)
	at /Users/user/.vscode-oss/extensions/golf1052.code-sync-2.7.3/out/src/extension.js:26:48
	at Generator.next (<anonymous>)
	at fulfilled (/Users/user/.vscode-oss/extensions/golf1052.code-sync-2.7.3/out/src/extension.js:5:58)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	2021-07-14T16:55:26.227Z - Defaulting to false

Issue:

Using this extension with VSCodium I get this error:

Code was not found on your path, CodeSync will be unable to import or export your extensions.

It looks like part of the VSCodium compat work was done in #44 and the last bit would be to apply similar changes as was done in #26, which is mostly this I believe.

vscode stopped letting me edit files

Issue Type: Bug

After the past weekend, I was no longer able to edit any files over remote ssh. I could highlight text in files and scroll around but couldn't type any new text.

I ran a extension bisect and disabling this extension resolved the issue. I'm not sure why

Extension version: 2.7.3
VS Code version: Code 1.54.2 (fd6f3bce6709b121a895d042d343d71f317d74e7, 2021-03-11T00:56:19.848Z)
OS version: Windows_NT x64 10.0.19042
Fetching remote diagnostics for 'SSH: jcormier' failed: Canceled

System Info
Item Value
CPUs Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz (8 x 2691)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.94GB (19.67GB free)
Process Argv --crash-reporter-id b7293aed-1b8a-4a7c-9f2b-2709ae6aaf1f
Screen Reader no
VM 0%

Fetching remote diagnostics for 'SSH: jcormier' failed: Canceled

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30256636
pythonvsdeb440:30248342
pythonvsded773:30248341
vstes627:30244334
pythonvspyt875:30259475
dockersubset:30270708
pythontbcf:30265426
vspre833:30267464
vsfjg287:30275553

Stuck in exporting settings

VSCode version:
1.39.1
CodeSync version:
2.6.0
CodeSync log:

settings.ts
	2019-10-13T12:28:14.984Z - Creating settings with internal settings.json path and external extensions.json path: /home/aacebedo/.vscode/extensions/golf1052.code-sync-2.6.0/settings.json, extensions.json.
helpers.ts
	2019-10-13T12:28:15.188Z - Found code version: 1.39.1
88f15d17dca836346e787762685a40bb5cce75a8
x64
.
cs.ts
	2019-10-13T12:28:15.189Z - Checking settings
	2019-10-13T12:28:15.199Z - Setting external extensions path as /tmp/test/extensions.json.
	2019-10-13T12:28:15.199Z - Done checking settings.
	2019-10-13T12:28:15.199Z - External sync directory: /tmp/test
	2019-10-13T12:28:15.203Z - Importing settings
	2019-10-13T12:28:15.203Z - Failed to import settings. Could not find settings.json at /tmp/test/settings.json. Giving up.
	2019-10-13T12:28:15.203Z - Importing keybindings
	2019-10-13T12:28:15.203Z - Failed to import keybindings. Could not find keybindings.json at /tmp/test/keybindings.json. Giving up.
	2019-10-13T12:28:15.204Z - Importing snippets
	2019-10-13T12:28:15.204Z - Failed to import snippets. Could not find snippets directory at /tmp/test/snippets. Giving up.
	2019-10-13T12:28:15.204Z - Importing extensions
	2019-10-13T12:28:15.211Z - Finished importing extensions.
	2019-10-13T12:28:15.211Z - Exporting extensions
	2019-10-13T12:28:15.212Z - Finished exporting extensions

Issue:
When launching the export settings command, the status displays "Exporting settings" and gets stuck. Nothing happens after that and I don't see any errors in any logs.

I am using vscode on Linux.

Settings get wiped out

I've seen two reviews that mention that settings can get wiped out. I'm guessing this may be due to how things are being saved when deactivate is called. I should get around to fixing this at some point this week but for now I would recommend either

  1. Turning off auto import on setttings, keybindings, and snippets
  2. Backing up your settings files
  3. Use Settings Sync

Suggestion: a list of settings to exclude from sync

I'd propose an enhancement - some way to not sync certain settings, but sync others.

My use case is, I have two machines with different display DPIs. The only reliable way I found to handle it with VSCode is manually configuring things window.zoomLevel setting. However, since the setting is saved, either UI becomes tiny on the HiDPI laptop, or a low-DPI desktop gets giant fonts and widgets.

Another use case would be filesystem paths, which may differ on different machines.

My general suggestion is to have a list of settings exempt from syncing, and when they're updated - always take values from local config.

Code not found in path error when VSCode is installed through Snap on Linux

Created this to track Linux Snap issues separately from #9

Some background first. CodeSync uses the code CLI to install extensions. To call the CLI CodeSync uses child_process.execSync(). When VSCode installed through Snap any calls to the CLI get swallowed resulting in an empty string returned by execSync. Some other people have reported similar issues for other Snap packages while using NodeJS exec

See
microsoft/vscode#75581
nodesource/distributions#663
https://bugs.launchpad.net/snapd/+bug/1835805
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1849753

There seems to be a workaround suggested in the last issue linked

If /snap/node/current/bin/node is expected to work better, then maybe it’s reasonable to ask why /snap/bin/node goes through /usr/bin/snap at all for a classic snap? Could snap just set it up as a direct symlink to /snap/node/current/bin/node and avoid this problem?

Doing some preliminary testing shows that this workaround works. I'll push a new version shortly with this fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.