Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VS Code: Reload window on first activation event (#4989)
CLOSE https://linear.app/sourcegraph/issue/CODY-3007/new-sidebar-ui-does-not-get-picked-up-on-extension-reload Add a condition to check if `newSidebarChatUI_isReloaded` has been set before or not. If not, reload the window to ensure the new webview is registered before the extension host is activated. After discussing with @kalanchan and @vovakulikov , we think this is a better approach than showing the CTA to ask users to reload without knowing if the user has reloaded or not. ## Test plan <!-- Required. See https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles. --> Green CI - The extension should not be affected by this change and work as expected. ## Changelog <!-- OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c -->
- Loading branch information