We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53b509d + c6b8894 commit 802d305Copy full SHA for 802d305
jupyter_vscode_proxy/__init__.py
@@ -7,10 +7,11 @@ def _get_vscode_cmd(port):
7
executable = "code-server"
8
if not shutil.which(executable):
9
raise FileNotFoundError("Can not find code-server in PATH")
10
-
11
- working_dir = os.getenv("CODE_WORKINGDIR", None)
12
- if working_dir is None:
13
- working_dir = os.getenv("REPO_DIR", ".")
+
+ # Start vscode in CODE_WORKINGDIR env variable if set
+ # If not, start in 'current directory', which is $REPO_DIR in mybinder
+ # but /home/jovyan (or equivalent) in JupyterHubs
14
+ working_dir = os.getenv("CODE_WORKINGDIR", ".")
15
16
extensions_dir = os.getenv("CODE_EXTENSIONSDIR", None)
17
extra_extensions_dir = os.getenv("CODE_EXTRA_EXTENSIONSDIR", None)
0 commit comments