mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 21:39:43 +00:00
Merge pull request #72501 from jmbockhorst/fixModifiedSort
Fixed explorer modified sort order not working in some cases
This commit is contained in:
commit
3d4048695f
|
@ -155,7 +155,7 @@ export class ExplorerService implements IExplorerService {
|
|||
}
|
||||
|
||||
// Stat needs to be resolved first and then revealed
|
||||
const options: IResolveFileOptions = { resolveTo: [resource], resolveMetadata: false };
|
||||
const options: IResolveFileOptions = { resolveTo: [resource], resolveMetadata: this.sortOrder === 'modified' };
|
||||
const workspaceFolder = this.contextService.getWorkspaceFolder(resource);
|
||||
const rootUri = workspaceFolder ? workspaceFolder.uri : this.roots[0].resource;
|
||||
const root = this.roots.filter(r => r.resource.toString() === rootUri.toString()).pop()!;
|
||||
|
|
Loading…
Reference in a new issue