diff --git a/yls/debugger.py b/yls/debugger.py index d63cd16..c6edc88 100644 --- a/yls/debugger.py +++ b/yls/debugger.py @@ -105,7 +105,8 @@ def display_py_object(value: Any) -> str: async def get_samples_dir(ls: Any) -> Path | None: samples_dir_config = await utils.get_config_from_editor(ls, "yls.yari.samplesDirectory") log.debug(f"[DEBUGGER] Got {samples_dir_config=}") - samples_dir_path = Path(samples_dir_config) + samples_dir_path = Path(samples_dir_config).expanduser().resolve() + log.debug(f"[DEBUGGER] Resolved {samples_dir_config=}") if not samples_dir_path.is_dir(): log.debug("[DEBUGGER] Samples dir does not exist or is not a directory")