alefragnani / vscode-whats-new

VS Code submodule for a What's New page
MIT License
28 stars 7 forks source link

[FEATURE] - Avoid displaying the webview while running on Codespaces #23

Closed alefragnani closed 3 years ago

alefragnani commented 3 years ago

This follows a similar idea from #10 , which tends to minimize unnecessary displays of the What’s New window.

Today, when the “What’s New” window appears every time you connect to a Codespace, simply because Codespaces installs the extension when it is started/initialized. The same happens if you decide to install the extension on a remote environment (Docker, SSH, WLS).

On these scenarios, the webview shouldn’t be displayed, because there is nothing new to display.

Let’s see how https://github.com/microsoft/vscode/issues/102139 will work on these scenarios, when released. Maybe we could use the same approach, or even the API.

alefragnani commented 3 years ago

I couldn't find how to detect if "I'm installed on Remote, instead of simply running on Remote", so for now, it will only ignore Codespaces. But I still want to avoid display the WebviewPanelSerializer when installed on remote.