Skip to content

Commit 5a62e66

Browse files
authored
build: release 0.27.7 (#1108)
* build: release 0.27.7 Bump the patch version and list the seven user-facing changes since 0.27.6. Copilot-Session: 86246f51-a4f8-465b-9186-fcd14143ed67 * fix(ci): support Java 25 in Gradle integration tests Upgrade the Gradle fixture to 9.1.0 and collect Java language server logs from the test runner's actual temporary user-data directory. Copilot-Session: 86246f51-a4f8-465b-9186-fcd14143ed67 --------- Copilot-Session: 86246f51-a4f8-465b-9186-fcd14143ed67
1 parent 16eed35 commit 5a62e66

9 files changed

Lines changed: 43 additions & 7 deletions

File tree

‎.github/workflows/linux.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,9 @@ jobs:
4949

5050
- name: Print language server Log if job failed
5151
if: ${{ failure() }}
52-
run: find $HOME/.config/Code/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log -print -exec cat '{}' \;;
52+
run: |
53+
if [ -z "$JAVA_TEST_USER_DIR" ] || [ ! -d "$JAVA_TEST_USER_DIR/User/workspaceStorage" ]; then
54+
echo "::warning::Java test workspace storage is unavailable; the test host may not have started."
55+
exit 0
56+
fi
57+
find "$JAVA_TEST_USER_DIR/User/workspaceStorage" -path '*/redhat.java/jdt_ws/.metadata/.log' -print -exec cat '{}' \;

‎.github/workflows/macOS.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,9 @@ jobs:
4242

4343
- name: Print language server Log if job failed
4444
if: ${{ failure() }}
45-
run: find $HOME/Library/Application\ Support/Code/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log -print -exec cat '{}' \;;
45+
run: |
46+
if [ -z "$JAVA_TEST_USER_DIR" ] || [ ! -d "$JAVA_TEST_USER_DIR/User/workspaceStorage" ]; then
47+
echo "::warning::Java test workspace storage is unavailable; the test host may not have started."
48+
exit 0
49+
fi
50+
find "$JAVA_TEST_USER_DIR/User/workspaceStorage" -path '*/redhat.java/jdt_ws/.metadata/.log' -print -exec cat '{}' \;

‎.github/workflows/windows.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,10 @@ jobs:
4545

4646
- name: Print language server Log if job failed
4747
if: ${{ failure() }}
48-
run: Get-ChildItem -Path $env:APPDATA/Code/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log | cat
48+
run: |
49+
if (-not $env:JAVA_TEST_USER_DIR -or -not (Test-Path "$env:JAVA_TEST_USER_DIR\User\workspaceStorage")) {
50+
Write-Warning 'Java test workspace storage is unavailable; the test host may not have started.'
51+
exit 0
52+
}
53+
Get-ChildItem -Path "$env:JAVA_TEST_USER_DIR\User\workspaceStorage\*\redhat.java\jdt_ws\.metadata\.log" -Force |
54+
ForEach-Object { Write-Output $_.FullName; Get-Content -LiteralPath $_.FullName }

‎CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ 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.27.7
8+
9+
- fix - Prevent duplicate Java project roots and incorrect workspace-folder grouping in multi-root workspaces in https://github.com/microsoft/vscode-java-dependency/pull/1061
10+
- fix - Hide duplicate empty physical folder hierarchies while preserving non-Java resources in https://github.com/microsoft/vscode-java-dependency/pull/1063
11+
- fix - Hide workspace roots without Java projects when non-Java resources are hidden in https://github.com/microsoft/vscode-java-dependency/pull/1074
12+
- enhancement - Allow browsing and opening files in non-Java workspace roots when non-Java resources are shown, respecting `files.exclude`, in https://github.com/microsoft/vscode-java-dependency/pull/1075
13+
- ux - Move the Show/Hide Non-Java Resources action to the Java Projects view toolbar in https://github.com/microsoft/vscode-java-dependency/pull/1078
14+
- fix - Align experimental Java LSP navigation tool contracts and distinguish navigation locations from full declaration read ranges in https://github.com/microsoft/vscode-java-dependency/pull/1099
15+
- enhancement - Add Spanish localization for commands, settings, task definitions, and Java Projects welcome views in https://github.com/microsoft/vscode-java-dependency/pull/1101
16+
717
## 0.27.6
818

919
- enhancement - Prefer Java upgrade over CVE in dependency recommendations in https://github.com/microsoft/vscode-java-dependency/pull/1033

‎CONTRIBUTING.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ To set up the vscode-java-dependency project, follow these steps:
3434
- Run the "Attach to Plugin" task.
3535
- Note: This task is required only if you want to debug Java code [jdtls.ext](./jdtls.ext). It requires the [vscode-pde](https://marketplace.visualstudio.com/items?itemName=yaozheng.vscode-pde) extension to be installed.
3636

37+
## Integration Tests
38+
39+
After building the server JAR and installing dependencies, run `npm test`. The Gradle fixture uses Gradle 9.1.0 to support the JDK 25 bundled with the Java extension.
40+
41+
The runner prints its temporary VS Code user data directory and exports it as `JAVA_TEST_USER_DIR` in GitHub Actions. CI reads Java language server logs from that directory's `User/workspaceStorage`, rather than the default VS Code profile.
42+
3743
## Java LSP Tool Contract Tests
3844
3945
After installing dependencies, run `npm run test-lsp-tools` for the isolated navigation-tool suite. It compiles TypeScript and starts a separate VS Code test host; no Java server build, Java project, or signed-in Copilot session is required. Set `VSCODE_EXECUTABLE_PATH` to reuse an existing VS Code executable instead of downloading one.

‎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.27.6",
5+
"version": "0.27.7",
66
"publisher": "vscjava",
77
"preview": false,
88
"aiKey": "5c642b22-e845-4400-badb-3f8509a70777",

‎test/gradle/.vscode/settings.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"java.server.launchMode": "Standard",
3-
"java.import.gradle.version": "7.3"
3+
"java.import.gradle.version": "9.1.0"
44
}

‎test/index.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ async function main(): Promise<void> {
1212
// test fails in macOS since the limitation of path length
1313
// See: https://github.com/microsoft/vscode/issues/86382#issuecomment-593765388
1414
const userDir = fs.mkdtempSync(path.join(os.tmpdir(), "vscode-user"));
15+
process.stdout.write(`Test user data directory: ${userDir}${os.EOL}`);
16+
if (process.env.GITHUB_ENV) {
17+
fs.appendFileSync(process.env.GITHUB_ENV, `JAVA_TEST_USER_DIR=${userDir}${os.EOL}`);
18+
}
1519
const vscodeExecutablePath = await downloadAndUnzipVSCode();
1620

1721
// Resolve redhat.java dependency

0 commit comments

Comments
 (0)