Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

New features in Quarkus Tools for Visual Studio Code 1.2.0

November 21, 2019
David Kwon
Related topics:
JavaIDEsQuarkus

Share:

    We are proud to present the new release of Quarkus Tools for Visual Studio Code, providing a feature-rich development experience in VS Code for Quarkus application development. This release focused on introducing tooling support for Gradle projects, as well as adding new application.properties language features.

    Watch a demo of the new features:

    New features

    • Gradle — Generate new Quarkus project
    • Gradle — Debug Quarkus project
    • Gradle — Add extensions to a Quarkus project
    • Quick fix for unknown property name
    • Quick fix for invalid enum value
    • Quick fix for missing required properties
    • Add a glob pattern for excluding unknown property validation
    • Language feature support for logging level values
    • Documentation for default profiles
    • Improved input validation when generating a new Quarkus project

    Gradle support

    So far, Quarkus Tools for Visual Studio Code was geared towards Maven Quarkus projects. This release finally brings support to Gradle Quarkus projects. Moving forward, new features will be implemented with both Maven and Gradle in mind.

    Gradle — Generate new Quarkus project

    The project generation wizard now provides the option to choose between creating a Maven or a Gradle project. The rest of the wizard is the same as before. After going through the wizard, your new Maven or Gradle project will download and open automatically.

    To open the project generation wizard, open the VS Code command palette and call the Quarkus: Generate a Quarkus project command.

    Gradle — Debug Quarkus project

    The debug command will now detect whether your currently opened Quarkus project is a Maven or Gradle project, and will start the application by running the Quarkus Dev command (mvn quarkus:dev for Maven, gradle quarkusDev for Gradle). Once the application is running, the debugger will attach.

    To run the debug command, open the VS Code command palette and call the Quarkus: Debug current Quarkus project command.

    Gradle — Add extensions to a Quarkus project

    The add extensions wizard now supports adding Quarkus extensions to Gradle projects.

    To view the list of extensions to add, open the VS Code command palette and call the Quarkus: Add extensions to current project command.

    Here, the Eclipse Vert.x extension was added:

    Since Eclipse Vert.x was selected, the ./gradlew addExtension --extensions="quarkus-vertx" command will run in the integrated terminal to add the extension:

    In short, the project generation wizard can now generate Gradle projects, and the Quarkus: Add extensions to current project and Quarkus: Debug current Quarkus project commands work for both Gradle and Maven projects.

    New application.properties features

    Quick fix for unknown property name

    The validation support provided by Quarkus Tools for Visual Studio Code checks for unknown property keys in your application.properties file. This release brings a new Quick fix that suggests known properties for your unknown properties. This feature is kind of like autocorrect or "spellcheck" for your property keys.

    To perform the Quick fix, hover over an unknown property and click Quick Fix to see the proposed suggestions. Please note, the Quick fix suggestions only appear if your unknown property has a similar name to a known property.

    Quick fix for invalid enum value

    Similarly, there is also a new Quick fix that suggests valid enum values. The Quick fix will either suggest all valid enum values or, if the invalid enum value is similar to a valid enum value, only the similar enum value(s) will be suggested.

    Quick fix for missing required properties

    The last new Quick fix is a Quick fix that adds all missing required properties to the application.properties file. To use this feature, the required properties validation needs to be enabled, as it is disabled by default. To do so, open VS Code settings and set the Quarkus > Tools > Validation > Required > Severity setting to either Warning or Error.

    Once the application.properties file is open, there will be a “Missing required property” warning or error message. The corresponding Quick fix will add all missing required properties to the application.properties file:

    Add a glob pattern for excluding unknown property validation

    This release also allows you to exclude certain properties from unknown property validation. To do this, go to VS Code settings and add a new glob pattern to the Quarkus > Tools > Validation > Unknown > Excluded setting.

    This only excludes properties matching the glob pattern from unknown property validation. Other validation such as missing equal sign validation will continue to work.

    A good use case for this feature is to ignore certain MicroProfile Config annotated properties (see quarkus-ls#135), which Quarkus Tools for Visual Studio Code does not recognize for the time being.

    Language feature support for logging level values

    Moving on, there is now autocompletion, documentation, validation and hover support for java.util.logging.Level values. Autocompletion will provide all possible values alongside their documentation. Providing an incorrect logging level causes a validation error.

    Documentation for default profiles

    Currently, there are three default profiles for the application.properties file: %dev, %prod and %test. Hovering over a default property or invoking completion after a % sign will now provide relevant documentation:

    Validating user input for a new project

    Last but not least, when generating a new project in using the wizard, the input validation messages are now more helpful. There are different naming restrictions for the groupId, artifactId, package name, etc. which the validation messages now describe:

    This wraps up the new features for this release. We would be ecstatic to hear any feedback and suggestions, as we take them very seriously. Thank you for reading, and stay tuned for the next release!

    Resources

    VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=redhat.vscode-quarkus

    GitHub repository: https://github.com/redhat-developer/vscode-quarkus

    Open a GitHub issue: https://github.com/redhat-developer/vscode-quarkus/issues

    Changelog: https://github.com/redhat-developer/vscode-quarkus/blob/master/CHANGELOG.md

    Quarkus Tools for Visual Studio Code 1.0.0 release: https://quarkus.io/blog/quarkus-developer-joy-for-vs-code/

    Last updated: July 1, 2020

    Recent Posts

    • How to run a fraud detection AI model on RHEL CVMs

    • How we use software provenance at Red Hat

    • Alternatives to creating bootc images from scratch

    • How to update OpenStack Services on OpenShift

    • How to integrate vLLM inference into your macOS and iOS apps

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue