Skip to content

Completion not work for application.y*a*ml files #191

Closed

Description

@Eskibear

As mentioned here:

Q: Is there an official extension for YAML files?
A: Please use ".yaml" when possible.

Currently it looks that the completion only works for .yml files.
https://github.com/spring-projects/sts4/blob/e8f2840966e9bee7ce3948ee4662136e78103862/eclipse-language-servers/org.springframework.tooling.boot.ls/plugin.xml#L44-L57

I don't know if it's a bug or Spring convention to only use .yml as file extension. Maybe it would be better to also include support for such .yaml files.

Activity

  1. kdvolder commented on Jan 29, 2019

    @kdvolder
    Member

    The properties files for spring boot apps are typically called application.yml. I'm not sure if spring boot will pick it up if its called application.yaml. To be honest it never occurred to me as I'd never seen an example project with a application.yaml in it. I'll give it a try though and report back in a bit.

  2. kdvolder commented on Jan 29, 2019

    @kdvolder
    Member

    Looks like application.yaml works just as well (I just tried it). So I think it would make good sense to extend the file associations to allow either .yml or .yaml.

  3. added this to the 4.1.2.RELEASE milestone on Jan 30, 2019
  4. spring-projects-issues commented on Feb 1, 2019

    @spring-projects-issues

    (comment in Pivotal Tracker added by Kris De Volder:)

    Should be working now for vscode and eclipse. Assinging this to @alexboyko to take a look at atom.

  5. spring-projects-issues commented on Feb 5, 2019

    @spring-projects-issues

    (comment in Pivotal Tracker added by Martin Lippert:)

    I installed the latest vsix build into VSCode, but a file called application.yaml is not being recognized as a spring properties file, therefore no content-assist showing up.

  6. spring-projects-issues commented on Feb 5, 2019

    @spring-projects-issues

    (comment in Pivotal Tracker added by Kris De Volder:)

    Looks like I messed something up pushing changes. Pushed a old version which has a typo in the package.json. Should be fixed now but I'll double-check snapshot build before redelivering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions