GithubHelp home page GithubHelp logo

Comments (9)

angelozerr avatar angelozerr commented on September 28, 2024

Is IJ gives the capability to manage a YAML editor? If yes, is it enable to set a JSON Schema file to the YAML editor for a given file URI? If it's possible, MicroProfile LS provides now a request which returns the JSON Schema for a given URI.

We use this feature in vscode (and soon in Eclipse IDE) with YAML Language Server.

from intellij-quarkus.

rainmanhhh avatar rainmanhhh commented on September 28, 2024

idea supports check(and auto-complete) spring application.yml with json schema, probably it can be used for quarkus

from intellij-quarkus.

angelozerr avatar angelozerr commented on September 28, 2024

idea supports check(and auto-complete) spring application.yml with json schema, probably it can be used for quarkus

sts4 have a language server which parses YAML file. They have developed from scratch a YAML parser (fault tolerant parser) and I think all YAML features (completion, outline, etc).

it seems vscode plugin not support yml either

vscode-quarkus supports application.yaml, but instead of managing parse of YAML and manages other features like validation for YAML, outline, highlight, completion based on YAML/JSON Schema, vscode-quarkus delegates the YAML features (yaml parse, completion, hover, validation, etc) to vscode-yaml.

The only work that vscode-quarkus does, is that it bind the application.yaml with a generated JSON Schema (according to the Quarkus/MP properties available for the project). vscode-yaml (which consumes the yaml language server) does the work by using the generated JSON Schema (validation, completion, etc).

vscode-yaml manages very good YAML support (validation, completion, outline, etc), so by consuming it (just by giving a JSON Schema) was easy and we don't reinvent the wheel. More in Eclipse IDE, the yaml language server is consumed too (with WWD), so it will possible to do the same strategy than vscode.

from intellij-quarkus.

rainmanhhh avatar rainmanhhh commented on September 28, 2024

idea can specific a json schema for yaml file(or url) manually. what url should I use?

from intellij-quarkus.

angelozerr avatar angelozerr commented on September 28, 2024

I'm afraid that it will not so simple like this. In vscode, when application.yaml is opened, the yaml language server ask to the vscode-quarkus:

To retrieve the JSON Schema content, the LSP request microprofile/jsonSchemaForProjectInfo from MP language server is consumed.

I don't know how IJ is working but the idea is to develop an IJ extension for YAML which consumes the LSP request microprofile/jsonSchemaForProjectInfo

from intellij-quarkus.

rainmanhhh avatar rainmanhhh commented on September 28, 2024

so IJ quarkus tools plugin doesn't provider a port to receive request and return url of JSON Schema/content of JSON Schema?

from intellij-quarkus.

angelozerr avatar angelozerr commented on September 28, 2024

so IJ quarkus tools plugin doesn't provider a port to receive request and return url of JSON Schema/content of JSON Schema?

I don't know, please ask to @jeffmaury

from intellij-quarkus.

jeffmaury avatar jeffmaury commented on September 28, 2024

Quarkus Tool does not support YAML format for application properties yet

from intellij-quarkus.

rainmanhhh avatar rainmanhhh commented on September 28, 2024

I suggest make the plugin generate a json schema file into compile output dir (like spring-configuration-metadata.json generated by spring configuration annotation processor), so that user can view the schema directly or set it to IJ manually

from intellij-quarkus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.