Skip to content

Commit 185232d

Browse files
dkwon17akaroml
authored andcommitted
Add create Quarkus Tools for VS code links in overview (#250)
Signed-off-by: David Kwon <[email protected]>
1 parent 65ccc85 commit 185232d

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ Spring Tools 4 (ST4) is also available in Visual Studio Code. It understands Spr
3434

3535
To use ST4, install [📦 Spring Boot Extension Pack](https://marketplace.visualstudio.com/items?itemName=Pivotal.vscode-boot-dev-pack). Please also check out the [User Guide](https://github.com/spring-projects/sts4/wiki) to make the most of it.
3636

37+
### Quarkus
38+
39+
[📦 Quarkus Tools for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-quarkus) is a feature-packed extension tailored for Quarkus application
40+
development within Visual Studio Code. You can quickly get started by using the extension's
41+
project generation and project debugging feature. The extension also provides amazing
42+
language features (completion, hover, validation etc.) for your project's application.properties file.
43+
3744
### Containers and Microservices
3845

3946
You can use [📦 Docker](https://marketplace.visualstudio.com/items?itemName=PeterJausovec.vscode-docker) extension to build docker images and work with image registries.

src/commands/handler.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ export async function createSpringBootProjectCmdHandler(context: vscode.Extensio
2626
await vscode.commands.executeCommand("spring.initializr.createProject");
2727
}
2828

29+
export async function createQuarkusProjectCmdHandler(context: vscode.ExtensionContext) {
30+
if (!await validateAndRecommendExtension("redhat.vscode-quarkus", "Quarkus Tools for Visual Studio Code is recommended to help create Quarkus projects and for an all-in-one Quarkus application development experience.", true)) {
31+
return;
32+
}
33+
34+
await vscode.commands.executeCommand("quarkusTools.createProject");
35+
}
36+
37+
2938
export async function showExtensionCmdHandler(context: vscode.ExtensionContext, operationId: string, extensionName: string) {
3039
sendInfo(operationId, { extName: extensionName });
3140
vscode.commands.executeCommand("extension.open", extensionName);

src/commands/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import * as vscode from "vscode";
55

66
import { instrumentCommand } from "../utils";
7-
import { createMavenProjectCmdHandler, createSpringBootProjectCmdHandler, showExtensionCmdHandler, openUrlCmdHandler, showReleaseNotesHandler, installExtensionCmdHandler } from "./handler";
7+
import { createMavenProjectCmdHandler, createSpringBootProjectCmdHandler, createQuarkusProjectCmdHandler, showExtensionCmdHandler, openUrlCmdHandler, showReleaseNotesHandler, installExtensionCmdHandler } from "./handler";
88
import { overviewCmdHandler } from "../overview";
99
import { javaRuntimeCmdHandler } from "../java-runtime";
1010
import { javaGettingStartedCmdHandler } from "../getting-started";
@@ -13,6 +13,7 @@ export function initialize(context: vscode.ExtensionContext) {
1313
context.subscriptions.push(vscode.commands.registerCommand("java.overview", instrumentCommand(context, "java.overview", instrumentCommand(context, "java.helper.overview", overviewCmdHandler))));
1414
context.subscriptions.push(vscode.commands.registerCommand("java.helper.createMavenProject", instrumentCommand(context, "java.helper.createMavenProject", createMavenProjectCmdHandler)));
1515
context.subscriptions.push(vscode.commands.registerCommand("java.helper.createSpringBootProject", instrumentCommand(context, "java.helper.createSpringBootProject", createSpringBootProjectCmdHandler)));
16+
context.subscriptions.push(vscode.commands.registerCommand("java.helper.createQuarkusProject", instrumentCommand(context, "java.helper.createQuarkusProject", createQuarkusProjectCmdHandler)));
1617
context.subscriptions.push(vscode.commands.registerCommand("java.helper.showExtension", instrumentCommand(context, "java.helper.showExtension", showExtensionCmdHandler)));
1718
context.subscriptions.push(vscode.commands.registerCommand("java.helper.openUrl", instrumentCommand(context, "java.helper.openUrl", openUrlCmdHandler)));
1819
context.subscriptions.push(vscode.commands.registerCommand("java.showReleaseNotes", instrumentCommand(context, "java.showReleaseNotes", showReleaseNotesHandler)));

src/overview/assets/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ <h3 class="font-weight-light">Start</h3>
120120
<div>
121121
<a href="command:java.helper.createSpringBootProject" title="Create a project with Spring Initializr">Create a Spring Boot project...</a>
122122
</div>
123+
<div>
124+
<a href="command:java.helper.createQuarkusProject" title="Create a project with Quarkus Tools for Visual Studio Code">Create a Quarkus project...</a>
125+
</div>
123126
<!-- <a href="command:java.helper.createJavaFile">Create a standalone Java file...</a><br> -->
124127
</div>
125128
</div>
@@ -202,12 +205,18 @@ <h3 class="font-weight-light">Microservices</h3>
202205
<div>
203206
<a href="command:java.helper.openUrl?%22https%3A%2F%2Fcode.visualstudio.com%2Fdocs%2Fazure%2Fdocker%22" title="Learn how to work with Docker in VS Code">Docker in VS Code</a>
204207
</div>
208+
<div>
209+
<a href="command:java.helper.openUrl?%22https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dredhat.vscode-quarkus%26ssr%3Dfalse%23overview%22" title="Marketplace link for Quarkus Tools for VS Code">Quarkus Tools for VS Code</a>
210+
</div>
205211
<div ext="ms-kubernetes-tools.vscode-kubernetes-tools" displayName="Kubernetes">
206212
<a href="#" title="Install Kubernetes extension...">Install Kubernetes Extension</a>
207213
</div>
208214
<div ext="ms-azuretools.vscode-docker" displayName="Docker">
209215
<a href="#" title="Install Docker extension...">Install Docker Extension</a>
210216
</div>
217+
<div ext="redhat.vscode-quarkus" displayName="Quarkus">
218+
<a href="#" title="Install Quarkus extension...">Install Quarkus Extension</a>
219+
</div>
211220
</div>
212221
</div>
213222
<div class="row mb-3">

0 commit comments

Comments
 (0)