Skip to content

Commit 9b6c69c

Browse files
author
Benjamin Pasero
committed
main - stackTraceLimit = 100
1 parent 9d57869 commit 9b6c69c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ perf.mark('main:started');
1010
// Perf measurements
1111
global.perfStartTime = Date.now();
1212

13+
Error.stackTraceLimit = 100; // increase number of stack frames (from 10, https://github.com/v8/v8/wiki/Stack-Trace-API)
14+
1315
//#region Add support for using node_modules.asar
1416
(function () {
1517
const path = require('path');
@@ -366,7 +368,7 @@ function getNLSConfiguration(locale) {
366368
}
367369
target[module] = targetStrings;
368370
}
369-
writes.push(writeFile(path.join(coreLocation, bundle.replace(/\//g,'!') + '.nls.json'), JSON.stringify(target)));
371+
writes.push(writeFile(path.join(coreLocation, bundle.replace(/\//g, '!') + '.nls.json'), JSON.stringify(target)));
370372
}
371373
writes.push(writeFile(translationsConfigFile, JSON.stringify(packConfig.translations)));
372374
return Promise.all(writes);

src/vs/code/electron-main/window.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,9 @@ export class CodeWindow implements ICodeWindow {
878878
}
879879

880880
public send(channel: string, ...args: any[]): void {
881-
this._win.webContents.send(channel, ...args);
881+
if (this._win) {
882+
this._win.webContents.send(channel, ...args);
883+
}
882884
}
883885

884886
public updateTouchBar(groups: ICommandAction[][]): void {

0 commit comments

Comments
 (0)