Skip to content

Commit

Permalink
Merge pull request #61 from krassowski/add-code-server-icon
Browse files Browse the repository at this point in the history
Add code-server icon behind `USE_CODE_SERVER_ICON`
  • Loading branch information
xhochy committed May 7, 2024
2 parents 2f9eb51 + 9521f98 commit 8e7165e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jupyter_vscode_proxy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ def _get_cmd(port: int) -> List[str]:

def setup_vscode() -> Dict[str, Any]:
executable = os.environ.get("CODE_EXECUTABLE", "code-server")
icon = "code-server.svg" if executable == "code-server" else "vscode.svg"
return {
"command": _get_cmd_factory(executable),
"timeout": 300,
"new_browser_tab": True,
"launcher_entry": {
"title": "VS Code",
"icon_path": os.path.join(
os.path.dirname(os.path.abspath(__file__)), "icons", "vscode.svg"
os.path.dirname(os.path.abspath(__file__)), "icons", icon
),
},
}
9 changes: 9 additions & 0 deletions jupyter_vscode_proxy/icons/code-server.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8e7165e

Please sign in to comment.