patleeman / VSNotes

Simple VS Code extension for plain text note taking.
https://marketplace.visualstudio.com/items?itemName=patricklee.vsnotes
MIT License
174 stars 33 forks source link

Fix default note path with home path #76

Closed kama-meshi closed 4 years ago

kama-meshi commented 4 years ago

This PR fixes the bug, cannot open note folder when home path ~/ is set to the default note path. (fixes #74)

vscode.Uri.file() returns object, but utils.resolveHome() looks to handle string. So changed to resolve home path first, then create URI.

Also I found the same bug in note search command, fixed it together.

This is an awesome extension, so I hope this PR will help.