-
Notifications
You must be signed in to change notification settings - Fork 18
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
[Solved] Compare selected folders command failed when using shortcut #66
Comments
Thanks. |
Unfortunately, it's not possible to create a shortcut for this command (See the issue link above). Thanks for the report and sorry for that limitation. I wish I could fix this. |
Here is how it looks Can you verify please? |
That is too bad, guess it can't be helped.
I tried manually getting and parsing the URIs for the command but maybe I'm missing something. Any ideas? |
Interesting approach! I don't use macros actually.
is copying the opened editor path, isn't? I wonder however what is the use case? Are you selecting 2 folders with the mouse and want to compare with the keyboard? |
The extension lets me run javascript, including the vscode API, as part of the macros. |
This is what I have so far, just trying to figure out how to get the last part to work.
|
I got it to work!! To summarize for those looking for a temporary solution:
Then in your keybindings.json:
Then simply select two folders in the file explorer and use the shortcut. |
Very nice! |
I wrote in my keybindings.json:
{ "key": "shift+alt+d", "command": "foldersCompare.compareSelectedFolders", "when": "explorerViewletVisible && filesExplorerFocus && !inputFocus" }
I selected 2 folders in my file explorer and when I clicked the keybind, I got a notification:
In the extension host logs, I got this error:
[exthost] [error] TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) at CompareFoldersProvider.compareSelectedFolders (/home/default/.vscode/extensions/moshfeu.compare-folders-0.20.1/out/providers/foldersCompareProvider.js:58:39) at b._executeContributedCommand (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:86:88517) at b.$executeContributedCommand (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:86:88849) at p._doInvokeHandler (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:89:10276) at p._invokeHandler (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:89:9968) at p._receiveRequest (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:89:8638) at p._receiveOneMessage (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:89:7440) at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:89:5568 at v.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:55:1836) at d.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:63:15515) at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:104:29104 at v.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:55:1836) at d.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:63:15515) at t._receiveMessage (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:63:20765) at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:63:17659 at v.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:55:1836) at u.acceptChunk (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:63:12880) at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:63:12228 at Socket.m (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:104:12375) at Socket.emit (events.js:315:20) at addChunk (_stream_readable.js:295:12) at readableAddChunk (_stream_readable.js:271:9) at Socket.Readable.push (_stream_readable.js:212:10) at Pipe.onStreamRead (internal/stream_base_commons.js:186:23) foldersCompare.compareSelectedFolders
I'm running on Debian. Let me know if you'd need anything more.
Hope this can get fixed easily, as it's way more convenient for me to use the command through a keybind.
The text was updated successfully, but these errors were encountered: