提交 7ab8a18a 编写于 作者: J Joao Moreno

propagate product.urlProtocol

上级 36e96174
......@@ -111,7 +111,7 @@ const config = {
darwinBundleURLTypes: [{
role: 'Viewer',
name: product.nameLong,
urlSchemes: ['vscode']
urlSchemes: [product.urlProtocol]
}],
darwinCredits: darwinCreditsTemplate ? new Buffer(darwinCreditsTemplate({ commit: commit, date: new Date().toISOString() })) : void 0,
linuxExecutableName: product.applicationName,
......
......@@ -13,6 +13,7 @@ export interface IProductConfiguration {
win32AppUserModelId: string;
win32MutexName: string;
darwinBundleIdentifier: string;
urlProtocol: string;
dataFolderName: string;
downloadUrl: string;
updateUrl?: string;
......
......@@ -8,6 +8,7 @@
import Event, {mapEvent} from 'vs/base/common/event';
import {fromEventEmitter} from 'vs/base/node/event';
import {IURLService} from 'vs/platform/url/common/url';
import product from 'vs/platform/product';
import {app} from 'electron';
export class URLService implements IURLService {
......@@ -24,6 +25,6 @@ export class URLService implements IURLService {
return url;
});
// app.setAsDefaultProtocolClient('vscode');
app.setAsDefaultProtocolClient(product.urlProtocol);
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册