提交 986b5532 编写于 作者: J Joao Moreno

fixes #60664

上级 b7eb0f40
......@@ -11,6 +11,7 @@ import { URI } from 'vs/base/common/uri';
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
import { IWindowsMainService } from 'vs/platform/windows/electron-main/windows';
import { ReadyState } from 'vs/platform/windows/common/windows';
import { isWindows } from 'vs/base/common/platform';
function uriFromRawUrl(url: string): URI | null {
try {
......@@ -42,7 +43,9 @@ export class ElectronURLListener {
}
});
app.setAsDefaultProtocolClient(product.urlProtocol, process.execPath, ['--open-url', '--']);
if (isWindows) {
app.setAsDefaultProtocolClient(product.urlProtocol, process.execPath, ['--open-url', '--']);
}
const onOpenElectronUrl = mapEvent(
fromNodeEventEmitter(app, 'open-url', (event: Electron.Event, url: string) => ({ event, url })),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册