Skip to content

Commit 7c460e8

Browse files
Update wording for Java 21 (#930)
* chore: update wording on Java 21 * chore: typo * chore: bump to 0.26.4 * docs: update changelog
1 parent e130718 commit 7c460e8

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to the "vscode-java-dependency" extension will be documented
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 0.26.4
8+
9+
- fix - Update wording for Java 21 in https://github.com/microsoft/vscode-java-dependency/pull/930
10+
711
## 0.26.3
812

913
- Enhancement - Register Context Provider to Copilot in https://github.com/microsoft/vscode-java-dependency/pull/924

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-java-dependency",
33
"displayName": "Project Manager for Java",
44
"description": "%description%",
5-
"version": "0.26.3",
5+
"version": "0.26.4",
66
"publisher": "vscjava",
77
"preview": false,
88
"aiKey": "5c642b22-e845-4400-badb-3f8509a70777",

src/upgrade/dependency.metadata.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
import { Upgrade } from "../constants";
55
import { UpgradeReason, type DependencyCheckMetadata } from "./type";
66

7-
const LATEST_JAVA_LTS_VESRION = 21;
7+
const MATURE_JAVA_LTS_VERSION = 21;
88

99
export const DEPENDENCY_JAVA_RUNTIME = {
1010
"name": "Java Runtime",
1111
"reason": UpgradeReason.JRE_TOO_OLD,
12-
"supportedVersion": `>=${LATEST_JAVA_LTS_VESRION}`,
12+
"supportedVersion": `>=${MATURE_JAVA_LTS_VERSION}`,
1313
"suggestedVersion": {
14-
"name": `Java ${LATEST_JAVA_LTS_VESRION}`,
15-
"description": "latest LTS version",
14+
"name": `Java ${MATURE_JAVA_LTS_VERSION}`,
15+
"description": "LTS version",
1616
},
1717
} as const;
1818

src/upgrade/utility.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function buildNotificationMessage(issue: UpgradeIssue, hasExtension: bool
3333
const upgradeWord = hasExtension ? "upgrade" : `install ${ExtensionName.APP_MODERNIZATION_EXTENSION_NAME} extension and upgrade`;
3434

3535
if (packageId === Upgrade.PACKAGE_ID_FOR_JAVA_RUNTIME) {
36-
return `This project is using an older Java runtime (${currentVersion}). Would you like to ${upgradeWord} it to ${suggestedVersionName} (latest LTS)?`;
36+
return `This project is using an older Java runtime (${currentVersion}). Would you like to ${upgradeWord} it to ${suggestedVersionName} (LTS)?`;
3737
}
3838

3939
switch (reason) {
@@ -57,7 +57,7 @@ export function buildFixPrompt(issue: UpgradeIssue): string {
5757
switch (reason) {
5858
case UpgradeReason.JRE_TOO_OLD: {
5959
const { suggestedVersion: { name: suggestedVersionName } } = issue;
60-
return `upgrade java runtime to the latest LTS version ${suggestedVersionName} using java upgrade tools`;
60+
return `upgrade java runtime to the LTS version ${suggestedVersionName} using java upgrade tools`;
6161
}
6262
case UpgradeReason.END_OF_LIFE:
6363
case UpgradeReason.DEPRECATED: {

0 commit comments

Comments
 (0)