Skip to content

Commit def9ed4

Browse files
committed
Merge branch 'master' into disallowBadCommas
2 parents 537fee1 + 5a378b7 commit def9ed4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/harness/virtualFileSystem.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,14 @@ namespace Utils {
199199
super(currentDirectory, ignoreCase);
200200
const fileNames = (files instanceof Array) ? files : ts.getOwnKeys(files);
201201
for (const file of fileNames) {
202-
this.addFile(file, (files as any)[file]);
202+
this.addFile(file, new Harness.LanguageService.ScriptInfo(file, (files as ts.MapLike<string>)[file], /*isRootFile*/false));
203203
}
204204
}
205205

206206
readFile(path: string): string {
207207
const value = this.traversePath(path);
208208
if (value && value.isFile()) {
209-
return value.content;
209+
return value.content.content;
210210
}
211211
}
212212

0 commit comments

Comments
 (0)