propagate product.urlProtocol
This commit is contained in:
parent
36e96174e0
commit
7ab8a18a02
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue