fix check for uri scheme

This commit is contained in:
chemzqm 2019-02-03 06:01:47 +08:00
parent e057a5a903
commit 9b1c461d82

View file

@ -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