From a46fd0ee934c10e647009474f9d67539c953b5d8 Mon Sep 17 00:00:00 2001 From: Mike Kwon Date: Mon, 25 Jan 2021 19:50:06 -0500 Subject: [PATCH] fix: update `isUri()` to compare `fsPath` as `string` --- src/vs/base/common/uri.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/base/common/uri.ts b/src/vs/base/common/uri.ts index 8111602efc5..55a39c0f372 100644 --- a/src/vs/base/common/uri.ts +++ b/src/vs/base/common/uri.ts @@ -108,7 +108,7 @@ export class URI implements UriComponents { && typeof (thing).path === 'string' && typeof (thing).query === 'string' && typeof (thing).scheme === 'string' - && typeof (thing).fsPath === 'function' + && typeof (thing).fsPath === 'string' && typeof (thing).with === 'function' && typeof (thing).toString === 'function'; }