Add vscode "security.workspace.trust.untrustedFiles" and "security.workspace.trust.startupPrompt" default configuration

This commit is contained in:
allegroai 2023-10-09 13:46:36 +03:00
parent e38dfd51e3
commit c229772ac3
2 changed files with 3 additions and 1 deletions

View File

@ -158,7 +158,7 @@ def create_base_task(state, project_name=None, task_name=None):
task_script['diff'] += '\n\n' + f.read()
task_script['working_dir'] = '.'
task_script['entry_point'] = 'interactive_session.py'
task_script['entry_point'] = '.interactive_session.py'
task_script['requirements'] = {'pip': '\n'.join(
["clearml>=1.1.5"] +
(["jupyter", "jupyterlab", "traitlets"] if state.get('jupyter_lab') else []) +

View File

@ -396,6 +396,8 @@ def start_vscode_server(hostname, hostnames, param, task, env, bind_ip="127.0.0.
"extensions.autoUpdate": False,
"python.pythonPath": sys.executable,
"terminal.integrated.shell.linux": "/bin/bash" if Path("/bin/bash").is_file() else None,
"security.workspace.trust.untrustedFiles": "open",
"security.workspace.trust.startupPrompt": "never",
})
with open(settings.as_posix(), 'wt') as f:
json.dump(base_json, f)