Skip to content

Show the version 3 pre-release invitation in each window until "Don't show again" - #2341

Merged
louis-johnston-db merged 2 commits into
mainfrom
louis/prerelease-invitation-every-window
Nov 23, 2026
Merged

louis-johnston-db merged 2 commits into
mainfrom
louis/prerelease-invitation-every-window

Conversation

@louis-johnston-db

Copy link
Copy Markdown
Contributor

Changes

The version 3 pre-release invitation (#2331) was shown once per machine. It's now shown once in each new window, until the user chooses "Don't show again" or switches to the pre-release.

 showIfDue (5 s after the bundle connection is up)
-  if shown (global state): return
-  set shown
+  if shown in this window or hidden (global state): return
+  remember it's shown in this window
   ask: Switch | Release Notes | Don't show again
-    Switch: install the pre-release, offer Reload
+    Switch: install the pre-release, set hidden, offer Reload
+    Don't show again: set hidden
     Release Notes, closed: nothing (shown again in the next window)
  • New "Don't show again" button. "Switch to Pre-Release Version" becomes "Switch to Pre-Release", so all three labels fit (with the longer label, VS Code 1.146 on Linux cut off all three).
  • "Don't show again" and a successful switch set databricks.prereleaseInvitation.hidden. hidden is written before the Reload prompt, since the reload ends the extension host. A failed switch leaves the invitation on.
  • A reconnect in the same window doesn't show it again.
  • The 2.24.0 key databricks.prereleaseInvitation.shown isn't read any more, so users who saw the one-time invitation see it again. That includes users who switched from it and later went back to version 2; 2.24.0 didn't record which answer they gave.
  • Unchanged: signed-in windows only; local VS Code or Insiders 1.128.0+, no forks or remote windows; not offered from 2026-12-03 (UTC); the switch and reload flow.

Telemetry

prereleaseInvitation gets the answer dontShowAgain. shown is now recorded once per window, so it counts showings rather than machines.

Tests

  • PreReleaseInvitationManager.test.ts (MOCHA_GREP=PreReleaseInvitation yarn run test:unit, VS Code 1.138.0): 18 tests, up from 13. New tests:

    • shown once per window, also after a reconnect;
    • shown again in a new window after it's closed, after Release Notes and after a failed switch;
    • not shown in a new window after "Don't show again" or a switch, and hidden is already set when Reload Window runs;
    • shown when the 2.24.0 shown key is set.

    The prompt stub now answers only with buttons the notification offers. Each new behaviour fails a test when broken in the compiled code (12 mutations).

  • Full unit suite: 1592 passing, 11 pending.

  • In VS Code 1.146.0 on Linux, with the real notifications and a fake connected state:

    • one user data folder across three restarts: closed in the first window, shown again in the second; "Don't show again" there, not shown in the third;
    • with the 2.24.0 shown key set: still shown;
    • "Switch to Pre-Release", then "Reload Window", against a mock Marketplace: the pre-release is installed and hidden is set.

This pull request and its description were written by Isaac.

louis-johnston-db and others added 2 commits November 23, 2026 14:09
… show again"

The invitation was shown once per machine. It's now shown once in each
new window until the user chooses "Don't show again" or switches to the
pre-release, which set databricks.prereleaseInvitation.hidden. Closing it,
Release Notes or a failed switch leave it on for the next window. The
2.24.0 "shown" key is no longer read. "Switch to Pre-Release Version"
becomes "Switch to Pre-Release" so all three buttons fit.

Co-authored-by: Isaac <no-reply@databricks.com>
…ored

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions

Copy link
Copy Markdown
Contributor

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/vscode

Inputs:

  • PR number: 2341
  • Commit SHA: 2e06f15500d68415d8946ffe1a52fd218404a2fa

Checks will be approved automatically on success.

@louis-johnston-db
louis-johnston-db merged commit 11f16f8 into main Nov 23, 2026
10 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
louis-johnston-db added a commit that referenced this pull request Nov 23, 2026
## packages/databricks-vscode
##  (2026-11-23)

* Show the version 3 pre-release invitation in each window until "Don't
show again" (#2341)
([11f16f8](11f16f8)),
closes
[#2341](#2341)
[#2331](#2331)



## packages/databricks-vscode-types
##  (2026-11-23)

---------

Co-authored-by: releasebot <noreply@github.com>
Co-authored-by: Louis Johnston <louis.johnston@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
@louis-johnston-db
louis-johnston-db deleted the louis/prerelease-invitation-every-window branch November 25, 2026 16:00

This branch was previously deployed

1 inactive deployment
test-trigger-is — 2e06f155 Deployed Nov 23, 2026 by louis-johnston-db via Trigger Tests #2592
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants