Skip to content

Commit

Permalink
Merge pull request #72501 from jmbockhorst/fixModifiedSort
Browse files Browse the repository at this point in the history
Fixed explorer modified sort order not working in some cases
  • Loading branch information
isidorn authored Apr 25, 2019
2 parents db7cb13 + 14f982a commit 3d40486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/files/common/explorerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()!;
Expand Down

0 comments on commit 3d40486

Please sign in to comment.