File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -608,8 +608,8 @@ async function suggestInsidersChannel(): Promise<void> {
608608 if ( ! suggestInsiders . Value ) {
609609 return ;
610610 }
611- if ( vscode . env . uiKind === vscode . UIKind . Web ) {
612- // Do not prompt users of Web-based Codespaces to join Insiders.
611+ if ( util . isCodespaces ( ) ) {
612+ // Do not prompt users of Codespaces to join Insiders.
613613 return ;
614614 }
615615 let buildInfo : BuildInfo | undefined ;
Original file line number Diff line number Diff line change @@ -1273,3 +1273,7 @@ export function getUniqueWorkspaceName(workspaceFolder: vscode.WorkspaceFolder):
12731273export function getUniqueWorkspaceStorageName ( workspaceFolder : vscode . WorkspaceFolder ) : string {
12741274 return getUniqueWorkspaceNameHelper ( workspaceFolder , true ) ;
12751275}
1276+
1277+ export function isCodespaces ( ) : boolean {
1278+ return ! ! process . env [ "CODESPACES" ] ;
1279+ }
You can’t perform that action at this time.
0 commit comments