提交 e9632189 编写于 作者: J Joao Moreno

use win32MutexName

fixes #972
上级 e8d7dd2d
...@@ -31,6 +31,7 @@ export interface IProductConfiguration { ...@@ -31,6 +31,7 @@ export interface IProductConfiguration {
} }
}; };
win32AppUserModelId: string; win32AppUserModelId: string;
win32MutexName: string;
dataFolderName: string; dataFolderName: string;
downloadUrl: string; downloadUrl: string;
updateUrl: string; updateUrl: string;
......
...@@ -90,7 +90,7 @@ function main(ipcServer: Server, userEnv: env.IProcessEnvironment): void { ...@@ -90,7 +90,7 @@ function main(ipcServer: Server, userEnv: env.IProcessEnvironment): void {
let windowsMutex: Mutex = null; let windowsMutex: Mutex = null;
try { try {
const Mutex = (<any>require.__$__nodeRequire('windows-mutex')).Mutex; const Mutex = (<any>require.__$__nodeRequire('windows-mutex')).Mutex;
windowsMutex = new Mutex('vscode'); windowsMutex = new Mutex(env.product.win32MutexName);
} catch (e) { } catch (e) {
// noop // noop
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册