Skip to content
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

Automatical mapping keybindings.json #23139

Open
yaroslavkasatikov opened this issue Sep 10, 2024 · 3 comments
Open

Automatical mapping keybindings.json #23139

yaroslavkasatikov opened this issue Sep 10, 2024 · 3 comments
Labels
area/editor/vscode Issues related to the Code OSS editor of Che kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@yaroslavkasatikov
Copy link

Summary

Hi team,

I have the task to automatically map custom keybindings.json on checode loading.
I tried to put the file into ~/.config/Code/User or other default paths for vscode, but checode didn't load it.
I found and configured embedded keybindings.json via checode comand line ( Open Keyboard Shortcuts (JSON)), it opens the keybindings.json file which can be edited and applied, but I couldn't find its location on the FS. I tried to grep text and find by the name, but unsuccessfully :(
When I selected to copy path of the file it returned me (Settings): /User/keybinding.json.
Could you please tell me where this file located? may be it is stored in the internal storage?

Thanks in advance!

Relevant information

No response

@yaroslavkasatikov yaroslavkasatikov added the kind/question Questions that haven't been identified as being feature requests or bugs. label Sep 10, 2024
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Sep 10, 2024
@aelbarkani
Copy link

The use case: we want to have reproducible dev environments (including the settings, extensions and the key bindings). That seems possible with settings and extensions (through workspace settings.json and extensions.json), but we couldn't do it it for keybindings.json.

@AObuchow AObuchow added the area/editor/vscode Issues related to the Code OSS editor of Che label Sep 11, 2024
@AObuchow
Copy link

When I selected to copy path of the file it returned me (Settings): /User/keybinding.json.

IIRC, files stored under /User/ are stored in the browser's local storage.
This may be achievable somehow through a patch to CheCode, but I'm not sure how feasible it is. @azatsarynnyy @vitaliy-guliy and @RomanNikitenko would have a better idea.

From the looks of microsoft/vscode#4504 & microsoft/vscode#23757, this is not supported in upstream VSCode either (seemingly by design).

I did find a hacky workaround that may be worth a try, but this seems less than ideal and would be unsupported.

CC: @azatsarynnyy @vitaliy-guliy and @RomanNikitenko please take a look :)

@AObuchow AObuchow removed the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Sep 11, 2024
@azatsarynnyy
Copy link
Member

IIRC, files stored under /User/ are stored in the browser's local storage.

@AObuchow is correct. Such files are stored in browser's Indexed DB.

AFAIK, @vitaliy-guliy is working on making those configs stored in a file on FS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/vscode Issues related to the Code OSS editor of Che kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

5 participants