Skip to content

Commit b85adb5

Browse files
committed
Show default value in completion item
Signed-off-by: azerr <[email protected]>
1 parent 78ab100 commit b85adb5

File tree

4 files changed

+116
-69
lines changed

4 files changed

+116
-69
lines changed

microprofile.ls/org.eclipse.lsp4mp.ls/src/main/java/org/eclipse/lsp4mp/services/properties/PropertiesFileCompletions.java

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ public CompletionList doComplete(PropertiesModel document, Position position, Mi
163163
public CompletionItem resolveCompletionItem(CompletionItem unresolved, MicroProfileProjectInfo projectInfo,
164164
MicroProfileCompletionCapabilities completionCapabilities, CancelChecker cancelChecker) {
165165
String propertyName = unresolved.getLabel();
166+
int index = propertyName.indexOf(" =" );
167+
if (index != -1) {
168+
propertyName = propertyName.substring(0, index);
169+
}
166170
boolean markdownSupported = completionCapabilities.isDocumentationFormatSupported(MarkupKind.MARKDOWN);
167171
ItemMetadata property = PropertiesFileUtils.getProperty(propertyName, projectInfo);
168172
if (property == null) {
@@ -235,17 +239,17 @@ private static void collectPropertyKeySuggestions(int offset, Node node, Propert
235239
continue;
236240
}
237241

238-
String name = property.getName();
239-
CompletionItem item = new CompletionItem(name);
240-
item.setKind(CompletionItemKind.Property);
241-
242242
String defaultValue = null;
243243
if (propertyValue == null || propertyValue.isEmpty()) {
244244
defaultValue = property.getDefaultValue();
245245
} else {
246246
defaultValue = propertyValue;
247247
}
248248

249+
String name = property.getName();
250+
CompletionItem item = new CompletionItem(getKeyLabel(name, defaultValue));
251+
item.setKind(CompletionItemKind.Property);
252+
249253
Collection<ValueHint> enums = PropertiesFileUtils.getEnums(property, projectInfo);
250254

251255
StringBuilder insertText = new StringBuilder();
@@ -305,6 +309,20 @@ private static void collectPropertyKeySuggestions(int offset, Node node, Propert
305309
}
306310
}
307311

312+
private static String getKeyLabel(String name, String defaultValue) {
313+
if (name.endsWith("[*]")) {
314+
// No need to show [*] when property ends with [*]
315+
name = name.substring(0, name.length() - 3);
316+
}
317+
if (StringUtils.isEmpty(defaultValue)) {
318+
return name;
319+
}
320+
return new StringBuilder(name) //
321+
.append(" = ") //
322+
.append(defaultValue) //
323+
.toString();
324+
}
325+
308326
/**
309327
* Collect Quarkus profiles
310328
*

microprofile.ls/org.eclipse.lsp4mp.ls/src/test/java/org/eclipse/lsp4mp/extensions/reactivemessaging/MicroProfileReactiveMessagingCompletionTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void dynamic() throws BadLocationException {
4646
c("mp.messaging.outgoing.generated-price.connector",
4747
"mp.messaging.outgoing.generated-price.connector=${1|smallrye-kafka,smallrye-amqp|}",
4848
r(0, 0, 0)), //
49-
c("mp.messaging.emitter.default-buffer-size", "mp.messaging.emitter.default-buffer-size=${0:128}",
49+
c("mp.messaging.emitter.default-buffer-size = 128", "mp.messaging.emitter.default-buffer-size=${0:128}",
5050
r(0, 0, 0)) //
5151
);
5252

@@ -59,10 +59,10 @@ public void dynamic() throws BadLocationException {
5959
c("mp.messaging.outgoing.generated-price.connector",
6060
"mp.messaging.outgoing.generated-price.connector=${1|smallrye-kafka,smallrye-amqp|}",
6161
r(1, 0, 0)), //
62-
c("mp.messaging.emitter.default-buffer-size", "mp.messaging.emitter.default-buffer-size=${0:128}",
62+
c("mp.messaging.emitter.default-buffer-size = 128", "mp.messaging.emitter.default-buffer-size=${0:128}",
6363
r(1, 0, 0)), //
6464
c("mp.messaging.incoming.prices.topic", "mp.messaging.incoming.prices.topic=$0", r(1, 0, 0)), //
65-
c("mp.messaging.incoming.prices.bootstrap.servers",
65+
c("mp.messaging.incoming.prices.bootstrap.servers = localhost:9092",
6666
"mp.messaging.incoming.prices.bootstrap.servers=${0:localhost:9092}", r(1, 0, 0)));
6767
}
6868

@@ -79,7 +79,7 @@ public void noExistChannel() throws BadLocationException {
7979
c("mp.messaging.outgoing.generated-price.connector",
8080
"mp.messaging.outgoing.generated-price.connector=${1|smallrye-kafka,smallrye-amqp|}",
8181
r(1, 0, 0)), //
82-
c("mp.messaging.emitter.default-buffer-size", "mp.messaging.emitter.default-buffer-size=${0:128}",
82+
c("mp.messaging.emitter.default-buffer-size = 128", "mp.messaging.emitter.default-buffer-size=${0:128}",
8383
r(1, 0, 0)));
8484
}
8585

microprofile.ls/org.eclipse.lsp4mp.ls/src/test/java/org/eclipse/lsp4mp/extensions/sysenv/SysEnvCompletionTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ public class SysEnvCompletionTest {
3939
@Test
4040
public void systemPropertiesInKey() throws BadLocationException {
4141
String value = "|";
42-
testCompletionFor(value, true,
43-
c("user.name", "user.name=${0:" + System.getProperty("user.name") + "}", r(0, 0, 0)));
42+
String userName = System.getProperty("user.name");
43+
testCompletionFor(value, true, //
44+
c("user.name = " + userName, "user.name=${0:" + userName + "}", r(0, 0, 0)));
4445
}
4546

4647
@Test
@@ -52,7 +53,9 @@ public void systemPropertiesInExpression() throws BadLocationException {
5253
@Test
5354
public void environmentVariablesInKey() throws BadLocationException {
5455
String value = "|";
55-
testCompletionFor(value, true, c(PATH_ENV, PATH_ENV + "=${0:" + System.getenv("PATH") + "}", r(0, 0, 0)));
56+
String envPath = System.getenv("PATH");
57+
testCompletionFor(value, true, //
58+
c(PATH_ENV + " = " + envPath, PATH_ENV + "=${0:" + envPath + "}", r(0, 0, 0)));
5659
}
5760

5861
@Test

microprofile.ls/org.eclipse.lsp4mp.ls/src/test/java/org/eclipse/lsp4mp/services/properties/PropertiesFileCompletionTest.java

Lines changed: 84 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,22 @@ public void completionOnComments() throws BadLocationException {
4444
@Test
4545
public void completionOnKey() throws BadLocationException {
4646
String value = "|";
47-
testCompletionFor(value, false, c("quarkus.http.cors", "quarkus.http.cors=false", r(0, 0, 0)));
48-
testCompletionFor(value, true, c("quarkus.http.cors", "quarkus.http.cors=${1|false,true|}", r(0, 0, 0)));
47+
testCompletionFor(value, false, //
48+
c("quarkus.http.cors = false", "quarkus.http.cors=false", r(0, 0, 0)));
49+
testCompletionFor(value, true, //
50+
c("quarkus.http.cors = false", "quarkus.http.cors=${1|false,true|}", r(0, 0, 0)));
4951

5052
value = " |";
51-
testCompletionFor(value, false, c("quarkus.http.cors", "quarkus.http.cors=false", r(0, 0, 1)));
52-
testCompletionFor(value, true, c("quarkus.http.cors", "quarkus.http.cors=${1|false,true|}", r(0, 0, 1)));
53+
testCompletionFor(value, false, //
54+
c("quarkus.http.cors = false", "quarkus.http.cors=false", r(0, 0, 1)));
55+
testCompletionFor(value, true, //
56+
c("quarkus.http.cors = false", "quarkus.http.cors=${1|false,true|}", r(0, 0, 1)));
5357

5458
value = " quarkus.http.co|rs = ";
55-
testCompletionFor(value, false, c("quarkus.http.cors", "quarkus.http.cors=false", r(0, 0, 21)));
56-
testCompletionFor(value, true, c("quarkus.http.cors", "quarkus.http.cors=${1|false,true|}", r(0, 0, 21)));
59+
testCompletionFor(value, false, //
60+
c("quarkus.http.cors = false", "quarkus.http.cors=false", r(0, 0, 21)));
61+
testCompletionFor(value, true, //
62+
c("quarkus.http.cors = false", "quarkus.http.cors=${1|false,true|}", r(0, 0, 21)));
5763

5864
value = " quarkus.application.name =| ";
5965
testCompletionFor(value, true, 0);
@@ -62,19 +68,22 @@ public void completionOnKey() throws BadLocationException {
6268
@Test
6369
public void completionOnKeyItemDefaults() throws BadLocationException {
6470
String value = "|";
65-
testCompletionFor(value, false, false, true, c("quarkus.http.cors", "quarkus.http.cors=false", r(0, 0, 0)));
71+
testCompletionFor(value, false, false, true,
72+
c("quarkus.http.cors = false", "quarkus.http.cors=false", r(0, 0, 0)));
6673
testCompletionFor(value, true, false, true,
67-
c("quarkus.http.cors", "quarkus.http.cors=${1|false,true|}", r(0, 0, 0)));
74+
c("quarkus.http.cors = false", "quarkus.http.cors=${1|false,true|}", r(0, 0, 0)));
6875

6976
value = " |";
70-
testCompletionFor(value, false, false, true, c("quarkus.http.cors", "quarkus.http.cors=false", r(0, 0, 1)));
77+
testCompletionFor(value, false, false, true,
78+
c("quarkus.http.cors = false", "quarkus.http.cors=false", r(0, 0, 1)));
7179
testCompletionFor(value, true, false, true,
72-
c("quarkus.http.cors", "quarkus.http.cors=${1|false,true|}", r(0, 0, 1)));
80+
c("quarkus.http.cors = false", "quarkus.http.cors=${1|false,true|}", r(0, 0, 1)));
7381

7482
value = " quarkus.http.co|rs = ";
75-
testCompletionFor(value, false, false, true, c("quarkus.http.cors", "quarkus.http.cors=false", r(0, 0, 21)));
83+
testCompletionFor(value, false, false, true,
84+
c("quarkus.http.cors = false", "quarkus.http.cors=false", r(0, 0, 21)));
7685
testCompletionFor(value, true, false, true,
77-
c("quarkus.http.cors", "quarkus.http.cors=${1|false,true|}", r(0, 0, 21)));
86+
c("quarkus.http.cors = false", "quarkus.http.cors=${1|false,true|}", r(0, 0, 21)));
7887

7988
value = " quarkus.application.name =| ";
8089
testCompletionFor(value, true, false, true, 0);
@@ -83,21 +92,23 @@ public void completionOnKeyItemDefaults() throws BadLocationException {
8392
@Test
8493
public void completionOnKeyMap() throws BadLocationException {
8594
String value = "quarkus.log.category|";
86-
testCompletionFor(value, false,
87-
c("quarkus.log.category.{*}.level", "quarkus.log.category.{*}.level=inherit", r(0, 0, 20)));
88-
testCompletionFor(value, true, c("quarkus.log.category.{*}.level",
89-
"quarkus.log.category.${1:key}.level=${2|OFF,SEVERE,WARNING,CONFIG,FINE,FINER,FINEST,ALL,FATAL,ERROR,WARN,INFO,DEBUG,TRACE|}",
90-
r(0, 0, 20)));
95+
testCompletionFor(value, false, //
96+
c("quarkus.log.category.{*}.level = inherit", "quarkus.log.category.{*}.level=inherit", r(0, 0, 20)));
97+
testCompletionFor(value, true, //
98+
c("quarkus.log.category.{*}.level = inherit",
99+
"quarkus.log.category.${1:key}.level=${2|OFF,SEVERE,WARNING,CONFIG,FINE,FINER,FINEST,ALL,FATAL,ERROR,WARN,INFO,DEBUG,TRACE|}",
100+
r(0, 0, 20)));
91101
}
92102

93103
@Test
94104
public void completionOnKeyMapItemDefaults() throws BadLocationException {
95105
String value = "quarkus.log.category|";
96-
testCompletionFor(value, false, false, true,
97-
c("quarkus.log.category.{*}.level", "quarkus.log.category.{*}.level=inherit", r(0, 0, 20)));
98-
testCompletionFor(value, true, false, true, c("quarkus.log.category.{*}.level",
99-
"quarkus.log.category.${1:key}.level=${2|OFF,SEVERE,WARNING,CONFIG,FINE,FINER,FINEST,ALL,FATAL,ERROR,WARN,INFO,DEBUG,TRACE|}",
100-
r(0, 0, 20)));
106+
testCompletionFor(value, false, false, true, //
107+
c("quarkus.log.category.{*}.level = inherit", "quarkus.log.category.{*}.level=inherit", r(0, 0, 20)));
108+
testCompletionFor(value, true, false, true, //
109+
c("quarkus.log.category.{*}.level = inherit",
110+
"quarkus.log.category.${1:key}.level=${2|OFF,SEVERE,WARNING,CONFIG,FINE,FINER,FINEST,ALL,FATAL,ERROR,WARN,INFO,DEBUG,TRACE|}",
111+
r(0, 0, 20)));
101112
}
102113

103114
@Test
@@ -106,8 +117,8 @@ public void completionOnEmptyLine() throws BadLocationException {
106117
"|\r\n" + //
107118
"quarkus.application.version= ";
108119
testCompletionFor(value, false,
109-
c("quarkus.log.category.{*}.level", "quarkus.log.category.{*}.level=inherit", r(1, 0, 0)));
110-
testCompletionFor(value, true, c("quarkus.log.category.{*}.level",
120+
c("quarkus.log.category.{*}.level = inherit", "quarkus.log.category.{*}.level=inherit", r(1, 0, 0)));
121+
testCompletionFor(value, true, c("quarkus.log.category.{*}.level = inherit",
111122
"quarkus.log.category.${1:key}.level=${2|OFF,SEVERE,WARNING,CONFIG,FINE,FINER,FINEST,ALL,FATAL,ERROR,WARN,INFO,DEBUG,TRACE|}",
112123
r(1, 0, 0)));
113124
}
@@ -152,16 +163,19 @@ public void completionOnValueBetweenPropertyValue() throws BadLocationException
152163
public void completionOnKeyWithEnums() throws BadLocationException {
153164
String value = "|";
154165
// OverflowAction enum type
155-
testCompletionFor(value, false,
156-
c("quarkus.log.console.async.overflow", "quarkus.log.console.async.overflow=block", r(0, 0, 0)));
157-
testCompletionFor(value, true, c("quarkus.log.console.async.overflow",
158-
"quarkus.log.console.async.overflow=${1|block,discard|}", r(0, 0, 0)));
166+
testCompletionFor(value, false, //
167+
c("quarkus.log.console.async.overflow = block", "quarkus.log.console.async.overflow=block",
168+
r(0, 0, 0)));
169+
testCompletionFor(value, true, //
170+
c("quarkus.log.console.async.overflow = block",
171+
"quarkus.log.console.async.overflow=${1|block,discard|}", r(0, 0, 0)));
159172

160173
// Boolean type
161-
testCompletionFor(value, false,
174+
testCompletionFor(value, false, //
162175
c("quarkus.datasource.enable-metrics", "quarkus.datasource.enable-metrics=false", r(0, 0, 0)));
163-
testCompletionFor(value, true, c("quarkus.datasource.enable-metrics",
164-
"quarkus.datasource.enable-metrics=${1|false,true|}", r(0, 0, 0)));
176+
testCompletionFor(value, true, //
177+
c("quarkus.datasource.enable-metrics", "quarkus.datasource.enable-metrics=${1|false,true|}",
178+
r(0, 0, 0)));
165179
}
166180

167181
@Test
@@ -237,17 +251,19 @@ public void completionOnProfileWithPropertyName() throws BadLocationException {
237251
@Test
238252
public void completionAfterProfile() throws BadLocationException {
239253
String value = "%dev.|";
240-
testCompletionFor(value, false, c("quarkus.http.cors", "%dev.quarkus.http.cors=false", r(0, 0, 5)));
241-
testCompletionFor(value, true, c("quarkus.http.cors", "%dev.quarkus.http.cors=${1|false,true|}", r(0, 0, 5)));
254+
testCompletionFor(value, false, //
255+
c("quarkus.http.cors = false", "%dev.quarkus.http.cors=false", r(0, 0, 5)));
256+
testCompletionFor(value, true, //
257+
c("quarkus.http.cors = false", "%dev.quarkus.http.cors=${1|false,true|}", r(0, 0, 5)));
242258
}
243259

244260
@Test
245261
public void completionAfterProfileItemDefaults() throws BadLocationException {
246262
String value = "%dev.|";
247263
testCompletionFor(value, false, false, true,
248-
c("quarkus.http.cors", "%dev.quarkus.http.cors=false", r(0, 0, 5)));
264+
c("quarkus.http.cors = false", "%dev.quarkus.http.cors=false", r(0, 0, 5)));
249265
testCompletionFor(value, true, false, true,
250-
c("quarkus.http.cors", "%dev.quarkus.http.cors=${1|false,true|}", r(0, 0, 5)));
266+
c("quarkus.http.cors = false", "%dev.quarkus.http.cors=${1|false,true|}", r(0, 0, 5)));
251267
}
252268

253269
@Test
@@ -364,9 +380,10 @@ public void completionOnValueForLevelBasedOnRuleWithNewline() throws BadLocation
364380
@Test
365381
public void completionSpacingSurroundingEquals() throws BadLocationException {
366382
String value = "|";
367-
testCompletionFor(value, false, true, c("quarkus.http.cors", "quarkus.http.cors = false", r(0, 0, 0)));
383+
testCompletionFor(value, false, true, //
384+
c("quarkus.http.cors = false", "quarkus.http.cors = false", r(0, 0, 0)));
368385
testCompletionFor(value, true, true,
369-
c("quarkus.http.cors", "quarkus.http.cors = ${1|false,true|}", r(0, 0, 0)));
386+
c("quarkus.http.cors = false", "quarkus.http.cors = ${1|false,true|}", r(0, 0, 0)));
370387
}
371388

372389
@Test
@@ -378,8 +395,10 @@ public void completionDefaultValueContainsDollarSign() throws BadLocationExcepti
378395
projectInfo.setProperties(Collections.singletonList(metadata));
379396

380397
String value = "|";
381-
testCompletionFor(value, true, 1, projectInfo, c("price.string", "price.string=${0:Price: \\$10}", r(0, 0, 0)));
382-
testCompletionFor(value, false, 1, projectInfo, c("price.string", "price.string=Price: $10", r(0, 0, 0)));
398+
testCompletionFor(value, true, 1, projectInfo, //
399+
c("price.string = Price: $10", "price.string=${0:Price: \\$10}", r(0, 0, 0)));
400+
testCompletionFor(value, false, 1, projectInfo, //
401+
c("price.string = Price: $10", "price.string=Price: $10", r(0, 0, 0)));
383402
}
384403

385404
@Test
@@ -391,9 +410,10 @@ public void completionDefaultValueContainsBraces() throws BadLocationException {
391410
projectInfo.setProperties(Collections.singletonList(metadata));
392411

393412
String value = "|";
394-
testCompletionFor(value, true, 1, projectInfo,
395-
c("price.string", "price.string=${0:Price: {10\\}}", r(0, 0, 0)));
396-
testCompletionFor(value, false, 1, projectInfo, c("price.string", "price.string=Price: {10}", r(0, 0, 0)));
413+
testCompletionFor(value, true, 1, projectInfo, //
414+
c("price.string = Price: {10}", "price.string=${0:Price: {10\\}}", r(0, 0, 0)));
415+
testCompletionFor(value, false, 1, projectInfo, //
416+
c("price.string = Price: {10}", "price.string=Price: {10}", r(0, 0, 0)));
397417
}
398418

399419
@Test
@@ -405,9 +425,10 @@ public void completionDefaultValueContainsDollarSignAndBraces() throws BadLocati
405425
projectInfo.setProperties(Collections.singletonList(metadata));
406426

407427
String value = "|";
408-
testCompletionFor(value, true, 1, projectInfo,
409-
c("price.string", "price.string=${0:Price: \\${price\\}}", r(0, 0, 0)));
410-
testCompletionFor(value, false, 1, projectInfo, c("price.string", "price.string=Price: ${price}", r(0, 0, 0)));
428+
testCompletionFor(value, true, 1, projectInfo, //
429+
c("price.string = Price: ${price}", "price.string=${0:Price: \\${price\\}}", r(0, 0, 0)));
430+
testCompletionFor(value, false, 1, projectInfo, //
431+
c("price.string = Price: ${price}", "price.string=Price: ${price}", r(0, 0, 0)));
411432
}
412433

413434
@Test
@@ -426,14 +447,14 @@ public void completionBetweenIncompletePropertyNameAndEquals() throws BadLocatio
426447
public void completionBetweenPropertyNameAndEqualsWithValue() throws BadLocationException {
427448
String value = "quarkus.http.cors|=existing";
428449
testCompletionFor(value, false,
429-
c("quarkus.http.cors.headers", "quarkus.http.cors.headers=existing", r(0, 0, 26)));
450+
c("quarkus.http.cors.headers = existing", "quarkus.http.cors.headers=existing", r(0, 0, 26)));
430451
}
431452

432453
@Test
433454
public void completionBetweenPropertyNameAndSpaceWithValue() throws BadLocationException {
434455
String value = "quarkus.http.cors| =existing";
435456
testCompletionFor(value, false,
436-
c("quarkus.http.cors.headers", "quarkus.http.cors.headers=existing", r(0, 0, 27)));
457+
c("quarkus.http.cors.headers = existing", "quarkus.http.cors.headers=existing", r(0, 0, 27)));
437458
}
438459

439460
@Test
@@ -445,9 +466,10 @@ public void completionAfterJustEquals() throws BadLocationException {
445466
@Test
446467
public void completionBetweenPropertyNameAndSpaceWithBooleanValue() throws BadLocationException {
447468
String value = "quarkus.banner.en|=existing";
448-
testCompletionFor(value, false, c("quarkus.banner.enabled", "quarkus.banner.enabled=existing", r(0, 0, 26)));
469+
testCompletionFor(value, false,
470+
c("quarkus.banner.enabled = existing", "quarkus.banner.enabled=existing", r(0, 0, 26)));
449471
testCompletionFor(value, true,
450-
c("quarkus.banner.enabled", "quarkus.banner.enabled=${1|false,true|}", r(0, 0, 26)));
472+
c("quarkus.banner.enabled = existing", "quarkus.banner.enabled=${1|false,true|}", r(0, 0, 26)));
451473
}
452474

453475
@Test
@@ -459,18 +481,22 @@ public void completionOnKeyResolve() throws BadLocationException {
459481
"Phase: runtime" + System.lineSeparator() + //
460482
"Extension: quarkus-vertx-http";
461483
String value = "|";
462-
testCompletionItemResolveFor(value,
463-
c("quarkus.http.cors", "quarkus.http.cors=false", r(0, 0, 0), expectedDocumentation));
464-
testCompletionItemUnresolvedFor(value, c("quarkus.http.cors", "quarkus.http.cors=false", r(0, 0, 0)));
484+
testCompletionItemResolveFor(value, //
485+
c("quarkus.http.cors = false", "quarkus.http.cors=false", r(0, 0, 0), expectedDocumentation));
486+
testCompletionItemUnresolvedFor(value, //
487+
c("quarkus.http.cors = false", "quarkus.http.cors=false", r(0, 0, 0)));
488+
465489
value = " |";
466-
testCompletionItemResolveFor(value,
467-
c("quarkus.http.cors", "quarkus.http.cors=false", r(0, 0, 1), expectedDocumentation));
468-
testCompletionItemUnresolvedFor(value, c("quarkus.http.cors", "quarkus.http.cors=false", r(0, 0, 1)));
490+
testCompletionItemResolveFor(value, //
491+
c("quarkus.http.cors = false", "quarkus.http.cors=false", r(0, 0, 1), expectedDocumentation));
492+
testCompletionItemUnresolvedFor(value, //
493+
c("quarkus.http.cors = false", "quarkus.http.cors=false", r(0, 0, 1)));
469494

470495
value = " quarkus.http.co|rs = ";
471-
testCompletionItemResolveFor(value,
472-
c("quarkus.http.cors", "quarkus.http.cors=false", r(0, 0, 21), expectedDocumentation));
473-
testCompletionItemUnresolvedFor(value, c("quarkus.http.cors", "quarkus.http.cors=false", r(0, 0, 21)));
496+
testCompletionItemResolveFor(value, //
497+
c("quarkus.http.cors = false", "quarkus.http.cors=false", r(0, 0, 21), expectedDocumentation));
498+
testCompletionItemUnresolvedFor(value, //
499+
c("quarkus.http.cors = false", "quarkus.http.cors=false", r(0, 0, 21)));
474500
}
475501

476502
}

0 commit comments

Comments
 (0)