71
return { type: 'failure', reason: ShellIntegrationInjectionFailureReason.FeatureTerminal };
72
}
73
>
// The ignoreShellIntegration flag is passed (eg. relaunching without shell integration)
terminalEnvironment.ts
74
>
if (shellLaunchConfig.ignoreShellIntegration) {
75
return { type: 'failure', reason: ShellIntegrationInjectionFailureReason.IgnoreShellIntegrationFlag };
76
}
78
>
const windowsBuildNumber = isWindows ? await getWindowsBuildNumberAsync() : 0;
79
if (isWindows && windowsBuildNumber < 18309) {
80
return { type: 'failure', reason: ShellIntegrationInjectionFailureReason.UnsupportedWindowsBuild };
81
}
83
>
const originalArgs = shellLaunchConfig.args;
84
const shell = process.platform === 'win32' ? path.basename(shellLaunchConfig.executable).toLowerCase() : path.basename(shellLaunchConfig.executable);
85
const appRoot = path.dirname(FileAccess.asFileUri('').fsPath);