Skip to content

Commit fd8dd51

Browse files
committed
1 parent 11f3201 commit fd8dd51

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/vs/platform/url/common/urlService.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ import { IURLService, IURLHandler } from 'vs/platform/url/common/url';
77
import { URI } from 'vs/base/common/uri';
88
import { IDisposable, toDisposable } from 'vs/base/common/lifecycle';
99
import { first } from 'vs/base/common/async';
10-
11-
declare module Array {
12-
function from<T>(set: Set<T>): T[];
13-
}
10+
import { values } from 'vs/base/common/map';
1411

1512
export class URLService implements IURLService {
1613

@@ -19,7 +16,7 @@ export class URLService implements IURLService {
1916
private handlers = new Set<IURLHandler>();
2017

2118
open(uri: URI): Promise<boolean> {
22-
const handlers = Array.from(this.handlers);
19+
const handlers = values(this.handlers);
2320
return first(handlers.map(h => () => h.handleURL(uri)), undefined, false).then(val => val || false);
2421
}
2522

0 commit comments

Comments
 (0)