Skip to content

Commit 7d955d1

Browse files
committed
Use $DSTACK_WORKING_DIR in IDE link
1 parent 02d6140 commit 7d955d1

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/dstack/_internal/server/services/jobs/configurators/extensions/cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ def get_print_readme_commands(self) -> List[str]:
3737
return [
3838
"echo To open in Cursor, use link below:",
3939
"echo",
40-
f'echo " cursor://vscode-remote/ssh-remote+{self.run_name}$DSTACK_REPO_DIR"',
40+
f'echo " cursor://vscode-remote/ssh-remote+{self.run_name}$DSTACK_WORKING_DIR"',
4141
"echo",
4242
]

src/dstack/_internal/server/services/jobs/configurators/extensions/vscode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ def get_print_readme_commands(self) -> List[str]:
3737
return [
3838
"echo 'To open in VS Code Desktop, use link below:'",
3939
"echo",
40-
f'echo " vscode://vscode-remote/ssh-remote+{self.run_name}$DSTACK_REPO_DIR"',
40+
f'echo " vscode://vscode-remote/ssh-remote+{self.run_name}$DSTACK_WORKING_DIR"',
4141
"echo",
4242
]

src/tests/_internal/server/routers/test_runs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def get_dev_env_run_plan_dict(
9797
" && echo"
9898
" && echo 'To open in VS Code Desktop, use link below:'"
9999
" && echo"
100-
' && echo " vscode://vscode-remote/ssh-remote+dry-run$DSTACK_REPO_DIR"'
100+
' && echo " vscode://vscode-remote/ssh-remote+dry-run$DSTACK_WORKING_DIR"'
101101
" && echo"
102102
" && echo 'To connect via SSH, use: `ssh dry-run`'"
103103
" && echo"
@@ -121,7 +121,7 @@ def get_dev_env_run_plan_dict(
121121
" && echo"
122122
" && echo 'To open in VS Code Desktop, use link below:'"
123123
" && echo"
124-
' && echo " vscode://vscode-remote/ssh-remote+dry-run$DSTACK_REPO_DIR"'
124+
' && echo " vscode://vscode-remote/ssh-remote+dry-run$DSTACK_WORKING_DIR"'
125125
" && echo"
126126
" && echo 'To connect via SSH, use: `ssh dry-run`'"
127127
" && echo"
@@ -302,7 +302,7 @@ def get_dev_env_run_dict(
302302
" && echo"
303303
" && echo 'To open in VS Code Desktop, use link below:'"
304304
" && echo"
305-
' && echo " vscode://vscode-remote/ssh-remote+test-run$DSTACK_REPO_DIR"'
305+
' && echo " vscode://vscode-remote/ssh-remote+test-run$DSTACK_WORKING_DIR"'
306306
" && echo"
307307
" && echo 'To connect via SSH, use: `ssh test-run`'"
308308
" && echo"
@@ -326,7 +326,7 @@ def get_dev_env_run_dict(
326326
" && echo"
327327
" && echo 'To open in VS Code Desktop, use link below:'"
328328
" && echo"
329-
' && echo " vscode://vscode-remote/ssh-remote+test-run$DSTACK_REPO_DIR"'
329+
' && echo " vscode://vscode-remote/ssh-remote+test-run$DSTACK_WORKING_DIR"'
330330
" && echo"
331331
" && echo 'To connect via SSH, use: `ssh test-run`'"
332332
" && echo"

0 commit comments

Comments
 (0)