VS Code - 配置属性 - 呈现顺序
VS Code - Configuration Properties - presentation order
从 ~ 3 年前开始关注 ,并链接 Github 问题似乎已经在 1.63 版本中解决并关闭,我无法获得我的 package.json
订单设置对显示的项目顺序产生任何影响(目前在 1.64.2 上)。这是我的文件:
{
"name": "taxi-for-email-validator",
"displayName": "Taxi for Email validator",
"description": "Validate Email Design System syntax",
"version": "0.0.1",
"publisher": "SparkPost",
"repository": {
"type": "git",
"url": "https://github.com/tuck1s/taxitest.git"
},
"icon": "images/taxiforemail-white-on-blue.png",
"engines": {
"vscode": "^1.64.0"
},
"categories": [
"Linters"
],
"activationEvents": [
"onCommand:taxitest.validateEDS"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "taxitest.validateEDS",
"title": "Taxi for Email - validate Email Design System syntax"
}
],
"configuration": [
{
"type": "object",
"title": "Taxi for Email",
"properties": {
"taxi.uri": {
"order": 1,
"type": "string",
"format": "uri",
"default": "https://myaccount.emailcms.net",
"description": "Enter your account URI including your account subdomain. You can find this in the browser address bar when you are logged in to your account."
},
"taxi.apiKey": {
"order": 2,
"type": "string",
"default": "abcdef",
"minLength": "1",
"description": "Enter an API Key from your account. When you are logged in to your account, create a key under Integrations / API Keys / Add new. Record this value safely."
},
"taxi.keyId": {
"order": 3,
"type": "string",
"default": "ID_xyzzyabcd",
"minLength": "1",
"description": "Enter an API Key ID from your account. This is visible as you add a new key. Existing key IDs can be seen under Integrations / API Keys / Edit API Key."
},
"taxi.showSummary": {
"order": 4,
"type": "boolean",
"default": false,
"description": "Enables informational output of lines checked, errors, warnings, and run time"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@types/vscode": "^1.63.0",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"@vscode/test-electron": "^2.0.3",
"eslint": "^8.6.0",
"glob": "^7.2.0",
"mocha": "^9.1.3",
"typescript": "^4.5.4"
},
"dependencies": {
"axios": "^0.25.0",
"form-data": "^4.0.0"
}
}
它仍然按字母顺序显示 - 见下文。
我究竟做错了什么?我想我正在遵循 here.
给出的指导
有没有人有我可以比较的已知商品package.json
使用顺序?
从 ~ 3 年前开始关注 package.json
订单设置对显示的项目顺序产生任何影响(目前在 1.64.2 上)。这是我的文件:
{
"name": "taxi-for-email-validator",
"displayName": "Taxi for Email validator",
"description": "Validate Email Design System syntax",
"version": "0.0.1",
"publisher": "SparkPost",
"repository": {
"type": "git",
"url": "https://github.com/tuck1s/taxitest.git"
},
"icon": "images/taxiforemail-white-on-blue.png",
"engines": {
"vscode": "^1.64.0"
},
"categories": [
"Linters"
],
"activationEvents": [
"onCommand:taxitest.validateEDS"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "taxitest.validateEDS",
"title": "Taxi for Email - validate Email Design System syntax"
}
],
"configuration": [
{
"type": "object",
"title": "Taxi for Email",
"properties": {
"taxi.uri": {
"order": 1,
"type": "string",
"format": "uri",
"default": "https://myaccount.emailcms.net",
"description": "Enter your account URI including your account subdomain. You can find this in the browser address bar when you are logged in to your account."
},
"taxi.apiKey": {
"order": 2,
"type": "string",
"default": "abcdef",
"minLength": "1",
"description": "Enter an API Key from your account. When you are logged in to your account, create a key under Integrations / API Keys / Add new. Record this value safely."
},
"taxi.keyId": {
"order": 3,
"type": "string",
"default": "ID_xyzzyabcd",
"minLength": "1",
"description": "Enter an API Key ID from your account. This is visible as you add a new key. Existing key IDs can be seen under Integrations / API Keys / Edit API Key."
},
"taxi.showSummary": {
"order": 4,
"type": "boolean",
"default": false,
"description": "Enables informational output of lines checked, errors, warnings, and run time"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@types/vscode": "^1.63.0",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"@vscode/test-electron": "^2.0.3",
"eslint": "^8.6.0",
"glob": "^7.2.0",
"mocha": "^9.1.3",
"typescript": "^4.5.4"
},
"dependencies": {
"axios": "^0.25.0",
"form-data": "^4.0.0"
}
}
它仍然按字母顺序显示 - 见下文。
有没有人有我可以比较的已知商品package.json
使用顺序?