propagate product.urlProtocol

This commit is contained in:
Joao Moreno 2016-08-05 12:26:26 +02:00
parent 36e96174e0
commit 7ab8a18a02
3 changed files with 4 additions and 2 deletions

View file

@ -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,

View file

@ -13,6 +13,7 @@ export interface IProductConfiguration {
win32AppUserModelId: string;
win32MutexName: string;
darwinBundleIdentifier: string;
urlProtocol: string;
dataFolderName: string;
downloadUrl: string;
updateUrl?: string;

View file

@ -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);
}
}