提交 9b6c69c8 编写于 作者: B Benjamin Pasero

main - stackTraceLimit = 100

上级 9d578694
...@@ -10,6 +10,8 @@ perf.mark('main:started'); ...@@ -10,6 +10,8 @@ perf.mark('main:started');
// Perf measurements // Perf measurements
global.perfStartTime = Date.now(); global.perfStartTime = Date.now();
Error.stackTraceLimit = 100; // increase number of stack frames (from 10, https://github.com/v8/v8/wiki/Stack-Trace-API)
//#region Add support for using node_modules.asar //#region Add support for using node_modules.asar
(function () { (function () {
const path = require('path'); const path = require('path');
...@@ -366,7 +368,7 @@ function getNLSConfiguration(locale) { ...@@ -366,7 +368,7 @@ function getNLSConfiguration(locale) {
} }
target[module] = targetStrings; target[module] = targetStrings;
} }
writes.push(writeFile(path.join(coreLocation, bundle.replace(/\//g,'!') + '.nls.json'), JSON.stringify(target))); writes.push(writeFile(path.join(coreLocation, bundle.replace(/\//g, '!') + '.nls.json'), JSON.stringify(target)));
} }
writes.push(writeFile(translationsConfigFile, JSON.stringify(packConfig.translations))); writes.push(writeFile(translationsConfigFile, JSON.stringify(packConfig.translations)));
return Promise.all(writes); return Promise.all(writes);
......
...@@ -878,7 +878,9 @@ export class CodeWindow implements ICodeWindow { ...@@ -878,7 +878,9 @@ export class CodeWindow implements ICodeWindow {
} }
public send(channel: string, ...args: any[]): void { public send(channel: string, ...args: any[]): void {
this._win.webContents.send(channel, ...args); if (this._win) {
this._win.webContents.send(channel, ...args);
}
} }
public updateTouchBar(groups: ICommandAction[][]): void { public updateTouchBar(groups: ICommandAction[][]): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册