Add logging of readDirectory (#184549)

This commit is contained in:
Matt Bierner
2023-06-07 15:22:16 -07:00
committed by GitHub
parent 80f09eef48
commit 977ee8ca1e

View File

@@ -306,9 +306,13 @@ function createServerHost(extensionUri: URI, logger: ts.server.Logger, apiClient
return currentDirectory;
},
getDirectories(path: string): string[] {
logVerbose('fs.getDirectories', { path });
return getAccessibleFileSystemEntries(path).directories.slice();
},
readDirectory(path: string, extensions?: readonly string[], excludes?: readonly string[], includes?: readonly string[], depth?: number): string[] {
logVerbose('fs.readDirectory', { path });
return matchFiles(path, extensions, excludes, includes, /*useCaseSensitiveFileNames*/ true, currentDirectory, depth, getAccessibleFileSystemEntries, realpath);
},
getModifiedTime(path: string): Date | undefined {