From 9b1c461d82d47b3ba30065d4f3a236e84f056da4 Mon Sep 17 00:00:00 2001 From: chemzqm Date: Sun, 3 Feb 2019 06:01:47 +0800 Subject: [PATCH] fix check for uri scheme --- src/server/typescriptServiceClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/typescriptServiceClient.ts b/src/server/typescriptServiceClient.ts index d332e6c..b7e711b 100644 --- a/src/server/typescriptServiceClient.ts +++ b/src/server/typescriptServiceClient.ts @@ -507,7 +507,7 @@ export default class TypeScriptServiceClient implements ITypeScriptServiceClient public normalizePath(resource: Uri): string | null { if (this._apiVersion.gte(API.v213)) { - if (resource.scheme !== 'file') { + if (resource.scheme == 'untitled') { const dirName = path.dirname(resource.path) const fileName = this.inMemoryResourcePrefix + path.basename(resource.path) return resource