提交 91b4159c 编写于 作者: B Benjamin Pasero

stdin - ignore tmp files from recent history

上级 e5808be1
......@@ -476,7 +476,9 @@ export class WindowsManager implements IWindowsMainService {
}
});
this.historyMainService.addRecentlyOpened(recentlyOpenedWorkspaces, recentlyOpenedFiles);
if (!this.environmentService.skipAddToRecentlyOpened) {
this.historyMainService.addRecentlyOpened(recentlyOpenedWorkspaces, recentlyOpenedFiles);
}
}
// If we got started with --wait from the CLI, we need to signal to the outside when the window
......
......@@ -88,8 +88,9 @@ export async function main(argv: string[]): TPromise<any> {
// Make sure to open tmp file
argv.push(stdinFilePath);
// Enable --wait to get all data
// Enable --wait to get all data and ignore adding this to history
argv.push('--wait');
argv.push('--skip-add-to-recently-opened');
args.wait = true;
} catch (error) {
stdinFileError = error;
......
......@@ -47,6 +47,7 @@ export interface ParsedArgs {
'install-source'?: string;
'disable-updates'?: string;
'disable-crash-reporter'?: string;
'skip-add-to-recently-opened'?: boolean;
}
export const IEnvironmentService = createDecorator<IEnvironmentService>('environmentService');
......@@ -104,6 +105,8 @@ export interface IEnvironmentService {
skipGettingStarted: boolean | undefined;
skipAddToRecentlyOpened: boolean;
mainIPCHandle: string;
sharedIPCHandle: string;
......
......@@ -51,7 +51,8 @@ const options: minimist.Opts = {
'sticky-quickopen',
'disable-telemetry',
'disable-updates',
'disable-crash-reporter'
'disable-crash-reporter',
'skip-add-to-recently-opened'
],
alias: {
add: 'a',
......
......@@ -104,6 +104,8 @@ export class EnvironmentService implements IEnvironmentService {
get skipGettingStarted(): boolean { return this._args['skip-getting-started']; }
get skipAddToRecentlyOpened(): boolean { return this._args['skip-add-to-recently-opened']; }
@memoize
get debugExtensionHost(): IExtensionHostDebugParams { return parseExtensionHostPort(this._args, this.isBuilt); }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册