Skip to content

Commit b71189d

Browse files
feat: rework buttplug-device-config-schema-v3 to support yaml-lsp
Mostly transcribed from BaseConfigFile in buttplug/src/util/device_configuration.rs Does **not** yet include `user-config`. Will be added as second commit later.
1 parent 36f7646 commit b71189d

2 files changed

Lines changed: 477 additions & 492 deletions

File tree

.vscode/settings.json

Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
11
{
2-
"rust-analyzer.diagnostics.disabled": [
3-
"macro-error"
4-
],
5-
"yaml.customTags": [
6-
"!Messages mapping",
7-
"!Commands mapping",
8-
"!Scalar sequence",
9-
"!Stop",
10-
"!FleshlightLaunchFW12Cmd mapping",
11-
"!Linear sequence",
12-
"!Write mapping",
13-
"!Subscribe mapping",
14-
"!Unsubscribe mapping",
15-
"!Notifications sequence",
16-
"!Reads sequence",
17-
"!Events mapping",
18-
"!Rotate sequence",
19-
"!Battery",
20-
"!RSSI",
21-
"!Vibrate sequence",
22-
"!Battery mapping"
23-
],
24-
"rust-analyzer.linkedProjects": [
25-
".\\buttplug\\Cargo.toml"
26-
],
27-
28-
}
2+
"rust-analyzer": {
3+
"diagnostics.disabled": [
4+
"macro-error"
5+
],
6+
"linkedProjects": [
7+
"./buttplug/Cargo.toml"
8+
],
9+
},
10+
"yaml": {
11+
"schemas": {
12+
"buttplug/buttplug-device-config/device-config-v3/buttplug-device-config-schema-v3.json": "buttplug/buttplug-device-config/device-config-v3/buttplug-device-config-v3.yml"
13+
},
14+
"customTags": [
15+
"!Messages mapping",
16+
"!Commands mapping",
17+
"!Scalar sequence",
18+
"!Stop",
19+
"!FleshlightLaunchFW12Cmd mapping",
20+
"!Linear sequence",
21+
"!Write mapping",
22+
"!Subscribe mapping",
23+
"!Unsubscribe mapping",
24+
"!Notifications sequence",
25+
"!Reads sequence",
26+
"!Events mapping",
27+
"!Rotate sequence",
28+
"!Battery",
29+
"!RSSI",
30+
"!Vibrate sequence",
31+
"!Battery mapping"
32+
],
33+
},
34+
}

0 commit comments

Comments
 (0)