vscode-file-templates-ext icon indicating copy to clipboard operation
vscode-file-templates-ext copied to clipboard

'Open Templates Folder' doesn't attempt opening correct folder on windows when path has space in it

Open var-ram opened this issue 6 years ago • 1 comments

Steps to Reproduce:

  • Have a Windows user account name with a 'space' in it
  • Delete all the template files on your templates folder (if you have any)
  • Now try to create a 'New file using template'
  • Click on the 'Open Templates Folder' button on the VSCode Toast
  • Window prompt shows up saying can't open "path"

Looks like the formatted win32 command needs to be escaped using quotes for handling spaces in the path. Also when passing in the path as a string to the 'start' command the first arg needs to be the title of the prompt window followed by the path.

var-ram avatar May 02 '18 01:05 var-ram

Created PR #29

var-ram avatar May 02 '18 01:05 var-ram