nushell/crates/nu-lsp/src
Bahex 69fbfb939f
lsp and --ide-check fix for path self related diagnostics (#14538)
# Description

fixes
[this](https://github.com/nushell/nushell/pull/14303#issuecomment-2525100480)
where lsp and ide integration would produce the following error

---

```sh
nu --ide-check 100 "/path/to/env.nu"
```
with
```nu
const const_env = path self
```
would lead to
```
Error: nu:🐚:file_not_found

  × File not found
   ╭─[/path/to/env.nu:1:19]
 1 │ const const_env = path self
   ·                   ────┬────
   ·                       ╰── Couldn't find current file
   ╰────
```

# Tests + Formatting
- 🟢 `cargo fmt --all`
- 🟢 `cargo clippy --workspace`
2024-12-07 09:46:52 -06:00
..
diagnostics.rs lsp and --ide-check fix for path self related diagnostics (#14538) 2024-12-07 09:46:52 -06:00
lib.rs lsp and --ide-check fix for path self related diagnostics (#14538) 2024-12-07 09:46:52 -06:00
notification.rs Fix LSP non-ascii characters offset issues. (#14002) 2024-10-29 06:35:37 -05:00