Skip to content

Commit 2e23927

Browse files
authored
chore: prepare release 2.0.0-rc1 (#156)
1 parent a082c57 commit 2e23927

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

lsp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"@sap/cds-lsp": "8.9.0"
3+
"@sap/cds-lsp": "9.0.1"
44
}
55
}

src/main/java/com/sap/cap/cds/intellij/codestyle/CdsCodeStyleSettings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public class CdsCodeStyleSettings extends CdsCodeStyleSettingsBase {
111111
OPTIONS.put("alignTypes", new CdsCodeStyleOption("alignTypes", BOOLEAN, true, "Align types of elements", "Types of elements", ALIGNMENT, null, List.of("alignColonsBeforeTypes", "alignEqualsAfterTypes", "alignTypesWithinBlock", "alignCompositionStructToRight")));
112112
OPTIONS.put("alignTypesWithinBlock", new CdsCodeStyleOption("alignTypesWithinBlock", BOOLEAN, true, "Within block", "Types of elements", ALIGNMENT, "alignTypes", List.of()));
113113
OPTIONS.put("alignValuesInAnnotations", new CdsCodeStyleOption("alignValuesInAnnotations", BOOLEAN, true, "Values", "Annotations", ALIGNMENT, "alignAnnotations", List.of()));
114+
OPTIONS.put("boolOpsAtLineEnd", new CdsCodeStyleOption("boolOpsAtLineEnd", BOOLEAN, false, "Position 'and', 'or' operators at line end", "Other", OTHER, null, List.of()));
114115
OPTIONS.put("cqlKeywordCapitalization", new CdsCodeStyleOption("cqlKeywordCapitalization", ENUM, CqlKeywordCapitalization.LOWER.getId(), "Capitalization style of CQL keywords", "Other", OTHER, null, List.of(), CqlKeywordCapitalization.LOWER, CqlKeywordCapitalization.UPPER, CqlKeywordCapitalization.TITLE, CqlKeywordCapitalization.AS_IS));
115116
OPTIONS.put("finalNewline", new CdsCodeStyleOption("finalNewline", BOOLEAN, true, "Final newline", "Other", WRAPPING_AND_BRACES, null, List.of()));
116117
OPTIONS.put("formatDocComments", new CdsCodeStyleOption("formatDocComments", BOOLEAN, false, "Format markdown in doc comments", "Format markdown in doc comments", COMMENTS, null, List.of("maxDocCommentLine")));
@@ -168,6 +169,7 @@ public CdsCodeStyleSettings(CodeStyleSettings settings) {
168169
public boolean alignTypes = true;
169170
public boolean alignTypesWithinBlock = true;
170171
public boolean alignValuesInAnnotations = true;
172+
public boolean boolOpsAtLineEnd = false;
171173
public int cqlKeywordCapitalization = CqlKeywordCapitalization.LOWER.getId();
172174
public boolean finalNewline = true;
173175
public boolean formatDocComments = false;

src/main/resources/META-INF/plugin.xml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,30 @@ The set of features will grow with future releases, aligned with the development
108108
<change-notes><![CDATA[
109109
<h3>Changed</h3>
110110
<ul>
111-
<li>Suitable Node.js interpreter is now found at first plugin start</li>
112-
<li>Improved UX when setting Node.js interpreter path manually</li>
113-
</ul> ]]></change-notes>
111+
<li>Remove upper version limit for IDE platform</li>
112+
<li>include @sap/cds-lsp 9.0.1 with the following changes since 8.9.0:
113+
<ul>
114+
<li>Add support for Node.js 24</li>
115+
<li>Add formatting option `boolOpsAtLineEnd` to position `and`, `or` operators at line end</li>
116+
<li>Hovering over errors shows explanation for many error types</li>
117+
<li>Hovering over built-in types shows documentation</li>
118+
<li>Where-used functionality now based on new index</li>
119+
<li>More compact formatting of `case` statements</li>
120+
<li>Fix separate alignment of annotations to entity and select items</li>
121+
<li>Fix highlighting of parenthesized annotations with strings containing a colon</li>
122+
<li>Fix highlighting of comments in queries</li>
123+
<li>Fix formatting of annotations in parentheses with values containing spaces</li>
124+
</ul>
125+
</li>
126+
</ul>
127+
<h3>Fixed</h3>
128+
<ul>
129+
<li>via LSP4IJ 0.14.0:
130+
<ul>
131+
<li>Various bug fixes</li>
132+
<li>Performance and stability improvements</li>
133+
</ul>
134+
</li>
135+
</ul>
136+
]]></change-notes>
114137
</idea-plugin>

0 commit comments

Comments
 (0)