Reputation: 5233
I've tried adding the 'code .' shortcut to launch your current directory in Terminal in Visual Studio Code, but I was promptly returned the following error:
LSGetApplicationForInfo() failed with error -10814 while trying to
determine the application with bundle identifier com.microsoft.VSCode.
Visual Studio Code is installed on my machine successfully.
I'm using OSX Yosemite 10.10.3.
Does anybody know how to get this shortcut to work correctly?
Upvotes: 3
Views: 670
Reputation: 11108
Press command
+ shift
+ p
Type: Install 'code' command in path
Choose the option
Upvotes: 0
Reputation: 124314
Make sure you have Visual Studio Code 0.3.0 installed. We recently changed the bundle identifier!
Upvotes: 3
Reputation: 26823
This error is because Finder cannot locate Visual Studio Code. I can reproduce the same error on my machine by deleting Visual Studio Code.
Try re-installing VS Code to /Applications and restarting Terminal.
Upvotes: 0