Skip to content

Commit c479e4e

Browse files
authored
Merge pull request #1369 from microsoft/back-to-nightly
Revert "Merge pull request #1361 from microsoft/feat/use-preview-builds"
2 parents c7e19ed + d6fb041 commit c479e4e

File tree

7 files changed

+30
-21
lines changed

7 files changed

+30
-21
lines changed

.ci/publish-nightly.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
trigger: none
21
pr: none
32

4-
schedules:
5-
- cron: '0 9 * * Mon-Thu'
6-
displayName: Nightly Release Schedule
7-
always: true
8-
branches:
9-
include:
10-
- main
11-
123
resources:
134
repositories:
145
- repository: templates
@@ -17,15 +8,22 @@ resources:
178
ref: main
189
endpoint: Monaco
1910

11+
parameters:
12+
- name: publishExtension
13+
displayName: 🚀 Publish Extension
14+
type: boolean
15+
default: true
16+
2017
extends:
2118
template: azure-pipelines/extension/pre-release.yml@templates
2219
parameters:
2320
workingDirectory: dist
21+
usePreReleaseChannel: false
2422
vscePackageArgs: --no-dependencies
2523
cgIgnoreDirectories: 'testdata,demos,.vscode-test'
2624
buildSteps:
2725
- script: npm install
2826
displayName: Install dependencies
2927

3028
- script: npm run compile -- package:prepare --nightly
31-
displayName: Package Stable
29+
displayName: Package

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changelog
22

3-
This changelog records changes to stable releases since 1.50.2. "TBA" changes here may be available in the pre-release version of the extension before they're in stable. Note that the minor version (`v1.X.0`) corresponds to the VS Code version js-debug is shipped in, but the patch version (`v1.50.X`) is not meaningful.
3+
This changelog records changes to stable releases since 1.50.2. "TBA" changes here may be available in the [nightly release](https://github.com/microsoft/vscode-js-debug/#nightly-extension) before they're in stable. Note that the minor version (`v1.X.0`) corresponds to the VS Code version js-debug is shipped in, but the patch version (`v1.50.X`) is not meaningful.
44

5-
## Prerelease (only)
5+
## Nightly (only)
66

77
- feat: make Deno easier to configure
88
- fix: path display issues in breakpoint diagnostic tool ([#1343](https://github.com/microsoft/vscode-js-debug/issues/1343))

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ This is a [DAP](https://microsoft.github.io/debug-adapter-protocol/)-based JavaS
1111

1212
### Nightly Extension
1313

14-
The shipped version of VS Code includes the js-debug version at the time of its release, however you may want to install our pre-release build to get the latest fixes and features. The build runs at 5PM PST on each day that there are changes ([see pipeline](https://dev.azure.com/vscode/VS%20Code%20debug%20adapters/_build?definitionId=28)). To get the build:
14+
The shipped version of VS Code includes the js-debug version at the time of its release, however you may want to install our nightly build to get the latest fixes and features. The nightly build runs at 5PM PST on each day that there are changes ([see pipeline](https://dev.azure.com/vscode/VS%20Code%20debug%20adapters/_build?definitionId=28)). To get the build:
1515

1616
1. Open the extensions view (ctrl+shift+x) and search for `@builtin @id:ms-vscode.js-debug`
17-
2. Right click on the `JavaScript Debugger` extension and select `Switch to Pre-Release Version`.
18-
3. Reload VS Code
17+
2. Right click on the `JavaScript Debugger` extension and `Disable` it.
18+
3. Search for `@id:ms-vscode.js-debug-nightly` in the extensions view.
19+
4. Install that extension.
1920

2021
## What's new?
2122

gulpfile.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ const nodeTargetsDir = `targets/node`;
4444
const isNightly = process.argv.includes('--nightly') || process.argv.includes('watch');
4545

4646
/**
47-
* Extension ID to build.
47+
* Extension ID to build. Appended with '-nightly' as necessary.
4848
*/
49-
const extensionName = 'js-debug';
49+
const extensionName = isNightly ? 'js-debug-nightly' : 'js-debug';
5050

5151
function runBuildScript(name) {
5252
return new Promise((resolve, reject) =>
@@ -100,6 +100,14 @@ gulp.task('compile:ts', () =>
100100
.pipe(gulp.dest(buildSrcDir)),
101101
);
102102

103+
async function fixNightlyReadme() {
104+
const readmePath = `${buildDir}/README.md`;
105+
const readmeText = await readFile(readmePath);
106+
const readmeNightlyText = await readFile(`README.nightly.md`);
107+
108+
await writeFile(readmePath, readmeNightlyText + '\n' + readmeText);
109+
}
110+
103111
const getVersionNumber = () => {
104112
if (process.env.JS_DEBUG_VERSION) {
105113
return process.env.JS_DEBUG_VERSION;
@@ -128,8 +136,10 @@ gulp.task('compile:dynamic', async () => {
128136
let packageJson = await readJson(`${buildDir}/package.json`);
129137
packageJson.name = extensionName;
130138
if (isNightly) {
139+
packageJson.displayName += ' (Nightly)';
131140
packageJson.version = getVersionNumber();
132-
packageJson.isNightly = true;
141+
packageJson.preview = true;
142+
await fixNightlyReadme();
133143
}
134144

135145
packageJson = deepmerge(packageJson, contributions);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"description": "An extension for debugging Node.js programs and Chrome.",
1717
"license": "MIT",
1818
"engines": {
19-
"vscode": "^1.71.0-insider",
19+
"vscode": "^1.67.0-insider",
2020
"node": ">=10"
2121
},
2222
"icon": "resources/logo.png",

src/binder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ function warnNightly(dap: Dap.Api): void {
503503
if (isNightly) {
504504
dap.output({
505505
category: 'console',
506-
output: `Note: Using the pre-release version of js-debug\n`,
506+
output: `Note: Using the "preview" debug extension\n`,
507507
});
508508
}
509509
}

src/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,5 +1134,5 @@ export const breakpointLanguages: ReadonlyArray<string> = [
11341134
export const packageName: string = pkg.name;
11351135
export const packageVersion: string = pkg.version;
11361136
export const packagePublisher: string = pkg.publisher;
1137-
export const isNightly = !!pkg.isNightly;
1137+
export const isNightly = packageName.includes('nightly');
11381138
export const extensionId = `${packagePublisher}.${packageName}`;

0 commit comments

Comments
 (0)