editors.visual-studio-code: Don't memoize the vscode path and add code.cmd per melted's suggestion:

450730b612
travis-windows
Doug Coleman 2018-12-24 13:12:53 -06:00
parent 9572c87646
commit 319e1e6ac3
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ visual-studio-code editor-class set-global
HOOK: find-visual-studio-code-invocation os ( -- array )
MEMO: visual-studio-code-invocation ( -- array )
: visual-studio-code-invocation ( -- array )
{
[ \ visual-studio-code-invocation get ]
[ find-visual-studio-code-invocation ]
@ -40,6 +40,7 @@ M: linux find-visual-studio-code-invocation
M: windows find-visual-studio-code-invocation
{
[ { "Microsoft VS Code" } "code.exe" find-in-applications ]
[ "code.cmd" ]
} 0|| ;
M: visual-studio-code editor-command ( file line -- command )