feat: add support for TS 2.3
This commit is contained in:

committed by
Tobias Bosch

parent
3c8a61e40c
commit
014594fe8f
@ -194,7 +194,7 @@ export class TypeScriptServiceHost implements LanguageServiceHost {
|
||||
|
||||
let sourceFile = this.getSourceFile(fileName);
|
||||
if (sourceFile) {
|
||||
this.context = sourceFile.path;
|
||||
this.context = (sourceFile as any).path || sourceFile.fileName;
|
||||
ts.forEachChild(sourceFile, visit);
|
||||
}
|
||||
return result.length ? result : undefined;
|
||||
|
Reference in New Issue
Block a user