Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export class ElectronPtyHostStarter extends Disposable implements IPtyHostStarte
entryPoint: 'vs/platform/terminal/node/ptyHostMain',
execArgv,
args: ['--logsPath', this._environmentMainService.logsHome.with({ scheme: Schemas.file }).fsPath],
env: this._createPtyHostConfiguration()
env: this._createPtyHostConfiguration(),
disclaim: true
});

const port = this.utilityProcess.connect();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ export interface IUtilityProcessConfiguration {
*/
readonly allowLoadingUnsignedLibraries?: boolean;

/**
* On macOS, the flag allows TCC prompts to be attributed
* to the utility process instead of the main application.
*/
readonly disclaim?: boolean;

/**
* Used in log messages to correlate the process
* with other components.
Expand Down Expand Up @@ -247,6 +253,7 @@ export class UtilityProcess extends Disposable {
const args = this.configuration.args ?? [];
const execArgv = [...(this.configuration.execArgv ?? [])];
const allowLoadingUnsignedLibraries = this.configuration.allowLoadingUnsignedLibraries;
const disclaim = this.configuration.disclaim;
const jsFlags = app.commandLine.getSwitchValue('js-flags');
if (jsFlags) {
execArgv.push(`--js-flags=${jsFlags}`);
Expand All @@ -263,6 +270,7 @@ export class UtilityProcess extends Disposable {
env,
execArgv, // !!! Add `--trace-warnings` for node.js tracing !!!
allowLoadingUnsignedLibraries,
disclaim,
respondToAuthRequestsFromMainProcess,
stdio
});
Expand Down
Loading