Fix time range for restart detection

This commit is contained in:
Matt Bierner
2019-10-21 17:18:14 -07:00
parent c10b3b7426
commit ab4e86df8d

View File

@@ -515,7 +515,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
}
*/
this.logTelemetry('serviceExited');
} else if (diff < 60 * 1000 /* 1 Minutes */) {
} else if (diff < 60 * 1000 * 5 /* 5 Minutes */) {
this.lastStart = Date.now();
prompt = vscode.window.showWarningMessage<MyMessageItem>(
localize('serverDied', 'The TypeScript language service died unexpectedly 5 times in the last 5 Minutes.'),