Visual Studio Code Version : 1.12.2
Code Settings Sync Version : 2.8.0
Operating System : Windows 10.0.14393
Occurs On: Upload / Download
Proxy Enabled: No
GIst Id: jwstevensii
Sync does not properly work when Launching Visual Studio Code with the below parameters
--user-data-dir=[Alternate folder here]
--extensionHomePath=[Alternate folder here]
It doesnt support portable vs code now. We will see what can be done later on.
Hi, any news for portable vscode ?
@shanalikhan As far as I can see, you're pending for Microsoft/vscode#2741 because you want to support the portable version in a safe manner instead of hard cording paths. This is reasonable, but how about just starting portable version support by hard coding? It may be a bit of maintenance, but it really sucks to manually copy paste settings across files right now. Besides, I can't see any reason it's worse with the portable version as the regular version? Both must be hard coded now?
There are slight differences, e.g. Windows uses data in the same folder level as Code.exe whereas macOS uses code-portable-data at the same level as Visual Studio Code.app. But surely this is identical to treating different OSs for the non-portable VSCode?
Btw I wouldn't mind maintaining any changes made to the portable paths at least for the macOS version until we hopefully get these at an API level.
Yes you are right.
I am currently checking if visual studio code provide some sort of flag that shows user is running a portable mode than hard code path can be used for now.
But if they dont even provide some method to check the portable mode is running or standard then i have to dig into a longer route by viewing the standard paths for code variants ( standard, insiders ) for each OS ( windows, Mac, Ubuntu ) and then setting hard code path as above for portable mode
Gotcha.
You could just introduce a "sync.isUsingPortable" setting that defaults to false for now. If set to true, then it use a different set of paths.
Let me know if I can be of any help. I use both Windows and macOS at the moment.
Yes, if there will no other option then I would have to go manual setup to adding keys.
I can't help but to notice that the issue in question has been open since February 2016, so I'd say we shouldn't hold our breath for that one. Better to have a less elegant, but working solution now.
As I said, let me know if I can help in any way.
As I said, let me know if I can help in any way.
If you can help - It would be great If you can just PR fixing this - Will be released with v3.1
Let me know if you are willing, we can discuss it.
References:
https://github.com/Microsoft/vscode/issues/49306
vsicons PR for adding portable - https://github.com/vscode-icons/vscode-icons/pull/1651
Hmm may be a little over my head compared with the time I have at the moment. Sorry.
Hey, @shanalikhan! Just checking in - is a temporary solution still on the radar?
Great work with Settings Sync. Not sure how the world survived without it.
not work with Settings Sync(shan.code-settings-sync)
That's because the extension does not honor VSCODE_APPDATA environment variable, just ask them to implement support.
Check src/paths.js of vscode and src/environmentPath.ts of code-settings-sync for more details.
I have created a PR to support portable mode.
But it will only support the default portable mode directory structure mentioned by Visual Studio Code Team.

It only supports Windows and Linux.
I dont have Mac so at the moment, Settings Sync wont support Portable Mode over Mac. You guys can send PR to assist.
Will be released in a week.
v3.2 is released with this feature. Let me know if there is any problem
How is it closed if it doesn鈥檛 work on Mac? Do you want a separate issue for that?
Great work with the windows version btw 馃憤
https://github.com/shanalikhan/code-settings-sync/issues/684
PR is welcome for Mac.
Still seeing error using 3.2.0 and Windows 10 1803
[Extension Host] TypeError: Cannot read property 'token' of undefined
at Commons.<anonymous> (C:\Scoop\persist\vscode-insiders\data\extensions\shan.code-settings-sync-3.2.0\out\src\commons.js:216:29)
at Generator.next (<anonymous>)
at fulfilled (C:\Scoop\persist\vscode-insiders\data\extensions\shan.code-settings-sync-3.2.0\out\src\commons.js:4:58)
at <anonymous> (at Function.LogException (C:\Scoop\persist\vscode-insiders\data\extensions\shan.code-settings-sync-3.2.0\out\src\commons.js:28:21))
t.log @ console.ts:134
t._logExtensionHostMessage @ extensionHost.ts:437
(anonymous) @ extensionHost.ts:244
emitTwo @ events.js:126
emit @ events.js:214
emit @ internal/child_process.js:772
_combinedTickCallback @ internal/process/next_tick.js:141
_tickCallback @ internal/process/next_tick.js:180
notificationsAlerts.ts:40 Sync : Error Logged In Console (Help menu > Toggle Developer Tools).
t.onDidNotificationChange | @ | notificationsAlerts.ts:40
-- | -- | --
聽 | (anonymous) | @ | notificationsAlerts.ts:26
聽 | e.fire | @ | event.ts:145
聽 | t.notify | @ | notifications.ts:113
聽 | t.notify | @ | notificationService.ts:52
聽 | e._showMessage | @ | mainThreadMessageService.ts:83
聽 | e._showMessage | @ | mainThreadMessageService.ts:44
聽 | e.$showMessage | @ | mainThreadMessageService.ts:38
聽 | t._doInvokeHandler | @ | rpcProtocol.ts:439
聽 | t._invokeHandler | @ | rpcProtocol.ts:424
聽 | t._receiveRequest | @ | rpcProtocol.ts:341
聽 | t._receiveOneMessage | @ | rpcProtocol.ts:271
聽 | (anonymous) | @ | rpcProtocol.ts:146
聽 | e.fire | @ | event.ts:145
聽 | a | @ | ipc.net.ts:103
聽 | n._socketDataListener | @ | ipc.net.ts:132
聽 | emitOne | @ | events.js:116
聽 | emit | @ | events.js:211
聽 | addChunk | @ | _stream_readable.js:263
聽 | readableAddChunk | @ | _stream_readable.js:250
聽 | Readable.push | @ | _stream_readable.js:208
聽 | onread | @ | net.js:594
I fixed this error by creating a sync.lock than installing the extension. Now it is not picking up on my extensions in the portable install though.
This issue needs to be reopened @shanalikhan
same issue on my new laptop.
When upload settings i see extension added, but in the new pc i read "No extensions installed"
Same problem and error on Windows 10 and VSCode:
Version: 1.29.1
Commit: bc24f98b5f70467bc689abf41cc5550ca637088e
Date: 2018-11-15T19:13:36.375Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
/C:/Tools/VSCode/resources/app/out/vs/workbench/workbench.main.js:294 [Extension Host] TypeError: Cannot read property 'token' of undefined
at Commons.<anonymous> (C:\Tools\VSCode\data\extensions\shan.code-settings-sync-3.2.0\out\src\commons.js:216:29)
at Generator.next (<anonymous>)
at fulfilled (C:\Tools\VSCode\data\extensions\shan.code-settings-sync-3.2.0\out\src\commons.js:4:58)
at <anonymous>
Still doesn't work when --user-data-dir= ref to my comment at https://github.com/Microsoft/vscode/issues/49306
Settings Sync now supports portable mode in Mac
v2.3.4 Released.
@shanalikhan is this true on windows as well?
Yes, try with auto upload / download turned off. Create new issue if there is any problem.
@shanalikhan Awesome! 馃帀 I haven't tested it thoroughly yet, but I've tried it out a little, and it seems to work. Thanks!
@shanalikhan I installed vscode-portable with scoop and couldn't synchronize the complete extension list


Version: 1.30.1
If you are free, please help me to look at this problem. Thank you very much.
@shanalikhan
Hello, I'm on vscode 1.33.1 portable.
Uploading is fine but I cannot download extensions, only settings files are downloaded.
There is no error throw, juts 0 extension added.
I also try upload then force download and got the same thing.
Can you look into this please ?
UPDATED: actually I got this error
"C:\Hao\Softwares\VSCode-win32-x64-1.33.1\bin/code" --install-extension ChakrounAnas.turbo-console-log
Extension 'chakrounanas.turbo-console-log' not found.
Make sure you use the full extension ID, including the publisher, eg: ms-vscode.csharp
Failed Installing Extensions: ChakrounAnas.turbo-console-log
@babyadoresorange please open new ticket with the details reproducing steps.
Most helpful comment
v3.2 is released with this feature. Let me know if there is any problem