File tree 3 files changed +23
-1
lines changed 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -952,6 +952,14 @@ def _create_launchers(self):
952
952
args = r'Noshell.vbs winpyzo.bat' ,
953
953
)
954
954
955
+ # VSCode launcher
956
+ self .create_launcher (
957
+ 'VS Code.exe' ,
958
+ 'code.ico' ,
959
+ command = 'wscript.exe' ,
960
+ args = r'Noshell.vbs winvscode.bat' ,
961
+ )
962
+
955
963
self ._print_done ()
956
964
957
965
def _create_batch_scripts_initial (self ):
@@ -1746,7 +1754,21 @@ def _create_batch_scripts(self):
1746
1754
stdout , stderr = p .communicate ()
1747
1755
1748
1756
self ._print_done ()
1757
+
1758
+ self .create_batch_script (
1759
+ 'winvscode.bat' ,
1760
+ r"""@echo off
1761
+ rem launcher for VScode
1762
+ call "%~dp0env_for_icons.bat"
1763
+ cd/D "%WINPYWORKDIR%"
1764
+ if exist "%WINPYDIR%\..\t\vscode\code.exe" (
1765
+ "%WINPYDIR%\..\t\vscode\code.exe" %*
1766
+ ) else (
1767
+ "code.exe" %*
1768
+ )
1749
1769
1770
+ """ ,
1771
+ )
1750
1772
def _run_complement_batch_scripts (
1751
1773
self , this_batch = "run_complement.bat"
1752
1774
):
Original file line number Diff line number Diff line change 28
28
OTHER DEALINGS IN THE SOFTWARE.
29
29
"""
30
30
31
- __version__ = '2.0.20190519 '
31
+ __version__ = '2.1.20190830 '
32
32
__license__ = __doc__
33
33
__project_url__ = 'http://winpython.github.io/'
You can’t perform that action at this time.
0 commit comments