devicetree-language-server 0.0.9 → 0.1.0

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 +21 -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,23 @@ EOF
69
73
  }
70
74
  ```
71
75
 
76
+ ## Using Devicetree-Org bindings example
77
+
78
+ ```json
79
+ {
80
+ "devicetree.cwd": "/Users/user/Workspace/linux/",
81
+ "devicetree.defaultIncludePaths": ["include"],
82
+ "devicetree.defaultBindingType": "DevicetreeOrg",
83
+ "devicetree.defaultDeviceOrgBindingsMetaSchema": [
84
+ "/Users/user/Workspace/linuxBindings/dt-schema/dtschema/meta-schemas" // https://github.com/devicetree-org/dt-schema/tree/main/dtschema/meta-schemas
85
+ ],
86
+ "devicetree.defaultDeviceOrgTreeBindings": [
87
+ "/Users/user/Workspace/linuxBindings/dt-schema/dtschema/schemas", // https://github.com/devicetree-org/dt-schema/tree/main/dtschema/schemas
88
+ "/Users/user/Workspace/linux/Documentation/devicetree/bindings" // https://github.com/torvalds/linux/tree/master/Documentation/devicetree/bindings
89
+ ]
90
+ }
91
+ ```
92
+
72
93
  ## Functionality
73
94
 
74
95
  Follows Devicetree Specification Release v0.4
@@ -188,6 +209,5 @@ Given that in some cases the files included in a devicetree might come from an S
188
209
  - Implement syntax for Ternary operator
189
210
  - Implement support #IF and #ELSEIF preprocessors
190
211
  - Implement "Device Node Requirements" (chapter 3 - Devicetree Specification Release v0.4)
191
- - Implement formating on commetent nodes
192
212
  - Write more unit tests
193
213
  - Let me know what you should be added or changed