Skip to content

Commit f4e46c9

Browse files
CopilotApollon77
andauthored
Fix outdated jsonConfig schema URL in VSCode settings template (#1153)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
1 parent dd30207 commit f4e46c9

15 files changed

Lines changed: 37 additions & 37 deletions

File tree

docs/updates/20220827_jsonconfig_vscode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ If you want to have syntax help for JSON Config in VSCode, open `.vscode/setting
99
"admin/jsonCustom.json",
1010
"admin/jsonTab.json"
1111
],
12-
"url": "https://raw.githubusercontent.com/ioBroker/adapter-react-v5/main/schemas/jsonConfig.json"
12+
"url": "https://raw.githubusercontent.com/ioBroker/ioBroker.admin/master/packages/jsonConfig/schemas/jsonConfig.json"
1313
}
1414
```
1515

@@ -29,7 +29,7 @@ The file should look like this afterwards:
2929
"admin/jsonCustom.json",
3030
"admin/jsonTab.json"
3131
],
32-
"url": "https://raw.githubusercontent.com/ioBroker/adapter-react-v5/main/schemas/jsonConfig.json"
32+
"url": "https://raw.githubusercontent.com/ioBroker/ioBroker.admin/master/packages/jsonConfig/schemas/jsonConfig.json"
3333
}
3434
]
3535
}

templates/_vscode/settings.json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ${usePrettier ? (`
3535
"admin/jsonCustom.json",
3636
"admin/jsonTab.json"
3737
],
38-
"url": "https://raw.githubusercontent.com/ioBroker/adapter-react-v5/main/schemas/jsonConfig.json"
38+
"url": "https://raw.githubusercontent.com/ioBroker/ioBroker.admin/master/packages/jsonConfig/schemas/jsonConfig.json"
3939
}
4040
],
4141
}

test/baselines/TS_Prettier/.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
{
1717
"fileMatch": ["admin/jsonConfig.json", "admin/jsonCustom.json", "admin/jsonTab.json"],
18-
"url": "https://raw.githubusercontent.com/ioBroker/adapter-react-v5/main/schemas/jsonConfig.json"
18+
"url": "https://raw.githubusercontent.com/ioBroker/ioBroker.admin/master/packages/jsonConfig/schemas/jsonConfig.json"
1919
}
2020
]
2121
}

test/baselines/TS_SingleQuotes/src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ class TestAdapter extends utils.Adapter {
7373
await this.setStateAsync('testVariable', { val: true, ack: true, expire: 30 });
7474

7575
// examples for the checkPassword/checkGroup functions
76-
let result = await this.checkPasswordAsync('admin', 'iobroker');
77-
this.log.info('check user admin pw iobroker: ' + result);
76+
const pwdResult = await this.checkPasswordAsync('admin', 'iobroker');
77+
this.log.info('check user admin pw iobroker: ' + pwdResult);
7878

79-
result = await this.checkGroupAsync('admin', 'admin');
80-
this.log.info('check group user admin group admin: ' + result);
79+
const gropupResult = await this.checkGroupAsync('admin', 'admin');
80+
this.log.info('check group user admin group admin: ' + gropupResult);
8181
}
8282

8383
/**

test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"admin/jsonCustom.json",
1414
"admin/jsonTab.json"
1515
],
16-
"url": "https://raw.githubusercontent.com/ioBroker/adapter-react-v5/main/schemas/jsonConfig.json"
16+
"url": "https://raw.githubusercontent.com/ioBroker/ioBroker.admin/master/packages/jsonConfig/schemas/jsonConfig.json"
1717
}
1818
]
1919
}

test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ class TestAdapter extends utils.Adapter {
7878
await this.setStateAsync('testVariable', { val: true, ack: true, expire: 30 });
7979

8080
// examples for the checkPassword/checkGroup functions
81-
let result = await this.checkPasswordAsync('admin', 'iobroker');
82-
this.log.info('check user admin pw iobroker: ' + result);
81+
const pwdResult = await this.checkPasswordAsync('admin', 'iobroker');
82+
this.log.info('check user admin pw iobroker: ' + pwdResult);
8383

84-
result = await this.checkGroupAsync('admin', 'admin');
85-
this.log.info('check group user admin group admin: ' + result);
84+
const gropupResult = await this.checkGroupAsync('admin', 'admin');
85+
this.log.info('check group user admin group admin: ' + gropupResult);
8686
}
8787

8888
/**

test/baselines/adapter_JS_React/.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"admin/jsonCustom.json",
1414
"admin/jsonTab.json"
1515
],
16-
"url": "https://raw.githubusercontent.com/ioBroker/adapter-react-v5/main/schemas/jsonConfig.json"
16+
"url": "https://raw.githubusercontent.com/ioBroker/ioBroker.admin/master/packages/jsonConfig/schemas/jsonConfig.json"
1717
}
1818
]
1919
}

test/baselines/adapter_JS_React/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ class TestAdapter extends utils.Adapter {
7878
await this.setStateAsync("testVariable", { val: true, ack: true, expire: 30 });
7979

8080
// examples for the checkPassword/checkGroup functions
81-
let result = await this.checkPasswordAsync("admin", "iobroker");
82-
this.log.info("check user admin pw iobroker: " + result);
81+
const pwdResult = await this.checkPasswordAsync("admin", "iobroker");
82+
this.log.info("check user admin pw iobroker: " + pwdResult);
8383

84-
result = await this.checkGroupAsync("admin", "admin");
85-
this.log.info("check group user admin group admin: " + result);
84+
const gropupResult = await this.checkGroupAsync("admin", "admin");
85+
this.log.info("check group user admin group admin: " + gropupResult);
8686
}
8787

8888
/**

test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"admin/jsonCustom.json",
1515
"admin/jsonTab.json"
1616
],
17-
"url": "https://raw.githubusercontent.com/ioBroker/adapter-react-v5/main/schemas/jsonConfig.json"
17+
"url": "https://raw.githubusercontent.com/ioBroker/ioBroker.admin/master/packages/jsonConfig/schemas/jsonConfig.json"
1818
}
1919
]
2020
}

test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ class TestAdapter extends utils.Adapter {
7373
await this.setStateAsync("testVariable", { val: true, ack: true, expire: 30 });
7474

7575
// examples for the checkPassword/checkGroup functions
76-
let result = await this.checkPasswordAsync("admin", "iobroker");
77-
this.log.info("check user admin pw iobroker: " + result);
76+
const pwdResult = await this.checkPasswordAsync("admin", "iobroker");
77+
this.log.info("check user admin pw iobroker: " + pwdResult);
7878

79-
result = await this.checkGroupAsync("admin", "admin");
80-
this.log.info("check group user admin group admin: " + result);
79+
const gropupResult = await this.checkGroupAsync("admin", "admin");
80+
this.log.info("check group user admin group admin: " + gropupResult);
8181
}
8282

8383
/**

0 commit comments

Comments
 (0)