Skip to content

Commit 977ee8c

Browse files
authored
Add logging of readDirectory (microsoft#184549)
1 parent 80f09ee commit 977ee8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extensions/typescript-language-features/web/webServer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,13 @@ function createServerHost(extensionUri: URI, logger: ts.server.Logger, apiClient
306306
return currentDirectory;
307307
},
308308
getDirectories(path: string): string[] {
309+
logVerbose('fs.getDirectories', { path });
310+
309311
return getAccessibleFileSystemEntries(path).directories.slice();
310312
},
311313
readDirectory(path: string, extensions?: readonly string[], excludes?: readonly string[], includes?: readonly string[], depth?: number): string[] {
314+
logVerbose('fs.readDirectory', { path });
315+
312316
return matchFiles(path, extensions, excludes, includes, /*useCaseSensitiveFileNames*/ true, currentDirectory, depth, getAccessibleFileSystemEntries, realpath);
313317
},
314318
getModifiedTime(path: string): Date | undefined {

0 commit comments

Comments
 (0)