[ide-mode] Update sandbox detection logic to support macos seatbelt (#6005)
Co-authored-by: matt korwel <matt.korwel@gmail.com>
This commit is contained in:
parent
c0f5f6a5f6
commit
94b6199943
|
@ -365,9 +365,6 @@ export class IdeClient {
|
|||
|
||||
function getIdeServerHost() {
|
||||
const isInContainer =
|
||||
fs.existsSync('/.dockerenv') ||
|
||||
fs.existsSync('/run/.containerenv') ||
|
||||
!!process.env.SANDBOX ||
|
||||
!!process.env.container;
|
||||
fs.existsSync('/.dockerenv') || fs.existsSync('/run/.containerenv');
|
||||
return isInContainer ? 'host.docker.internal' : 'localhost';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue