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 diff --git a/src/server/utils.ts b/src/server/utils.ts index bc719d79..4fe28ce7 100644 --- a/src/server/utils.ts +++ b/src/server/utils.ts @@ -1,9 +1,9 @@ import fs from 'node:fs/promises' import path from 'node:path' -import { fsProviderExtensionPrefix, fsProviderFolderUri } from './constants.js' +import { URI } from 'vscode-uri' -const { URI } = (await import('vscode-uri')).default +import { fsProviderExtensionPrefix, fsProviderFolderUri } from './constants.js' export interface IConfig { readonly extensionPaths: string[] | undefined