Skip to content

keymaps: 'Open Keyboard Shortcuts in JSON' command should create file if it does not exist #8301

@vince-fugnitto

Description

@vince-fugnitto

Bug Description:

The command Open Keyboard Shortcuts in JSON should create the keymaps.json file if it does not exist instead of throwing an error:

monaco-editor-provider.js:203 Uncaught (in promise) Error: 'user_storage:/keymaps.json' is invalid
    at MonacoEditorProvider.<anonymous> (monaco-editor-provider.js:203)
    at step (monaco-editor-provider.js:71)
    at Object.next (monaco-editor-provider.js:52)
    at fulfilled (monaco-editor-provider.js:43)

Steps to Reproduce:

  1. make sure that the keymaps.json file does not exist (ex: rm -rf ~/.theia)
  2. open the keyboard shortcuts view, and attempt to open the keymaps.json with the toolbar item ({ })
  3. the error is thrown

bug

Metadata

Metadata

Assignees

Labels

filesystemissues related to the filesystemhelp wantedissues meant to be picked up, require helpkeybindingsissues related to keybindings

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions