mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Do not attempt to reopen files that lead to a crash in previous session (fix #114844)
This commit is contained in:
@@ -67,8 +67,10 @@ export class Application {
|
||||
}
|
||||
|
||||
async restart(options?: { workspaceOrFolder?: string; extraArgs?: string[] }): Promise<void> {
|
||||
await this.stop();
|
||||
await this._start(options?.workspaceOrFolder, options?.extraArgs);
|
||||
await measureAndLog((async () => {
|
||||
await this.stop();
|
||||
await this._start(options?.workspaceOrFolder, options?.extraArgs);
|
||||
})(), 'Application#restart()', this.logger);
|
||||
}
|
||||
|
||||
private async _start(workspaceOrFolder = this.workspacePathOrFolder, extraArgs: string[] = []): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user