Skip to content

Commit

Permalink
build - Update dependencies (#850)
Browse files Browse the repository at this point in the history
* build - Update dependencies

- Update nodejs to 20.x
- Update lsp4j tp 0.23.1
- Update @vscode/test-electron
jdneo authored Aug 27, 2024
1 parent 60dad37 commit d6e3701
Showing 12 changed files with 602 additions and 150 deletions.
4 changes: 2 additions & 2 deletions .azure-pipelines/ci.yml
Original file line number Diff line number Diff line change
@@ -50,9 +50,9 @@ extends:
jdkArchitectureOption: x64
jdkSourceOption: PreInstalled
- task: NodeTool@0
displayName: Use Node 18.x
displayName: Use Node 20.x
inputs:
versionSpec: 18.x
versionSpec: 20.x
- task: Npm@1
displayName: npm install
inputs:
4 changes: 2 additions & 2 deletions .azure-pipelines/nightly.yml
Original file line number Diff line number Diff line change
@@ -47,9 +47,9 @@ extends:
clean: true
fetchTags: true
- task: NodeTool@0
displayName: Use Node 18.x
displayName: Use Node 20.x
inputs:
versionSpec: 18.x
versionSpec: 20.x
- task: JavaToolInstaller@0
displayName: Use Java 17
inputs:
4 changes: 2 additions & 2 deletions .azure-pipelines/rc.yml
Original file line number Diff line number Diff line change
@@ -42,9 +42,9 @@ extends:
clean: true
fetchTags: true
- task: NodeTool@0
displayName: Use Node 18.x
displayName: Use Node 20.x
inputs:
versionSpec: 18.x
versionSpec: 20.x
- task: JavaToolInstaller@0
displayName: Use Java 17
inputs:
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 20

- name: Install Node.js modules
run: npm install
2 changes: 1 addition & 1 deletion .github/workflows/linuxUI.yml
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 20

- name: Install Node.js modules
run: npm install
2 changes: 1 addition & 1 deletion .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 20

- name: Install Node.js modules
run: npm install
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 20

- name: Install Node.js modules
run: npm install
2 changes: 1 addition & 1 deletion .github/workflows/windowsUI.yml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 20

- name: Install Node.js modules
run: npm install
Original file line number Diff line number Diff line change
@@ -21,8 +21,8 @@
<repository location="https://download.eclipse.org/jdtls/snapshots/repository/latest/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://download.eclipse.org/lsp4j/updates/releases/0.22.0/"/>
<unit id="org.eclipse.lsp4j.sdk.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/lsp4j/updates/releases/0.23.1/"/>
<unit id="org.eclipse.lsp4j" version="0.0.0"/>
</location>
<location includeDependencyDepth="none" includeDependencyScopes="compile" includeSource="true" missingManifest="generate" type="Maven">
<dependencies>
712 changes: 580 additions & 132 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1067,10 +1067,10 @@
"@types/lodash": "^4.14.191",
"@types/minimatch": "^3.0.3",
"@types/mocha": "^9.1.1",
"@types/node": "^16.18.11",
"@types/node": "20.x",
"@types/semver": "^7.3.13",
"@types/vscode": "1.83.1",
"@vscode/test-electron": "^2.3.8",
"@vscode/test-electron": "^2.4.1",
"copy-webpack-plugin": "^11.0.0",
"glob": "^7.2.3",
"mocha": "^9.2.2",
10 changes: 7 additions & 3 deletions test/index.ts
Original file line number Diff line number Diff line change
@@ -16,10 +16,14 @@ async function main(): Promise<void> {

// Resolve redhat.java dependency
const [cli, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);
cp.spawnSync(cli, [...args, '--install-extension', 'redhat.java'], {
const options: cp.SpawnSyncOptionsWithStringEncoding = {
encoding: 'utf-8',
stdio: 'inherit'
});
stdio: 'inherit',
};
if (process.platform === 'win32') {
options.shell = true;
}
cp.spawnSync(cli, [...args, '--install-extension', 'redhat.java'], options);

// The folder containing the Extension Manifest package.json
// Passed to `--extensionDevelopmentPath`

0 comments on commit d6e3701

Please sign in to comment.