Defer Catalog Explorer (and especially Snowflake SDK) load until needed#14982
Merged
Conversation
|
E2E Tests 🚀 Why these tags?
More on automatic tags from changed files. |
isabelizimm
approved these changes
Jul 20, 2026
isabelizimm
left a comment
Contributor
There was a problem hiding this comment.
enabling/disabling and adding snowflake providers still acting as normal, LGTM! thanks 🙌
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Catalog Explorer extension activated on every Positron startup (
onStartupFinished) even though it is experimental and disabled by default, and it statically importedsnowflake-sdk-- a large module with a sizable dependency tree -- pulling the whole SDK into the extension host's memory at activation regardless of whether the user ever used Snowflake.This PR makes the extension load on demand and shrinks its resident footprint:
activationEventschanges fromonStartupFinishedtoonView:catalog-explorerplusonCommand:for the palette commands. All of these are gated onconfig.catalogExplorer.enabled, so the extension (and its module graph) only loads once the feature is actually enabled and used. Enabling now takes effect live without a restart, since flipping the setting reveals the view and triggers activation.snowflake-sdkload. The SDK is now imported via a cached dynamicimport()inside a loader that runs only when the user connects to Snowflake. The type-only import is retained for compile-time types. The Databricks path uses plainfetchand pulls in nothing heavy, so users who never touch Snowflake never pay for the SDK.Release Notes
New Features
Bug Fixes
QA Notes
@:catalog-explorer
catalogExplorer.enabledoff (default), confirm the extension does not activate on startup and the Catalog Explorer view is hidden.catalogExplorer.enabledand confirm the Catalog Explorer view appears and the extension activates without a restart.snowflake-sdk).