Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,21 +122,21 @@ jobs:
xvfb-run --auto-servernum npm run test --silent
continue-on-error: true
- name: Clean tests
run: npx gulp clean_test_folder
run: npm run clean-test-folder
- name: Prepare Lombok Support
if: false
run: |
npx gulp download_lombok
npm run download-lombok
- name: Prepare Pre-Release
if: ${{ github.event_name == 'schedule' || inputs.publishPreRelease == 'true' }}
run: |
npx gulp prepare_pre_release
npm run prepare-pre-release
echo "publishPreReleaseFlag=--pre-release" >> $GITHUB_ENV
- name: Package vscode-java
run: |
platforms=("win32-x64" "linux-x64" "linux-arm64" "darwin-x64" "darwin-arm64")
for platform in ${platforms[@]}; do
npx gulp download_jre --target ${platform} --javaVersion 21
npm run download-jre -- --target ${platform} --javaVersion 21
vsce package ${{ env.publishPreReleaseFlag }} --target ${platform} -o java-${platform}-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix
done
rm -rf jre/
Expand Down
19 changes: 6 additions & 13 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"DEBUG_VSCODE_JAVA":"true",
"VSCODE_REDHAT_TELEMETRY_DEBUG":"true"
},
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
"preLaunchTask": "npm: watch",
Expand All @@ -28,7 +27,6 @@
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
"env": {
Expand All @@ -45,7 +43,6 @@
"runtimeExecutable": "${execPath}",
"debugWebviews": true,
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
"env": {
Expand All @@ -65,7 +62,6 @@
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
"env": {
Expand All @@ -81,7 +77,6 @@
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
"env": {
Expand All @@ -103,7 +98,6 @@
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/out/test/standard-mode-suite"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/**/*.js"],
"preLaunchTask": "prepareStandardTest",
Expand All @@ -120,18 +114,17 @@
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/out/test/lightweight-mode-suite"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/**/*.js"],
"preLaunchTask": "prepareLightweightTest",
"postDebugTask": "cleanTestFolder"
},
{
"args": [
"${input:gulpTask}"
"${input:scriptTask}"
],
"name": "Launch Gulp Task",
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
"name": "Launch Build Script",
"program": "${workspaceFolder}/scripts/index.js",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
Expand All @@ -141,10 +134,10 @@
],
"inputs": [
{
"id": "gulpTask",
"id": "scriptTask",
"type": "promptString",
"description": "Name of the Gulp task to execute",
"default": "download_jre"
"description": "Name of the build script to execute (e.g., download-jre, build-server, etc.)",
"default": "download-jre"
}
]
}
18 changes: 9 additions & 9 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
}
},
{
"type": "gulp",
"label": "cleanTestFolder",
"task": "clean_test_folder"
"type": "npm",
"script": "clean-test-folder",
"label": "cleanTestFolder"
},
{
"type": "gulp",
"label": "generateStandardTestFolder",
"task": "generate_standard_test_folder"
"type": "npm",
"script": "generate-standard-test-folder",
"label": "generateStandardTestFolder"
},
{
"type": "gulp",
"label": "generateLightweightTestFolder",
"task": "generate_lightweight_test_folder"
"type": "npm",
"script": "generate-lightweight-test-folder",
"label": "generateLightweightTestFolder"
},
{
"label": "prepareStandardTest",
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The following will be a start to finish guide to get the entire language server
5. (**\*Optional**) Build a platform specific JRE:

```bash
$ npx gulp download_jre
$ npm run download-jre
```
You can also use the options `--target` and `--javaVersion` to build the specified JRE version for the specified target architecture.

Expand Down Expand Up @@ -94,7 +94,7 @@ This will build and place the binaries under the `server` folder. Alternately yo

```bash
$ cd ../vscode-java
$ ./node_modules/.bin/gulp download_server
$ npm run download-server
```
### Setting up the JDT Language Server
Below are the details about how to set up the JDT Language Server in different IDEs. **Notice**: You only need set up it once in any of your preferred IDE.
Expand Down
Loading