8000 vscode icon launcher · Xubash/winpython@e188e84 · GitHub
[go: up one dir, main page]

Skip to content

Commit e188e84

Browse files
committed
vscode icon launcher
1 parent edbfc09 commit e188e84

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

make.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,14 @@ def _create_launchers(self):
952952
args=r'Noshell.vbs winpyzo.bat',
953953
)
954954

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+
955963
self._print_done()
956964

957965
def _create_batch_scripts_initial(self):
@@ -1746,7 +1754,21 @@ def _create_batch_scripts(self):
17461754
stdout, stderr = p.communicate()
17471755

17481756
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+
)
17491769
1770+
""",
1771+
)
17501772
def _run_complement_batch_scripts(
17511773
self, this_batch="run_complement.bat"
17521774
):

portable/icons/code.ico

88.8 KB
Binary file not shown.

winpyth 703F on/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
OTHER DEALINGS IN THE SOFTWARE.
2929
"""
3030

31-
__version__ = '2.0.20190519'
31+
__version__ = '2.1.20190830'
3232
__license__ = __doc__
3333
__project_url__ = 'http://winpython.github.io/'

0 commit comments

Comments
 (0)
0