|
2 | 2 |
|
3 | 3 | import * as expandHomeDir from 'expand-home-dir'; |
4 | 4 | import * as fse from 'fs-extra'; |
5 | | -import { getRuntime, getSources, JAVAC_FILENAME, JAVA_FILENAME } from 'jdk-utils'; |
| 5 | +import { getRuntime, getSources, JAVA_FILENAME, JAVAC_FILENAME } from 'jdk-utils'; |
6 | 6 | import * as path from 'path'; |
7 | 7 | import { env, ExtensionContext, Uri, window, workspace } from 'vscode'; |
8 | 8 | import { Commands } from './commands'; |
| 9 | +import { listJdks, sortJdksBySource, sortJdksByVersion } from './jdkUtils'; |
9 | 10 | import { logger } from './log'; |
10 | 11 | import { checkJavaPreferences } from './settings'; |
11 | | -import { listJdks, sortJdksBySource, sortJdksByVersion } from './jdkUtils'; |
12 | 12 | import { getJavaConfiguration } from './utils'; |
13 | 13 |
|
14 | 14 | /* eslint-disable @typescript-eslint/naming-convention */ |
@@ -41,7 +41,7 @@ export async function resolveRequirements(context: ExtensionContext): Promise<Re |
41 | 41 | const preferenceName = javaPreferences.preference; |
42 | 42 | let javaHome = javaPreferences.javaHome; |
43 | 43 | let javaVersion: number = 0; |
44 | | - const REQUIRED_JDK_VERSION = ('on' === getJavaConfiguration().get('jdt.ls.javac.enabled'))?25:21; |
| 44 | + const REQUIRED_JDK_VERSION = ('on' === getJavaConfiguration().get('jdt.ls.javac.enabled')) ? 26 : 21; |
45 | 45 | if (toolingJreVersion < REQUIRED_JDK_VERSION) { // embedded tooling JRE doesn't meet requirement |
46 | 46 | toolingJre = null; |
47 | 47 | toolingJreVersion = 0; |
|
0 commit comments