Skip to content

Commit 03394ab

Browse files
committed
Remove getWindowsBuildNumber from terminal task system
Per discussion in microsoft#67855, using the build number didn't solve the issue. For web we need to remove this dependency anyway. Part of microsoft#69113
1 parent a1a8636 commit 03394ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/contrib/tasks/electron-browser/terminalTaskSystem.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { REMOTE_HOST_SCHEME } from 'vs/platform/remote/common/remoteHosts';
4242
import { URI } from 'vs/base/common/uri';
4343
import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
4444
import { Schemas } from 'vs/base/common/network';
45-
import { getWindowsBuildNumber, getDefaultShell } from 'vs/workbench/contrib/terminal/node/terminal';
45+
import { getDefaultShell } from 'vs/workbench/contrib/terminal/node/terminal';
4646
import { IPanelService } from 'vs/workbench/services/panel/common/panelService';
4747

4848
interface TerminalData {
@@ -802,7 +802,7 @@ export class TerminalTaskSystem implements ITaskSystem {
802802
toAdd.push('-c');
803803
}
804804
} else if (basename === 'wsl.exe') {
805-
if (!shellSpecified && (getWindowsBuildNumber() >= 17763)) { // See https://github.com/Microsoft/vscode/issues/67855
805+
if (!shellSpecified) {
806806
toAdd.push('-e');
807807
}
808808
} else {

0 commit comments

Comments
 (0)