Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map<K,V> with escaped key not works properly in application.yml #1243

Closed
musashi-miyamoto opened this issue Apr 28, 2024 · 1 comment
Closed
Assignees
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: property-editing-support type: bug

Comments

@musashi-miyamoto
Copy link

Describe the bug
If map key is escaped string (like [/**]), VSCode YAML code completion not works properly.

To Reproduce

  • Windows 11 23H2 (Build 22631.3447)
  • OpenJDK 21.0.2
  • Spring Boot v3.2.5
  • VSCode v1.88.1
    • Language Support for Java(TM) by Red Hat 1.30.0
    • Spring Boot Tools v1.53.0

Sample configuratin class:

@ConfigurationProperties(prefix = "demo")
public class RootConfig {
    private Map<String, ChildConfig> pathMap;
    // Getters and Setters...
}

public class ChildConfig {
    private String host;
    private int port;
    // Getters and Setters...
}

Key without escape works properly:
image

Key with escape provides no completion:
image

Requires one extra deeper indentation:
image

Completion provides no host, used in previous key:
image

Sample

https://github.com/musashi-miyamoto/sts4-configuration-issue-reproduce-sample

@BoykoAlex
Copy link
Contributor

Fixed with 212dacf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: property-editing-support type: bug
Projects
None yet
Development

No branches or pull requests

3 participants