From ae90f6dea175523f2ef94c3028cea43a55db8f34 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Mon, 27 Aug 2018 15:12:08 +0200 Subject: [PATCH] uri - export as URI and as `default` --- src/vs/base/common/resources.ts | 2 +- src/vs/base/common/uri.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vs/base/common/resources.ts b/src/vs/base/common/resources.ts index ac6103d1ae0..2a5d7d8b083 100644 --- a/src/vs/base/common/resources.ts +++ b/src/vs/base/common/resources.ts @@ -5,7 +5,7 @@ 'use strict'; import * as paths from 'vs/base/common/paths'; -import URI from 'vs/base/common/uri'; +import { URI } from 'vs/base/common/uri'; import { equalsIgnoreCase } from 'vs/base/common/strings'; import { Schemas } from 'vs/base/common/network'; import { isLinux, isWindows } from 'vs/base/common/platform'; diff --git a/src/vs/base/common/uri.ts b/src/vs/base/common/uri.ts index 971bd2f13b0..da94fab5a40 100644 --- a/src/vs/base/common/uri.ts +++ b/src/vs/base/common/uri.ts @@ -82,7 +82,7 @@ const _regexp = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/; * / \ / \ * urn:example:animal:ferret:nose */ -export default class URI implements UriComponents { +export class URI implements UriComponents { static isUri(thing: any): thing is URI { if (thing instanceof URI) { @@ -355,6 +355,8 @@ export default class URI implements UriComponents { } } +export default URI; + export interface UriComponents { scheme: string; authority: string;