devicetree-language-server 0.1.2 → 0.2.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.
- package/README.md +3 -7
- package/dist/server.js +170 -146
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ interface Settings {
|
|
|
45
45
|
}
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
Sample configuration in for `kakoune` with `Zephyr` 3.7.99 or
|
|
48
|
+
Sample configuration in for `kakoune` with `Zephyr` 3.7.99 or later.
|
|
49
49
|
Contribution by [topisani](https://github.com/topisani)
|
|
50
50
|
|
|
51
51
|
```
|
|
@@ -166,7 +166,7 @@ Completions are context aware of the document state on the line the action is re
|
|
|
166
166
|
- On node name/label reference; will list all the places where the node is altered. /delete-node/ cases are not listed.
|
|
167
167
|
- On property name; will list all the places where the property is assigned a value. Note: defining a property name with no assign (empty) is equal to assigning a truthful value and hence it will also be shown.
|
|
168
168
|
|
|
169
|
-
NOTE: If for example a node with name node1 has been created, then deleted, and then created again, depending on where the definition call is made in the file, in one case one will get the definition from before the delete keyword, and in the other case the
|
|
169
|
+
NOTE: If for example a node with name node1 has been created, then deleted, and then created again, depending on where the definition call is made in the file, in one case one will get the definition from before the delete keyword, and in the other case the definition from under the delete keyword.
|
|
170
170
|
|
|
171
171
|
### Find Declarations
|
|
172
172
|
|
|
@@ -186,10 +186,6 @@ NOTE: The references will stop at the definition, hence, if for example a node w
|
|
|
186
186
|
|
|
187
187
|
- On hover over the node name, a tooltip will show the final state of that node. If bindings are used it will also include the description from the binding files.
|
|
188
188
|
|
|
189
|
-
### Limitations
|
|
190
|
-
|
|
191
|
-
Parsing will only look at the files the devicetree uses. C header files will not be parsed to keep parsing fast enough. Hence there is no check on whether a macro exists and therefore there is no type checking.
|
|
192
|
-
|
|
193
189
|
## Bindings
|
|
194
190
|
|
|
195
191
|
At the moment, this LSP only supports bindings for the Zephyr project. Feel free to contribute to this project or reach out to request other formats.
|
|
@@ -200,7 +196,7 @@ Refactoring is possible on the following elements:
|
|
|
200
196
|
|
|
201
197
|
- Node names
|
|
202
198
|
- Node labels
|
|
203
|
-
-
|
|
199
|
+
- Property names
|
|
204
200
|
|
|
205
201
|
Given that in some cases the files included in a devicetree might come from an SDK which should not be edited, one can configure "lockRenameEdits" in the settings to lock refactoring from being permitted on any elements which would otherwise effect edits to the files listed in "lockRenameEdits".
|
|
206
202
|
|