Skip to content
Prev Previous commit
Next Next commit
Disable experiment on multiroot workspace in remote termianls
  • Loading branch information
Kartik Raj
Kartik Raj committed Aug 11, 2023
commit 617014cbeb65ccc8808668c49d2638c4e803c2f9
5 changes: 5 additions & 0 deletions src/client/common/experiments/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@

'use strict';

import { env, workspace } from 'vscode';
import { IExperimentService } from '../types';
import { TerminalEnvVarActivation } from './groups';

export function inTerminalEnvVarExperiment(experimentService: IExperimentService): boolean {
if (workspace.workspaceFile && env.remoteName) {
// TODO: Remove this if statement once https://github.com/microsoft/vscode/issues/180486 is fixed.
return false;
}
if (!experimentService.inExperimentSync(TerminalEnvVarActivation.experiment)) {
return false;
}
Expand Down