From 4e0cc532ec4ea80fffd687dc51cd12f318df14cf Mon Sep 17 00:00:00 2001 From: Harshith Thota Date: Sun, 12 Jun 2022 19:58:21 +0530 Subject: [PATCH] Sorted Notes in AllNotes to logically group them. --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/AllNotesProvider.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0db7571..f43d599 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,3 +5,7 @@ All notable changes to the "VSSticky" extension will be documented in this file. ## v1.0.0 - Initial release + +## v1.0.1 + +- Sorted Notes in the `All Notes View` according to the path to logically group the notes. \ No newline at end of file diff --git a/package.json b/package.json index 4d4bed7..e26966d 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Attach Sticky Notes on your files, from inside VS Code.", "author": "Hyperclaw79", "publisher": "Hyperclaw79", - "version": "1.0.0", + "version": "1.0.1", "icon": "assets/vssticky.png", "galleryBanner": { "color": "#770000", diff --git a/src/AllNotesProvider.ts b/src/AllNotesProvider.ts index 08a1ea1..de78b51 100644 --- a/src/AllNotesProvider.ts +++ b/src/AllNotesProvider.ts @@ -60,7 +60,7 @@ export class AllNotesProvider implements vscode.WebviewViewProvider { } private _createNotes() { - this._notes = this._context.globalState.keys().map(key => { + this._notes = [...this._context.globalState.keys()].sort().map(key => { let noteObj: Note = JSON.parse( this._context.globalState.get(key)! );