Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to create new post when selecting file instead of folder #4

Open
johnhforrest opened this issue May 20, 2020 · 1 comment
Open

Comments

@johnhforrest
Copy link

Just tried to install this and it doesn't work. I see the "New post" option in the context menu but entering a file name and pressing enter does nothing.

@johnhforrest
Copy link
Author

Found the bug. If you use "new post" on a file instead of a folder, it breaks the path:

// This becomes the full path of a file, could be /path/filename.md
const dirName = uri.fsPath;

Will send a PR when I have some time

@johnhforrest johnhforrest changed the title Broken in VS Code version 1.45.1 Fails to create new post when selecting file instead of folder May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant