Some configs in overrides.json does not work as I intended

I am developing a cookiecutter template to easily set up projects with JupyterLab. In the post-process hook, the following overrides.json is created in .venv/share/jupyter/lab/settings:

{
  "@jupyterlab/apputils-extension:themes": {
    "theme": "City Lights"
  },
  "@jupyterlab/shortcuts-extension:shortcuts": {
    "shortcuts": [
      {
        "command": "runmenu:restart-and-run-all",
        "keys": [
          "Ctrl Shift R"
        ],
        "selector": "[data-jp-code-runner]"
      }
    ]
  },
  "@ryantam626/jupyterlab_code_formatter:settings": {
    "preferences": {
      "default_formatter": {
        "python": "isort"
      }
    }
  }
}

After making a new project using the template and launching JupyterLab within the virtualenv, shortcut for “Restart Kernel and Run All” is not recognized while settings for theme and code formatter are correctly in effect. I also checked the Advanced Settings Editor, and only theme and code formatter sections have the same config as overrides.json.

Could someone help me troubleshoot this? I’m afraid I haven’t published my template, but I will detail additional information if needed.

Hi, I have exactly the same issue. Any luck solving this?

It’s not possible to override the keyboard shortcuts with overrides.json with the current codebase. I put in a PR here: Allow overrides.json to override default shortcuts. by jasongrout · Pull Request #9858 · jupyterlab/jupyterlab · GitHub