Skip to content

Commit 7653627

Browse files
committed
Merge remote-tracking branch 'origin/main' into pr/dnicolson/532
2 parents b40316a + 88958d8 commit 7653627

6 files changed

Lines changed: 2319 additions & 1789 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [18.x, 20.x]
16+
node-version: [20.x, 22.x]
1717
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1818

1919
steps:

build/pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ extends:
3434
testPlatforms:
3535
- name: Linux
3636
nodeVersions:
37-
- 18.x
3837
- 20.x
38+
- 22.x
3939
- name: MacOS
4040
nodeVersions:
41-
- 18.x
4241
- 20.x
42+
- 22.x
4343
- name: Windows
4444
nodeVersions:
45-
- 18.x
4645
- 20.x
46+
- 22.x
4747

4848
testSteps:
4949
- script: npm i

generators/app/dependencyVersions/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@
77
"@types/mocha": "^10.0.10",
88
"@types/node": "22.x",
99
"@types/assert": "^1.5.11",
10-
"typescript-eslint": "^8.39.0",
11-
"eslint": "^9.32.0",
10+
"typescript-eslint": "^8.46.3",
11+
"eslint": "^9.39.1",
1212
"glob": "^11.0.3",
13-
"mocha": "^11.7.1",
14-
"typescript": "^5.9.2",
13+
"mocha": "^11.7.4",
14+
"typescript": "^5.9.3",
1515
"@vscode/test-cli": "^0.0.11",
1616
"@vscode/test-electron": "^2.5.2",
17-
"@vscode/test-web": "^0.0.72",
17+
"@vscode/test-web": "^0.0.74",
1818
"@types/webpack-env": "^1.18.8",
19-
"@types/vscode-notebook-renderer": "^1.72.3",
20-
"concurrently": "^9.2.0",
19+
"@types/vscode-notebook-renderer": "^1.72.4",
20+
"concurrently": "^9.2.1",
2121
"css-loader": "^7.1.2",
2222
"fork-ts-checker-webpack-plugin": "^9.1.0",
2323
"style-loader": "^4.0.0",
24-
"ts-loader": "^9.5.2",
24+
"ts-loader": "^9.5.4",
2525
"vscode-dts": "^0.3.3",
2626
"vscode-notebook-error-overlay": "^1.1.0",
27-
"webpack": "^5.101.0",
27+
"webpack": "^5.102.0",
2828
"util": "^0.12.5",
2929
"webpack-cli": "^6.0.1",
3030
"webpack-dev-server": "^5.2.2",
3131
"assert": "^2.1.0",
3232
"process": "^0.11.10",
3333
"npm-run-all": "^4.1.5",
34-
"esbuild": "^0.25.8",
34+
"esbuild": "^0.25.10",
3535
"@esbuild-plugins/node-globals-polyfill": "^0.2.3"
3636
}
3737
}

generators/app/env.js

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,38 @@ import * as fs from 'fs';
77
import * as path from 'path';
88
import { fileURLToPath } from 'url';
99

10-
const fallbackVersion = '^1.54.0';
10+
const fallbackVersion = '^1.103.0';
1111
let versionPromise = undefined;
1212

1313
export function getLatestVSCodeVersion() {
1414
if (!versionPromise) {
15-
versionPromise = request.xhr({ url: 'https://update.code.visualstudio.com/api/releases/stable', headers: { "X-API-Version": "2" } }).then(res => {
16-
if (res.status === 200) {
17-
try {
18-
var tagsAndCommits = JSON.parse(res.responseText);
19-
if (Array.isArray(tagsAndCommits) && tagsAndCommits.length > 0) {
20-
var segments = tagsAndCommits[0].version.split('.');
21-
if (segments.length === 3) {
22-
return '^' + segments[0] + '.' + segments[1] + '.0';
15+
// Fetch the latest published @types/vscode version from the npm registry
16+
// and return a caret-pinned range (e.g. ^1.93.0).
17+
versionPromise = request
18+
.xhr({ url: 'https://registry.npmjs.org/@types/vscode/latest', headers: { 'Accept': 'application/json' } })
19+
.then(
20+
res => {
21+
if (res.status === 200) {
22+
try {
23+
const meta = JSON.parse(res.responseText);
24+
if (meta && typeof meta.version === 'string' && meta.version) {
25+
return '^' + meta.version;
26+
}
27+
} catch (e) {
28+
console.log('Problem parsing @types/vscode metadata: ' + res.responseText, e);
2329
}
30+
} else {
31+
console.warn('Unable to evaluate the latest @types/vscode version: Status code: ' + res.status + ', ' + res.responseText);
2432
}
25-
} catch (e) {
26-
console.log('Problem parsing version: ' + res.responseText, e);
33+
console.warn('Falling back to: ' + fallbackVersion);
34+
return fallbackVersion;
35+
},
36+
err => {
37+
console.warn('Unable to evaluate the latest @types/vscode version: Error: ', err);
38+
console.warn('Falling back to: ' + fallbackVersion);
39+
return fallbackVersion;
2740
}
28-
} else {
29-
console.warn('Unable to evaluate the latest vscode version: Status code: ' + res.status + ', ' + res.responseText);
30-
}
31-
console.warn('Falling back to: ' + fallbackVersion);
32-
return fallbackVersion;
33-
}, err => {
34-
console.warn('Unable to evaluate the latest vscode version: Error: ', err);
35-
console.warn('Falling back to: ' + fallbackVersion);
36-
return fallbackVersion;
37-
});
41+
);
3842
}
3943
return versionPromise;
4044
};

0 commit comments

Comments
 (0)