Skip to content

Commit 5c498cd

Browse files
committed
Parse the result of getDirectories call
1 parent 99748a2 commit 5c498cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/shims.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ namespace ts {
6161
getLocalizedDiagnosticMessages(): string;
6262
getCancellationToken(): HostCancellationToken;
6363
getCurrentDirectory(): string;
64-
getDirectories(path: string): string[];
64+
getDirectories(path: string): string;
6565
getDefaultLibFileName(options: string): string;
6666
getNewLine?(): string;
6767
getProjectVersion?(): string;
@@ -404,7 +404,7 @@ namespace ts {
404404
}
405405

406406
public getDirectories(path: string): string[] {
407-
return this.shimHost.getDirectories(path);
407+
return JSON.parse(this.shimHost.getDirectories(path));
408408
}
409409

410410
public getDefaultLibFileName(options: CompilerOptions): string {

0 commit comments

Comments
 (0)