devicetree-language-server 0.0.9 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +23 -1
  2. package/dist/server.js +171 -153
  3. package/package.json +6 -2
package/README.md CHANGED
@@ -26,12 +26,16 @@ interface Context {
26
26
  overlays?: string[];
27
27
  bindingType?: BindingType;
28
28
  zephyrBindings?: string[];
29
+ deviceOrgTreeBindings?: string[];
30
+ deviceOrgBindingsMetaSchema?: string[];
29
31
  }
30
32
 
31
33
  interface Settings {
32
34
  cwd?: string;
33
35
  defaultBindingType?: BindingType;
34
36
  defaultZephyrBindings?: string[];
37
+ defaultDeviceOrgTreeBindings?: string[];
38
+ defaultDeviceOrgBindingsMetaSchema?: string[];
35
39
  defaultIncludePaths?: string[];
36
40
  contexts?: Context[];
37
41
  preferredContext?: string | number;
@@ -69,6 +73,25 @@ EOF
69
73
  }
70
74
  ```
71
75
 
76
+ ## Using Devicetree-Org bindings example settings
77
+
78
+ ```json
79
+ {
80
+ "devicetree": {
81
+ "cwd": "/Users/user/Workspace/linux/",
82
+ "defaultIncludePaths": ["include"],
83
+ "defaultBindingType": "DevicetreeOrg",
84
+ "defaultDeviceOrgBindingsMetaSchema": [
85
+ "/Users/user/Workspace/linuxBindings/dt-schema/dtschema/meta-schemas" // https://github.com/devicetree-org/dt-schema/tree/main/dtschema/meta-schemas
86
+ ],
87
+ "defaultDeviceOrgTreeBindings": [
88
+ "/Users/user/Workspace/linuxBindings/dt-schema/dtschema/schemas", // https://github.com/devicetree-org/dt-schema/tree/main/dtschema/schemas
89
+ "/Users/user/Workspace/linux/Documentation/devicetree/bindings" // https://github.com/torvalds/linux/tree/master/Documentation/devicetree/bindings
90
+ ]
91
+ }
92
+ }
93
+ ```
94
+
72
95
  ## Functionality
73
96
 
74
97
  Follows Devicetree Specification Release v0.4
@@ -188,6 +211,5 @@ Given that in some cases the files included in a devicetree might come from an S
188
211
  - Implement syntax for Ternary operator
189
212
  - Implement support #IF and #ELSEIF preprocessors
190
213
  - Implement "Device Node Requirements" (chapter 3 - Devicetree Specification Release v0.4)
191
- - Implement formating on commetent nodes
192
214
  - Write more unit tests
193
215
  - Let me know what you should be added or changed