测试开发中的主题

Testing a theme in development

几个月前我创建了一个 VSCode 主题。 现在我想做一些修改,我想在发布之前测试它。

我不记得几天前我是怎么做到的,但是在 VSCode documentation 我读到我必须按 F5 才能启动扩展开发主机 window 然后 File > Preferences > Color Theme 和在下拉列表中选择我的主题。

我试过了。当我按 F5(Mac 上的 fn + F5)时,我得到 ,然后呢?我必须选择什么?


launch.json的位置是:

myTheme
|_ assets
|_ vscode
  |_ .vscode
    |_ launch.json
  |_ assets
  |_ themes
    |_ myTheme-color-theme.json

当我按 f5:

绿色三角形在哪里?

转到Run/Debug栏,打开launch.json并添加

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "extensionHost",
      "request": "launch",
      "name": "Launch Extension",
      "runtimeExecutable": "${execPath}",
      "args": [
        "--extensionDevelopmentPath=${workspaceFolder}"
      ]
    }
  ]
}