From 0b59e74a02d4a2c71c84b42e1a0170ee8332f13f Mon Sep 17 00:00:00 2001 From: Thomas Zilz Date: Thu, 3 Nov 2022 15:29:19 +0000 Subject: [PATCH] Resolve URIs with special characters correctly --- src/language/typescript/tsWorker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/language/typescript/tsWorker.ts b/src/language/typescript/tsWorker.ts index 25932a9e..65601f84 100644 --- a/src/language/typescript/tsWorker.ts +++ b/src/language/typescript/tsWorker.ts @@ -63,7 +63,7 @@ export class TypeScriptWorker implements ts.LanguageServiceHost, ITypeScriptWork getScriptFileNames(): string[] { const allModels = this._ctx.getMirrorModels().map((model) => model.uri); - const models = allModels.filter((uri) => !fileNameIsLib(uri)).map((uri) => uri.toString(true)); + const models = allModels.filter((uri) => !fileNameIsLib(uri)).map((uri) => uri.toString()); return models.concat(Object.keys(this._extraLibs)); }