Skip to content

Commit 61a7d3e

Browse files
authored
Merge branch 'main' into update_changelog
2 parents 4a75f23 + e57375e commit 61a7d3e

File tree

4 files changed

+63
-23
lines changed

4 files changed

+63
-23
lines changed

.github/workflows/branch-snap.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
- name: Install dependencies
2626
run: npm ci
2727
- name: Update version.json
28-
run: npx gulp incrementVersionJson
29-
- name: Create version.json update PR
28+
run: npx gulp incrementVersion
29+
- name: Create version update PR
3030
uses: peter-evans/create-pull-request@v4
3131
with:
3232
token: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- Diagnostics related feature requests and improvements [#5951](https://github.com/dotnet/vscode-csharp/issues/5951)
44
- Debug from .csproj and .sln [#5876](https://github.com/dotnet/vscode-csharp/issues/5876)
55

6-
# Latest
6+
# 2.54.x
77
* Update debugger packages to v2.54.0 (PR: [#7691](https://github.com/dotnet/vscode-csharp/pull/7691))
88
* Only show misc files warning toast after delay. (PR: [#7689](https://github.com/dotnet/vscode-csharp/pull/7689))
99
* Update Roslyn to 4.13.0-1.24525.2 (PR: [#7694](https://github.com/dotnet/vscode-csharp/pull/7694))

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@
420420
{
421421
"id": "Debugger",
422422
"description": ".NET Core Debugger (Windows / x64)",
423-
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-52-0/coreclr-debug-win7-x64.zip",
423+
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-54-0/coreclr-debug-win7-x64.zip",
424424
"installPath": ".debugger/x86_64",
425425
"platforms": [
426426
"win32"
@@ -430,12 +430,12 @@
430430
"arm64"
431431
],
432432
"installTestPath": "./.debugger/x86_64/vsdbg-ui.exe",
433-
"integrity": "65431717FC1BF1F3CDA4E2ABE4E42A67564C4F6A4A0A7A38D0EC2120AB3E53E4"
433+
"integrity": "CA52132B8EE9AD1C7367CEA603DBDAC67D32E1A15845545376E4A23D609D80FF"
434434
},
435435
{
436436
"id": "Debugger",
437437
"description": ".NET Core Debugger (Windows / ARM64)",
438-
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-52-0/coreclr-debug-win10-arm64.zip",
438+
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-54-0/coreclr-debug-win10-arm64.zip",
439439
"installPath": ".debugger/arm64",
440440
"platforms": [
441441
"win32"
@@ -444,12 +444,12 @@
444444
"arm64"
445445
],
446446
"installTestPath": "./.debugger/arm64/vsdbg-ui.exe",
447-
"integrity": "F2D3A2E45A749D714EA165EF939C955E4BE3B99C7A82919B2563E38733F2C135"
447+
"integrity": "09DF819BE86FD8A481152433E97268C07E985DEE9BBDE17FEA1DA0B339BAD873"
448448
},
449449
{
450450
"id": "Debugger",
451451
"description": ".NET Core Debugger (macOS / x64)",
452-
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-52-0/coreclr-debug-osx-x64.zip",
452+
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-54-0/coreclr-debug-osx-x64.zip",
453453
"installPath": ".debugger/x86_64",
454454
"platforms": [
455455
"darwin"
@@ -463,12 +463,12 @@
463463
"./vsdbg"
464464
],
465465
"installTestPath": "./.debugger/x86_64/vsdbg-ui",
466-
"integrity": "417C7D0477B0ABC04F5AD296100BDDA754B0BB513329206BA096A568CA9A846B"
466+
"integrity": "2C7AD1AA13A8382EFD53AC26A474BE5223EB81295EA9C39E62174CB8626F6473"
467467
},
468468
{
469469
"id": "Debugger",
470470
"description": ".NET Core Debugger (macOS / arm64)",
471-
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-52-0/coreclr-debug-osx-arm64.zip",
471+
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-54-0/coreclr-debug-osx-arm64.zip",
472472
"installPath": ".debugger/arm64",
473473
"platforms": [
474474
"darwin"
@@ -481,12 +481,12 @@
481481
"./vsdbg"
482482
],
483483
"installTestPath": "./.debugger/arm64/vsdbg-ui",
484-
"integrity": "84A4DAA9420B9734585845317CC920CD75AAFF4C740ED4619870D1EFD9375498"
484+
"integrity": "9B934EF920DFFDA3241B8107A777E5B5F6EDC6E2810C760B985D7879C705ABD3"
485485
},
486486
{
487487
"id": "Debugger",
488488
"description": ".NET Core Debugger (linux / ARM)",
489-
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-52-0/coreclr-debug-linux-arm.zip",
489+
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-54-0/coreclr-debug-linux-arm.zip",
490490
"installPath": ".debugger",
491491
"platforms": [
492492
"linux"
@@ -499,12 +499,12 @@
499499
"./vsdbg"
500500
],
501501
"installTestPath": "./.debugger/vsdbg-ui",
502-
"integrity": "EDF8B6D14FE42C4732ADFA0794A550D0BE71B6F5CD18D4636132B4DFED76B7DA"
502+
"integrity": "C7862D26B66EA20D607D163A210430576E1B94EE7E30DEDFFF0979818CBC448F"
503503
},
504504
{
505505
"id": "Debugger",
506506
"description": ".NET Core Debugger (linux / ARM64)",
507-
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-52-0/coreclr-debug-linux-arm64.zip",
507+
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-54-0/coreclr-debug-linux-arm64.zip",
508508
"installPath": ".debugger",
509509
"platforms": [
510510
"linux"
@@ -517,12 +517,12 @@
517517
"./vsdbg"
518518
],
519519
"installTestPath": "./.debugger/vsdbg-ui",
520-
"integrity": "381D1496318B854BB6C3544D7D0D51C9356618D6BEF33438EB26F13FA4DB8AF4"
520+
"integrity": "59928535D55E29B501E3B75FB5CA328BC5AFD0E5D1B3DC85BD138B89163A9B96"
521521
},
522522
{
523523
"id": "Debugger",
524524
"description": ".NET Core Debugger (linux musl / x64)",
525-
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-52-0/coreclr-debug-linux-musl-x64.zip",
525+
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-54-0/coreclr-debug-linux-musl-x64.zip",
526526
"installPath": ".debugger",
527527
"platforms": [
528528
"linux-musl"
@@ -535,12 +535,12 @@
535535
"./vsdbg"
536536
],
537537
"installTestPath": "./.debugger/vsdbg-ui",
538-
"integrity": "C7D9B3FCB947798540F24C3784604367CA51C2D52AE69C515525DD7DCA5C1C17"
538+
"integrity": "70899D68697E158CAFC6B4C69D8CC894AF307D82DC884167ED8E408D31A90BEE"
539539
},
540540
{
541541
"id": "Debugger",
542542
"description": ".NET Core Debugger (linux musl / ARM64)",
543-
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-52-0/coreclr-debug-linux-musl-arm64.zip",
543+
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-54-0/coreclr-debug-linux-musl-arm64.zip",
544544
"installPath": ".debugger",
545545
"platforms": [
546546
"linux-musl"
@@ -553,12 +553,12 @@
553553
"./vsdbg"
554554
],
555555
"installTestPath": "./.debugger/vsdbg-ui",
556-
"integrity": "6D69141D92DF968755D36FABB73C34F8232108E0B563D3B20A59CFD1FF1BBDD2"
556+
"integrity": "7E6440DEF000329162FFFBC97114F33CF83B9C2020D44A1AC0E4407531B4C8F8"
557557
},
558558
{
559559
"id": "Debugger",
560560
"description": ".NET Core Debugger (linux / x64)",
561-
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-52-0/coreclr-debug-linux-x64.zip",
561+
"url": "https://vsdebugger.azureedge.net/coreclr-debug-2-54-0/coreclr-debug-linux-x64.zip",
562562
"installPath": ".debugger",
563563
"platforms": [
564564
"linux"
@@ -571,7 +571,7 @@
571571
"./vsdbg"
572572
],
573573
"installTestPath": "./.debugger/vsdbg-ui",
574-
"integrity": "A35AB54ED50822DBB98BA10A1065FEF9EA7BE49406291DFE6D74E116EBECF177"
574+
"integrity": "5099BF747D2D20437A6743F02920015DC6A9809956DBAE12C41CDF97C969F19D"
575575
},
576576
{
577577
"id": "RazorOmnisharp",
@@ -5602,4 +5602,4 @@
56025602
}
56035603
}
56045604
}
5605-
}
5605+
}

tasks/snapTasks.ts

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,61 @@
66
import * as gulp from 'gulp';
77
import * as fs from 'fs';
88
import * as path from 'path';
9+
import * as os from 'os';
910

10-
gulp.task('incrementVersionJson', async (): Promise<void> => {
11+
gulp.task('incrementVersion', async (): Promise<void> => {
12+
// Get the current version from version.json
1113
const versionFilePath = path.join(path.resolve(__dirname, '..'), 'version.json');
1214
const file = fs.readFileSync(versionFilePath, 'utf8');
1315
const versionJson = JSON.parse(file);
1416

17+
// Increment the minor version
1518
const version = versionJson.version as string;
1619
const split = version.split('.');
1720
const newVersion = `${split[0]}.${parseInt(split[1]) + 1}`;
1821

1922
console.log(`Updating ${version} to ${newVersion}`);
2023

24+
// Write the new version back to version.json
2125
versionJson.version = newVersion;
2226
const newJson = JSON.stringify(versionJson, null, 4);
2327
console.log(`New json: ${newJson}`);
2428

2529
fs.writeFileSync(versionFilePath, newJson);
30+
31+
// Add a new changelog section for the new version.
32+
console.log('Adding new version header to changelog');
33+
34+
const changelogPath = path.join(path.resolve(__dirname, '..'), 'CHANGELOG.md');
35+
const changelogContent = fs.readFileSync(changelogPath, 'utf8');
36+
const changelogLines = changelogContent.split(os.EOL);
37+
38+
// Find all the headers in the changelog (and their line numbers)
39+
const headerRegex = /^#+\s+.*$/gm;
40+
const matches = [];
41+
for (let i = 0; i < changelogLines.length; i++) {
42+
const line = changelogLines.at(i);
43+
const match = headerRegex.exec(line!);
44+
if (match) {
45+
matches.push({ line: i, text: match[0] });
46+
}
47+
}
48+
49+
// Find the known issues header, then find the next header after it.
50+
const knownIssuesHeader = matches.find((m) => m.text.includes('Known Issues'));
51+
if (knownIssuesHeader === undefined) {
52+
throw new Error('Could not find the known issues header in the changelog.');
53+
}
54+
const knownIssuesIndex = matches.indexOf(knownIssuesHeader);
55+
if (knownIssuesIndex === -1) {
56+
throw new Error('Could not find the known issues index in the matches.');
57+
}
58+
59+
// Insert a new header for the new version after the known issues header but before the next header.
60+
const lineToInsertAt = matches[knownIssuesIndex + 1].line - 1;
61+
console.log(`Inserting new version header at line ${lineToInsertAt}`);
62+
const linesToInsert = ['', `# ${newVersion}.x`];
63+
64+
changelogLines.splice(lineToInsertAt, 0, ...linesToInsert);
65+
fs.writeFileSync(changelogPath, changelogLines.join(os.EOL));
2666
});

0 commit comments

Comments
 (0)