Skip to content

Commit

Permalink
Update codespaces check to also include VS Code remoting codespaces (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Colengms authored Feb 11, 2021
1 parent 9d4238b commit 256d0cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Extension/src/LanguageServer/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,8 @@ async function suggestInsidersChannel(): Promise<void> {
if (!suggestInsiders.Value) {
return;
}
if (vscode.env.uiKind === vscode.UIKind.Web) {
// Do not prompt users of Web-based Codespaces to join Insiders.
if (util.isCodespaces()) {
// Do not prompt users of Codespaces to join Insiders.
return;
}
let buildInfo: BuildInfo | undefined;
Expand Down
4 changes: 4 additions & 0 deletions Extension/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1273,3 +1273,7 @@ export function getUniqueWorkspaceName(workspaceFolder: vscode.WorkspaceFolder):
export function getUniqueWorkspaceStorageName(workspaceFolder: vscode.WorkspaceFolder): string {
return getUniqueWorkspaceNameHelper(workspaceFolder, true);
}

export function isCodespaces(): boolean {
return !!process.env["CODESPACES"];
}

0 comments on commit 256d0cd

Please sign in to comment.