Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/recommendation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
import * as vscode from "vscode";
import { initialize as initHandler, extensionRecommendationHandler } from "./handler";
import { isExtensionInstalled, getExtensionContext, getInstalledExtension } from "../utils";
import { initialize as initXmlRecommendation } from "./xml";

export function initialize(_context: vscode.ExtensionContext) {
initHandler();
initXmlRecommendation(_context);
}

export async function validateAndRecommendExtension(extName: string, message: string, isForce: boolean = false) {
Expand Down
2 changes: 1 addition & 1 deletion src/recommendation/xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as vscode from "vscode";
import { extensionRecommendationHandler } from "./handler";

const EXTENSION_NAME = "redhat.vscode-xml";
const RECOMMENDATION_MESSAGE = "XML extension is recommended to check the syntax when editing pom.xml.";
const RECOMMENDATION_MESSAGE = "XML extension is recommended for better POM editing with schema validation, auto-completion, and formatting.";

function isPomDotXml(uri: vscode.Uri) {
return !!uri.path && uri.path.toLowerCase().endsWith("pom.xml");
Expand Down