def _get_vscode_cmd(port):
    executable = 'code-server'
    if (not shutil.which(executable)):
        raise FileNotFoundError('Can not find code-server in PATH')
    working_dir = os.getenv('CODE_WORKINGDIR', '.')
    extensions_dir = os.getenv('CODE_EXTENSIONSDIR', None)
    extra_extensions_dir = os.getenv('CODE_EXTRA_EXTENSIONSDIR', None)
    cmd = [executable, '--auth', 'none', '--allow-http', '--disable-telemetry', ('--port=' + str(port))]
    if extensions_dir:
        cmd += ['--extensions-dir', extensions_dir]
    if extra_extensions_dir:
        cmd += ['--extra-extensions-dir', extra_extensions_dir]
    cmd.append(working_dir)
    return cmd
def _get_vscode_cmd(port):
    executable = 'code-server'
    if (not shutil.which(executable)):
        raise FileNotFoundError('Can not find code-server in PATH')
    working_dir = os.getenv('CODE_WORKINGDIR', '.')
    extensions_dir = os.getenv('CODE_EXTENSIONSDIR', None)
    extra_extensions_dir = os.getenv('CODE_EXTRA_EXTENSIONSDIR', None)
    cmd = [executable, '--auth', 'none', '--allow-http', '--disable-telemetry', ('--port=' + str(port))]
    if extensions_dir:
        cmd += ['--extensions-dir', extensions_dir]
    if extra_extensions_dir:
        cmd += ['--extra-extensions-dir', extra_extensions_dir]
    cmd.append(working_dir)
    return cmd