From 8af939fd4d921a0ff07101c93d043e4a811a711d Mon Sep 17 00:00:00 2001 From: tzAcee Date: Sun, 12 Nov 2023 18:50:26 +0100 Subject: [PATCH 1/4] import URI (vscode-uri) via import { URI } --- src/server/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/utils.ts b/src/server/utils.ts index bc719d79..2fa43d00 100644 --- a/src/server/utils.ts +++ b/src/server/utils.ts @@ -3,7 +3,7 @@ import path from 'node:path' import { fsProviderExtensionPrefix, fsProviderFolderUri } from './constants.js' -const { URI } = (await import('vscode-uri')).default +import {URI} from "vscode-uri"; export interface IConfig { readonly extensionPaths: string[] | undefined From 6d6a859673342d9a2a6f0c7f8d472018c41c8ef6 Mon Sep 17 00:00:00 2001 From: tzAcee Date: Sun, 12 Nov 2023 18:58:39 +0100 Subject: [PATCH 2/4] fix lint warn --- src/server/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/utils.ts b/src/server/utils.ts index 2fa43d00..f8af8109 100644 --- a/src/server/utils.ts +++ b/src/server/utils.ts @@ -1,9 +1,10 @@ import fs from 'node:fs/promises' import path from 'node:path' +import {URI} from "vscode-uri"; + import { fsProviderExtensionPrefix, fsProviderFolderUri } from './constants.js' -import {URI} from "vscode-uri"; export interface IConfig { readonly extensionPaths: string[] | undefined From a69b3fc4a19b46087cd4c23d89e2a1bd0e297d82 Mon Sep 17 00:00:00 2001 From: tzAcee Date: Sun, 12 Nov 2023 18:59:48 +0100 Subject: [PATCH 3/4] fix lint warn --- src/server/utils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/utils.ts b/src/server/utils.ts index f8af8109..4fe28ce7 100644 --- a/src/server/utils.ts +++ b/src/server/utils.ts @@ -1,11 +1,10 @@ import fs from 'node:fs/promises' import path from 'node:path' -import {URI} from "vscode-uri"; +import { URI } from 'vscode-uri' import { fsProviderExtensionPrefix, fsProviderFolderUri } from './constants.js' - export interface IConfig { readonly extensionPaths: string[] | undefined readonly extensionIds: GalleryExtensionInfo[] | undefined From 2a8592b01e26734c93eef0916a015faa919e20cf Mon Sep 17 00:00:00 2001 From: tzAcee Date: Sun, 12 Nov 2023 19:14:11 +0100 Subject: [PATCH 4/4] force dep version: vscode-uri: ^3.0.8 --- package-lock.json | 8 ++++---- package.json | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 598363c7..21a35d3d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "slash": "^5.1.0", "tmp-promise": "^3.0.3", "undici": "^5.23.0", - "vscode-uri": "^3.0.7", + "vscode-uri": "^3.0.8", "wdio-chromedriver-service": "^8.1.1", "ws": "^8.13.0", "yargs-parser": "^21.1.1" @@ -13801,9 +13801,9 @@ "dev": true }, "node_modules/vscode-uri": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.7.tgz", - "integrity": "sha512-eOpPHogvorZRobNqJGhapa0JdwaxpjVvyBp0QIUMRMSf8ZAlqOdEquKuRmw9Qwu0qXtJIWqFtMkmvJjUZmMjVA==" + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==" }, "node_modules/wait-port": { "version": "1.0.4", diff --git a/package.json b/package.json index 9ce14ce0..34f2051e 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "slash": "^5.1.0", "tmp-promise": "^3.0.3", "undici": "^5.23.0", - "vscode-uri": "^3.0.7", + "vscode-uri": "^3.0.8", "wdio-chromedriver-service": "^8.1.1", "ws": "^8.13.0", "yargs-parser": "^21.1.1" @@ -109,4 +109,4 @@ "dist/*", "src/server/fs-provider" ] -} +} \ No newline at end of file