core icon indicating copy to clipboard operation
core copied to clipboard

[BUG] defaultPreferences 无法设置层级配置

Open hacke2 opened this issue 2 years ago • 1 comments

描述你的问题(Describe the bug)

clientApp 里传入 defaultPreferences 无法设置层级配置

复现路径(To Reproduce)

opts.defaultPreferences = {
    "aaa.bbb": {
      "ccc": "ddd",
    }
}

package.json:

{
  "publisher": "a",
  "name": "aaa",
  "main": ".",
  "engines": {
    "vscode": "^1.22.0"
  },
  "activationEvents": [
    "*"
  ],
  "contributes": {
    "configuration": {
      "type": "object",
      "title": "Test",
      "properties": {
        "aaa.bbb.ccc": {
          "type": [
              "null",
              "string"
          ],
          "default": null,
          "description": ""
        }
      }
    }
  }
}

插件读取

const vscode = require('vscode');

exports.activate = () => {
  vscode.window.showInformationMessage(JSON.stringify(vscode.workspace.getConfiguration('aaa')))
}

结果:

image

预期表现(Expected behavior)

之前是能读取到的

问题截图(Screenshots)

环境信息(Environment)

  • OS: [e.g. macOS 11.2 Apple M1/Windows10/Windows11]
  • Browser [e.g. chrome, safari]
  • OpenSumi Version [e.g. 2.13.0]

补充信息(Additional context)

hacke2 avatar Mar 31 '22 07:03 hacke2

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 12 '22 18:10 stale[bot]