Skip to content

Commit 8696cfd

Browse files
Add --pre-release flag back to preview-package script (#1783)
1 parent d6ca9d1 commit 8696cfd

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

CHANGELOG.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,22 @@
44

55
### Added
66

7+
- Prompt to restart `SourceKit-LSP` after changing `.sourcekit-lsp/config.json` files ([#1744](https://github.com/swiftlang/vscode-swift/issues/1744))
8+
- Prompt to cancel and replace the active test run if one is in flight ([#1774](https://github.com/swiftlang/vscode-swift/pull/1774))
9+
- A walkthrough for first time extension users ([#1560](https://github.com/swiftlang/vscode-swift/issues/1560))
10+
11+
## 2.11.20250806 - 2025-08-06
12+
13+
### Added
14+
715
- New `swift.createTasksForLibraryProducts` setting that when enabled causes the extension to automatically create and provide tasks for library products ([#1741](https://github.com/swiftlang/vscode-swift/pull/1741))
816
- New `swift.outputChannelLogLevel` setting to control the verbosity of the `Swift` output channel ([#1746](https://github.com/swiftlang/vscode-swift/pull/1746))
917
- New `swift.debugTestsMultipleTimes` and `swift.debugTestsUntilFailure` commands for debugging tests over multiple runs ([#1763](https://github.com/swiftlang/vscode-swift/pull/1763))
1018
- Optionally include LLDB DAP logs in the Swift diagnostics bundle ([#1768](https://github.com/swiftlang/vscode-swift/pull/1758))
11-
- Prompt to restart `SourceKit-LSP` after changing `.sourcekit-lsp/config.json` files ([#1744](https://github.com/swiftlang/vscode-swift/issues/1744))
12-
- Prompt to cancel and replace the active test run if one is in flight ([#1774](https://github.com/swiftlang/vscode-swift/pull/1774))
1319

1420
### Changed
21+
1522
- Added log levels and improved Swift extension logging so a logfile is produced in addition to logging messages to the existing `Swift` output channel. Deprecated the `swift.diagnostics` setting in favour of the new `swift.outputChannelLogLevel` setting ([#1746](https://github.com/swiftlang/vscode-swift/pull/1746))
16-
- A walkthrough for first time extension users ([#1560](https://github.com/swiftlang/vscode-swift/issues/1560))
1723

1824
## 2.10.0 - 2025-07-28
1925

scripts/lib/utilities.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ export async function updateChangelog(version: string): Promise<string> {
146146
return tempChangelog;
147147
}
148148

149-
export async function packageExtension(version: string) {
149+
export interface PackageExtensionOptions {
150+
preRelease?: boolean;
151+
}
152+
153+
export async function packageExtension(version: string, options: PackageExtensionOptions = {}) {
150154
// Update version in a temporary CHANGELOG
151155
const changelogPath = await updateChangelog(version);
152156

@@ -160,6 +164,7 @@ export async function packageExtension(version: string) {
160164
[
161165
"vsce",
162166
"package",
167+
...(options.preRelease === true ? ["--pre-release"] : []),
163168
"--allow-package-secrets",
164169
"sendgrid",
165170
"--no-update-package-json",

scripts/preview_package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ main(async () => {
4141
" The version in the package.json has probably been incorrectly set to an odd minor version."
4242
);
4343
}
44-
await packageExtension(previewVersion);
44+
await packageExtension(previewVersion, { preRelease: true });
4545
});

0 commit comments

Comments
 (0)