Skip to content

Commit 7ab8a18

Browse files
committed
propagate product.urlProtocol
1 parent 36e9617 commit 7ab8a18

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

build/gulpfile.vscode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const config = {
111111
darwinBundleURLTypes: [{
112112
role: 'Viewer',
113113
name: product.nameLong,
114-
urlSchemes: ['vscode']
114+
urlSchemes: [product.urlProtocol]
115115
}],
116116
darwinCredits: darwinCreditsTemplate ? new Buffer(darwinCreditsTemplate({ commit: commit, date: new Date().toISOString() })) : void 0,
117117
linuxExecutableName: product.applicationName,

src/vs/platform/product.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export interface IProductConfiguration {
1313
win32AppUserModelId: string;
1414
win32MutexName: string;
1515
darwinBundleIdentifier: string;
16+
urlProtocol: string;
1617
dataFolderName: string;
1718
downloadUrl: string;
1819
updateUrl?: string;

src/vs/platform/url/electron-main/urlService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import Event, {mapEvent} from 'vs/base/common/event';
99
import {fromEventEmitter} from 'vs/base/node/event';
1010
import {IURLService} from 'vs/platform/url/common/url';
11+
import product from 'vs/platform/product';
1112
import {app} from 'electron';
1213

1314
export class URLService implements IURLService {
@@ -24,6 +25,6 @@ export class URLService implements IURLService {
2425
return url;
2526
});
2627

27-
// app.setAsDefaultProtocolClient('vscode');
28+
app.setAsDefaultProtocolClient(product.urlProtocol);
2829
}
2930
}

0 commit comments

Comments
 (0)