Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Grunberg <[email protected]>
  • Loading branch information
rgrunber committed Jan 9, 2024
1 parent 9e4112a commit f26a8c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/scripts/check_and_update_jdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
print('Failed to retrieve latest JDK version')
exit(1)
latest_jdk = latest_jdk.group('major')
latest_jdk = '20'
print(f'Latest JDK version: {latest_jdk}')

# Query the vscode-java repo for the current supported JDK version
Expand Down Expand Up @@ -78,7 +79,8 @@
package = json.load(f)

# Add the latest JDK version to the java.configuration.runtimes array
package['contributes']['configuration']['properties']['java.configuration.runtimes']['items']['enum'].append(f'JavaSE-{latest_jdk}')

next(filter(lambda e: e['id'] == "java-jdks", package['contributes']['configuration']))['properties']['java.configuration.runtimes']['items']['properties']['name']['enum'].append(f'JavaSE-{latest_jdk}')

# Write the updated package.json file
with open('package.json', 'w') as f:
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,6 @@
"JavaSE-17",
"JavaSE-18",
"JavaSE-19",
"JavaSE-20",
"JavaSE-21"
],
"description": "Java Execution Environment name. Must be unique."
Expand Down

0 comments on commit f26a8c4

Please sign in to comment.