nushell/crates/nu-cli/src/completions
ymcx cfe13397ed
Fix the colors when completing using a relative path (#12898)
# Description
Fixes a bug where the autocompletion menu has the wrong colors due to
'std::fs::symlink_metadata' not being able to handle relative paths.
Attached below are screenshots before and after applying the commit, in
which the colors are wrong when autocompleting on a path prefixed by a
tilde, whereas the same directory is highlighted correctly when prefixed
by a dot.

BEFORE:

![1715982514020](https://github.com/nushell/nushell/assets/89810988/62051f03-0846-430d-b493-e6f3cd6d0e04)

![1715982873231](https://github.com/nushell/nushell/assets/89810988/28c647ab-3b2a-47ef-9967-5d09927e299d)
AFTER:

![1715982490585](https://github.com/nushell/nushell/assets/89810988/7a370138-50af-42fd-9724-a34cc605bede)

![1715982894748](https://github.com/nushell/nushell/assets/89810988/e884f69f-f757-426e-98c4-bc9f7f6fc561)
2024-06-07 08:07:23 -05:00
..
base.rs Pass Stack ref to Completer::fetch (#12783) 2024-05-09 13:38:24 +08:00
command_completions.rs Pass Stack ref to Completer::fetch (#12783) 2024-05-09 13:38:24 +08:00
completer.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
completion_common.rs Fix the colors when completing using a relative path (#12898) 2024-06-07 08:07:23 -05:00
completion_options.rs Use nightly clippy to kill dead code/fix style (#12334) 2024-03-30 09:17:28 +08:00
custom_completions.rs Span ID Refactor - Step 1 (#12960) 2024-06-05 09:57:14 +08:00
directory_completions.rs Pass Stack ref to Completer::fetch (#12783) 2024-05-09 13:38:24 +08:00
dotnu_completions.rs Pass Stack ref to Completer::fetch (#12783) 2024-05-09 13:38:24 +08:00
file_completions.rs Pass Stack ref to Completer::fetch (#12783) 2024-05-09 13:38:24 +08:00
flag_completions.rs Pass Stack ref to Completer::fetch (#12783) 2024-05-09 13:38:24 +08:00
mod.rs Send LSP Completion Item Kind (#11443) 2024-03-24 20:14:12 -05:00
variable_completions.rs Pass Stack ref to Completer::fetch (#12783) 2024-05-09 13:38:24 +08:00