Skip to content

Commit 6be7646

Browse files
authored
👻 Remove JAVA version warning from release-0.2 (konveyor#1037)
Signed-off-by: Ian Bolton <ibolton@redhat.com>
1 parent d6bc675 commit 6be7646

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

vscode/src/extension.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -806,31 +806,6 @@ class VsCodeExtension {
806806
return;
807807
}
808808

809-
// Check version compatibility - versions > 1.45.0 have breaking changes
810-
const version = javaExt.packageJSON?.version;
811-
if (version) {
812-
const versionParts = version.split(".").map(Number);
813-
const major = versionParts[0] || 0;
814-
const minor = versionParts[1] || 0;
815-
const isIncompatible = major > 1 || (major === 1 && minor > 45);
816-
817-
if (isIncompatible) {
818-
this.state.logger.error(`Incompatible Java extension version: ${version}`);
819-
vscode.window
820-
.showErrorMessage(
821-
`Red Hat Java Language Support version ${version} is incompatible. ` +
822-
`Please downgrade to version 1.45.0 or earlier. Versions above 1.45.0 contain breaking changes that prevent proper Java analysis.`,
823-
"Show Extensions",
824-
)
825-
.then((selection) => {
826-
if (selection === "Show Extensions") {
827-
vscode.commands.executeCommand("workbench.extensions.search", "redhat.java");
828-
}
829-
});
830-
return;
831-
}
832-
}
833-
834809
if (!javaExt.isActive) {
835810
vscode.window.showInformationMessage(
836811
"The Java Language Support extension is installed but not yet active. " +

0 commit comments

Comments
 (0)