Skip to content

Commit 1fabc08

Browse files
authored
Merge pull request #110 from kylebonnici/feat/indent-expressions
Feat/indent expressions
2 parents 223207f + f19499d commit 1fabc08

12 files changed

Lines changed: 956 additions & 75 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,26 @@ All notable changes to this project are documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7-
## [0.7.9] - Unreleased
7+
## [0.8.0] - 2026-02-04
88

99
### Added
1010

1111
- Completion snippets for child node relative to current parent.
12+
- Formatting of expressions will now indent to align with the group they are in example:
13+
14+
Was
15+
16+
```devicetree
17+
dmas = <&dma2 1 0 (STM32_DMA_MODE_NORMAL | STM32_DMA_PRIORITY_HIGH |
18+
STM32_DMA_16BITS) 0>;
19+
```
20+
21+
Now
22+
23+
```devicetree
24+
dmas = <&dma2 1 0 (STM32_DMA_MODE_NORMAL | STM32_DMA_PRIORITY_HIGH |
25+
STM32_DMA_16BITS) 0>;
26+
```
1227

1328
### Fixed
1429

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Devicetree Language Server",
44
"author": "Kyle Micallef Bonnici",
55
"license": "Apache-2.0",
6-
"version": "0.7.9",
6+
"version": "0.8.0",
77
"publisher": "KyleMicallefBonnici",
88
"repository": {
99
"type": "git",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "Microsoft Corporation",
66
"license": "Apache-2.0",
77
"icon": "images/icon.png",
8-
"version": "0.7.9",
8+
"version": "0.8.0",
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/kylebonnici/dts-lsp"

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "Kyle Micallef Bonnici",
55
"package-name": "devicetree-language-server",
66
"main": "dist/server.js",
7-
"version": "0.7.9",
7+
"version": "0.8.0",
88
"categories": [
99
"Linters",
1010
"Formatters",

server/src/ast/cPreprocessors/expression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class ComplexExpression extends Expression {
8686

8787
constructor(
8888
public readonly expression: Expression,
89-
private wrapped: boolean,
89+
readonly wrapped: boolean,
9090
join?: { operator: Operator; expression: Expression },
9191
) {
9292
super();

0 commit comments

Comments
 (0)