We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acae7ea commit 88f2bd1Copy full SHA for 88f2bd1
server/src/editorServices.ts
@@ -3035,7 +3035,15 @@ export class LineLeaf implements LineCollection {
3035
function logServiceTimes(logger: Logger, service: ng.LanguageService): ng.LanguageService {
3036
function time<T>(name: string, cb: () => T): T {
3037
const start = Date.now();
3038
- const result = cb();
+ let result: T = null;
3039
+ try{
3040
+ result = cb();
3041
+ } catch (error) {
3042
+ logger.msg(
3043
+ `Error for ${name}:\n` +
3044
+ ` ${error.stack || error}`
3045
+ );
3046
+ }
3047
logger.msg(`${name}: ${Date.now() - start}ms`);
3048
return result;
3049
}
0 commit comments