Skip to content

Commit ce662af

Browse files
committed
Sort resources on return
1 parent a338541 commit ce662af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/foam-vscode/src/core/model/workspace.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ export class FoamWorkspace implements IDisposable {
6363

6464
public resources(): IterableIterator<Resource> {
6565
const resources: Array<Resource> = Array.from(
66-
Array.from(this._resources.values())
66+
this._resources.values()
6767
).sort(Resource.sortByPath);
6868

69-
return this._resources.values();
69+
return resources.values();
7070
}
7171

7272
public get(uri: URI): Resource {

0 commit comments

Comments
 (0)