diff --git a/src/service-override/files.ts b/src/service-override/files.ts index 40206011..12fdb217 100644 --- a/src/service-override/files.ts +++ b/src/service-override/files.ts @@ -195,7 +195,7 @@ class RegisteredFileSystemProvider extends Disposable implements IFileSystemProv public async readdir (resource: URI): Promise<[string, FileType][]> { const includedPaths = Array.from(this.files.keys()) .map(uri => URI.parse(uri)) - .filter(uri => uri.path.startsWith(resource.path)) + .filter(uri => uri.path.startsWith(resource.path + '/')) .map(uri => extUri.relativePath(resource, uri)!) const files = includedPaths.filter(path => !path.includes('/'))