Skip to content

In VS Code, right-clicking a .properties file and selecting "Convert .properties to .yaml" does nothing #1478

@GrahamHannington

Description

@GrahamHannington

Any idea why?

With apologies if I should be reporting this (that is, asking for help) somewhere else (please let me know).

Environment

  • Microsoft Visual Studio Code (VS Code) 1.96.4 on Windows 10
  • Relevant VS Code extensions (and their versions):
    • Language Support for Java by Red Hat (1.39.0)
    • Spring Boot Tools (1.60.0)
  • VS Code shows language mode "Spring Boot Properties" when I'm editing a .properties file

exthost.log extract

2025-02-19 10:16:42.263 [warning] [redhat.java] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[java]', provide the URI of a resource or 'null' for any resource.
2025-02-19 10:16:43.291 [info] ExtensionService#_doActivateExtension vmware.vscode-spring-boot, startup: false, activationEvent: 'onLanguage:spring-boot-properties'
2025-02-19 10:16:46.022 [warning] [redhat.java] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[java]', provide the URI of a resource or 'null' for any resource.
2025-02-19 10:16:49.690 [error] Error: command 'sts/boot/props-to-yaml' not found
    at O9e.n (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1315:1341)
    at O9e.executeCommand (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1315:1273) vscode-spring-boot.props-to-yaml {"value":"vmware.vscode-spring-boot","_lower":"vmware.vscode-spring-boot"}

Example .properties file

I doubt this is relevant, because I don't think the processing is getting this far ("command 'sts/boot/props-to-yaml' not found"), but for what it's worth (note: this is deliberately a trivially small test case):

server.port=9070

Thoughts

I've Googled for:

[warning] [redhat.java] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[java]', provide the URI of a resource or 'null' for any resource.

found some hits, but I'm none the wiser about what to do. (Well, I've tried adding an empty "[java]": {} to my VS Code settings.json, but that's just grasping at straws.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions