Skip to content

Commit

Permalink
Update jupyter_vscode_proxy/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Krassowski <[email protected]>
  • Loading branch information
xhochy and krassowski committed May 6, 2024
1 parent a2a035c commit 9521f98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jupyter_vscode_proxy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ def _get_cmd(port: int) -> List[str]:

def setup_vscode() -> Dict[str, Any]:
executable = os.environ.get("CODE_EXECUTABLE", "code-server")
use_code_server_icon = os.environ.get("USE_CODE_SERVER_ICON", "false").lower()
icon = "code-server.svg" if use_code_server_icon == "true" else "vscode.svg"
icon = "code-server.svg" if executable == "code-server" else "vscode.svg"
return {
"command": _get_cmd_factory(executable),
"timeout": 300,
Expand Down

0 comments on commit 9521f98

Please sign in to comment.