Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode doesn't wait on command: EDITOR="code --wait" bin/rails credentials:edit

Newly using VS Code (from Atom).

When attempting to edit my credentials file with the following command:

EDITOR="code --wait" bin/rails credentials:edit

The --wait operation does not wait. After a few seconds my terminal responds:

File encrypted and saved.

Any ideas on how to fix this?

like image 596
3BB Avatar asked May 22 '20 18:05

3BB


1 Answers

This seemed to work for me. Ended up searching for opening Code in terminal. Found this, and this solved my problem.

Launch VS Code.

Open the Command Palette (⇧⌘P) and type 'shell command' to find the Shell Command: Install

'code' command in PATH command.

https://code.visualstudio.com/docs/setup/mac

like image 153
3BB Avatar answered Oct 25 '22 20:10

3BB