mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
make static terminal code wait for lazyEnv, #16508
This commit is contained in:
@@ -10,7 +10,7 @@ import { TPromise } from 'vs/base/common/winjs.base';
|
||||
|
||||
export const DEFAULT_TERMINAL_LINUX_READY = new TPromise<string>(c => {
|
||||
if (env.isLinux) {
|
||||
pfs.exists('/etc/debian_version').then(isDebian => {
|
||||
TPromise.join([pfs.exists('/etc/debian_version'), process.lazyEnv]).then(([isDebian]) => {
|
||||
if (isDebian) {
|
||||
c('x-terminal-emulator');
|
||||
} else if (process.env.DESKTOP_SESSION === 'gnome' || process.env.DESKTOP_SESSION === 'gnome-classic') {
|
||||
|
||||
Reference in New Issue
Block a user