mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Refresh master with initial release/0.24 snapshot (#332)
* Initial port of release/0.24 source code * Fix additional headers * Fix a typo in launch.json
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
import Event, { mapEvent, chain, echo, Emitter, any } from 'vs/base/common/event';
|
||||
import Event, { mapEvent, chain, echo, Emitter, anyEvent } 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/node/product';
|
||||
@@ -39,7 +39,7 @@ export class URLService implements IURLService {
|
||||
// echo all `onOpenUrl` events to each listener
|
||||
const bufferedOnOpenUrl = echo(preventedOnOpenUrl, true, initialBuffer);
|
||||
|
||||
this.onOpenURL = chain(any(bufferedOnOpenUrl, this.openUrlEmitter.event))
|
||||
this.onOpenURL = chain(anyEvent(bufferedOnOpenUrl, this.openUrlEmitter.event))
|
||||
.map(url => {
|
||||
try {
|
||||
return URI.parse(url);
|
||||
@@ -54,4 +54,4 @@ export class URLService implements IURLService {
|
||||
open(url: string): void {
|
||||
this.openUrlEmitter.fire(url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user