From c5d9e07d3ca6afcb86c7e6ffb84e5042c832f5f2 Mon Sep 17 00:00:00 2001 From: Calvin Huang Date: Sat, 26 Mar 2022 16:42:53 -0700 Subject: [PATCH] Update typescriptServiceClient.ts (#360) --- src/server/typescriptServiceClient.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/typescriptServiceClient.ts b/src/server/typescriptServiceClient.ts index dc3565c..5c6c58c 100644 --- a/src/server/typescriptServiceClient.ts +++ b/src/server/typescriptServiceClient.ts @@ -431,6 +431,9 @@ export default class TypeScriptServiceClient implements ITypeScriptServiceClient } public toResource(filepath: string): string { + if (filepath.includes('zipfile:')) { + return filepath.replace(/.*zipfile:/, 'zipfile://'); + } if (this._apiVersion.gte(API.v213)) { if (filepath.startsWith(this.inMemoryResourcePrefix + 'untitled:')) { let resource = Uri.parse(filepath)