diff --git a/extensions/typescript/src/utils/projectStatus.ts b/extensions/typescript/src/utils/projectStatus.ts index 8dc39cc28e4408afc4ba5a102248749587141fef..a36039083593fce22c5d5ef06c78929dec34a46d 100644 --- a/extensions/typescript/src/utils/projectStatus.ts +++ b/extensions/typescript/src/utils/projectStatus.ts @@ -61,6 +61,9 @@ export function create(client: ITypescriptServiceClient, isOpen:(path:string)=>P } const file = client.asAbsolutePath(editor.document.uri); + if (!file) { + return; + } isOpen(file).then(value => { if (!value) {