|
From: | damianlegassick |
Subject: | Re: WSL - Visual Studio Code - point and click |
Date: | Fri, 30 Oct 2020 15:11:05 -0000 |
HiI've got WSL running fine with a Debian distro, Lilypond working fine, Visual Studio Code doing it's remote thing and Sumatra picking up all the changes in pdf back on the Windows side.but no point and click.I tried to hack Aaron Hill's answer from a couple of years agobut no joy (it could be me of course)Anyone out there got a method for Windows 10 64bit and current VSC/WSL2 etc?thanksDamian
textedit.reg: ==== Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\textedit] "URL Protocol"="" @="URL:textedit" [HKEY_CURRENT_USER\Software\Classes\textedit\shell] [HKEY_CURRENT_USER\Software\Classes\textedit\shell\open] [HKEY_CURRENT_USER\Software\Classes\textedit\shell\open\command] @="C:\\Tools\\textedit\\textedit.cmd %1" ====
textedit.cmd: ==== @ECHO OFF
SETLOCAL
SET CODE=/mnt/c/Users/damia/AppData/Local/Programs/Microsoft\ VS\ Code/bin/code
SET URL="" -m %%(file)s`:%%(line)s:%%(column)s
SET ENV=/usr/bin/env -i LYEDITOR='%CODE% --open-url %URL%'
SET CMD=/usr/local/bin/lilypond-invoke-editor %*
C:\Windows\System32\wsl.exe %ENV% %CMD%
====
[Prev in Thread] | Current Thread | [Next in Thread] |