Skip to content

Commit ae90f6d

Browse files
committed
uri - export as URI and as default
1 parent c3ff42d commit ae90f6d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/vs/base/common/resources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'use strict';
66

77
import * as paths from 'vs/base/common/paths';
8-
import URI from 'vs/base/common/uri';
8+
import { URI } from 'vs/base/common/uri';
99
import { equalsIgnoreCase } from 'vs/base/common/strings';
1010
import { Schemas } from 'vs/base/common/network';
1111
import { isLinux, isWindows } from 'vs/base/common/platform';

src/vs/base/common/uri.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const _regexp = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
8282
* / \ / \
8383
* urn:example:animal:ferret:nose
8484
*/
85-
export default class URI implements UriComponents {
85+
export class URI implements UriComponents {
8686

8787
static isUri(thing: any): thing is URI {
8888
if (thing instanceof URI) {
@@ -355,6 +355,8 @@ export default class URI implements UriComponents {
355355
}
356356
}
357357

358+
export default URI;
359+
358360
export interface UriComponents {
359361
scheme: string;
360362
authority: string;

0 commit comments

Comments
 (0)